Skip to main content

engage/generated/app/
consolemanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-consolemanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/consolemanager/ConsoleManager.md"))]
17    #[::unity::class(namespace = "App", name = "ConsoleManager")]
18    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::consolemanager::ConsoleManager>)]
19    pub struct ConsoleManager {
20        #[offset(120)]
21        #[rename(name = "m_GameObject")]
22        pub m_game_object: crate::unity_engine::gameobject::GameObject,
23        #[static_field]
24        #[rename(name = "s_ScaleX")]
25        pub s_scale_x: f32,
26        #[static_field]
27        #[rename(name = "s_ScaleY")]
28        pub s_scale_y: f32,
29        #[static_field]
30        #[rename(name = "s_Orient")]
31        pub s_orient: f32,
32        #[static_field]
33        #[rename(name = "s_LockObject")]
34        pub s_lock_object: ::unity::IlInstance,
35        #[static_field]
36        #[rename(name = "s_Logs")]
37        pub s_logs: crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>,
38        #[static_field]
39        #[rename(name = "s_ShowLog")]
40        pub s_show_log: crate::app::gameparam::GameParam_Holder,
41    }
42}
43
44#[cfg(feature = "app-consolemanager-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-consolemanager")]
48impl ConsoleManager {
49    #[doc = "`get_ScaleX()` overload"]
50    pub fn get_scale_x() -> f32 {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x253b670usize)as*mut u8,f32;
53            )
54        }
55    }
56
57    #[doc = "`get_ScaleY()` overload"]
58    pub fn get_scale_y() -> f32 {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x253b6e0usize)as*mut u8,f32;
61            )
62        }
63    }
64
65    #[doc = "`get_Orient()` overload"]
66    pub fn get_orient() -> f32 {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x253b750usize)as*mut u8,f32;
69            )
70        }
71    }
72
73    #[doc = "`get_Logs()` overload"]
74    pub fn get_logs() -> crate::system::collections::generic::list_1::List_1<::unity::Il2CppString> {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x253b7c0usize)as*mut u8,crate::system::collections::generic::list_1::List_1< ::unity::Il2CppString> ;
77            )
78        }
79    }
80
81    #[doc = "`Print(::unity::Il2CppString)` overload"]
82    pub fn print(str: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x253c590usize)as*mut u8,();
85(::unity::Il2CppString)::core::convert::Into::into(str))
86        }
87    }
88
89    #[doc = "`Clear()` overload"]
90    pub fn clear() -> () {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x253c5a0usize)as*mut u8,();
93            )
94        }
95    }
96
97    #[doc = "`Open()` overload"]
98    pub fn open() -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x253c6f0usize)as*mut u8,();
101            )
102        }
103    }
104
105    #[doc = "`Close()` overload"]
106    pub fn close() -> () {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x253ca20usize)as*mut u8,();
109            )
110        }
111    }
112
113    #[doc = "`IsButton()` overload"]
114    pub fn is_button() -> bool {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x253c220usize)as*mut u8,bool;
117            )
118        }
119    }
120
121    #[doc = "`IsTrigger()` overload"]
122    pub fn is_trigger() -> bool {
123        unsafe {
124            ::unity::il2cpp_call!((::unity::module_base()+0x253c0a0usize)as*mut u8,bool;
125            )
126        }
127    }
128
129    #[doc = "`OnLogMessage(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::logtype::LogType)` overload"]
130    pub fn on_log_message(
131        log_text: impl ::core::convert::Into<::unity::Il2CppString>,
132        stack_trace: impl ::core::convert::Into<::unity::Il2CppString>,
133        r#type: impl ::core::convert::Into<crate::unity_engine::logtype::LogType>,
134    ) -> () {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x253caa0usize)as*mut u8,();
137(::unity::Il2CppString)::core::convert::Into::into(log_text),(::unity::Il2CppString)::core::convert::Into::into(stack_trace),(crate::unity_engine::logtype::LogType)::core::convert::Into::into(r#type))
138        }
139    }
140
141    #[doc = "`Initialize()` overload"]
142    pub fn initialize() -> () {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x253cab0usize)as*mut u8,();
145            )
146        }
147    }
148
149    #[doc = "`.cctor()` overload"]
150    pub fn cctor() -> () {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x253cac0usize)as*mut u8,();
153            )
154        }
155    }
156}
157
158#[cfg(feature = "app-consolemanager")]
159pub trait IConsoleManagerMethods: IConsoleManager {
160    #[doc = "`OnCreate()` overload"]
161    fn on_create(self) -> () {
162        unsafe {
163            let __receiver = <ConsoleManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            {
165                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
166                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
167                    panic!(
168                        "unity: virtual slot {}
169 out of range (vtable len {}
170) on the runtime class behind {}
171 (method `{}
172`)",
173                        9usize,
174                        __vt.len(),
175                        <ConsoleManager as ::unity::ClassIdentity>::NAME,
176                        "OnCreate",
177                    )
178                });
179                let __inner: extern "C" fn(ConsoleManager, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
180                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
181                __inner(__receiver, __mi)
182            }
183        }
184    }
185    #[doc = "`OnDispose()` overload"]
186    fn on_dispose(self) -> () {
187        unsafe {
188            let __receiver = <ConsoleManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            {
190                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
192                    panic!(
193                        "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198                        10usize,
199                        __vt.len(),
200                        <ConsoleManager as ::unity::ClassIdentity>::NAME,
201                        "OnDispose",
202                    )
203                });
204                let __inner: extern "C" fn(ConsoleManager, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
205                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
206                __inner(__receiver, __mi)
207            }
208        }
209    }
210    #[doc = "`Tick()` overload"]
211    fn tick(self) -> () {
212        unsafe {
213            let __receiver = <ConsoleManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x253b940usize)as*mut u8,();
215(ConsoleManager)__receiver)
216        }
217    }
218    #[doc = "`.ctor()` overload"]
219    fn ctor(self) -> () {
220        unsafe {
221            let __receiver = <ConsoleManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x253c9a0usize)as*mut u8,();
223(ConsoleManager)__receiver)
224        }
225    }
226}
227
228#[cfg(feature = "app-consolemanager")]
229impl<__T: IConsoleManager> IConsoleManagerMethods for __T {}
230
231#[cfg(feature = "app-consolemanager")]
232impl ConsoleManager {
233    pub fn get_scale_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
235    }
236
237    pub fn get_scale_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
239    }
240
241    pub fn get_orient_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
243    }
244
245    pub fn get_logs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
247    }
248
249    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
251    }
252
253    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
255    }
256
257    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
259    }
260
261    pub fn print_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
263    }
264
265    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
267    }
268
269    pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
271    }
272
273    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
275    }
276
277    pub fn is_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
279    }
280
281    pub fn is_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
283    }
284
285    pub fn on_log_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
287    }
288
289    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
291    }
292
293    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
295    }
296
297    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
299    }
300}
301
302#[cfg(feature = "app-consolemanager")]
303impl ConsoleManager {
304    #[doc = "Direct (non-virtual) call to `ConsoleManager`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
305    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
306        let __mi = Self::on_create_method_info();
307        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
308        __inner(this.into(), ::core::option::Option::None)
309    }
310
311    #[doc = "Direct (non-virtual) call to `ConsoleManager`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
312    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
313        let __mi = Self::on_dispose_method_info();
314        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
315        __inner(this.into(), ::core::option::Option::None)
316    }
317}
318
319#[cfg(feature = "app-consolemanager")]
320impl ConsoleManager {
321    #[doc = "`.ctor()` — no args"]
322    pub fn new() -> Self {
323        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
324            panic!(
325                "{}
326::{}
327 failed to instantiate",
328                ::core::stringify!(ConsoleManager),
329                ::core::stringify!(new),
330            )
331        });
332        <Self as IConsoleManagerMethods>::ctor(this);
333        this
334    }
335}
336
337#[cfg(feature = "app-consolemanager")]
338#[doc(hidden)]
339pub mod prelude {
340    pub use super::{ConsoleManager, IConsoleManager, IConsoleManagerMethods};
341    #[cfg(feature = "app-procinst")]
342    pub use crate::app::procinst::IProcInstMethods;
343    #[cfg(feature = "app-singletonprocinst_1")]
344    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
345    #[cfg(feature = "system-object")]
346    pub use crate::system::object::IObjectMethods;
347    pub use crate::{
348        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
349        system::object::IObject,
350    };
351}