Skip to main content

engage/generated/app/
framework_2.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-framework_2-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/framework_2/Framework_2.md"))]
20    #[::unity::class(namespace = "App", name = "Framework")]
21    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::framework_2::Framework_2>)]
22    pub struct Framework_2 {
23        #[static_field]
24        #[rename(name = "s_PauseCount")]
25        pub s_pause_count: i32,
26        #[static_field]
27        #[rename(name = "s_TotalMemory")]
28        pub s_total_memory: i64,
29        #[static_field]
30        #[rename(name = "s_GCCount")]
31        pub s_gc_count: i32,
32        #[static_field]
33        #[rename(name = "s_GCBind")]
34        pub s_gc_bind: crate::app::bindholder::BindHolder,
35        #[static_field]
36        #[rename(name = "s_DestoryObjects")]
37        pub s_destory_objects: crate::system::collections::generic::queue_1::Queue_1<crate::unity_engine::object_2::Object_2>,
38        #[static_field]
39        #[rename(name = "s_LockDestroy")]
40        pub s_lock_destroy: ::unity::IlInstance,
41        #[static_field]
42        #[rename(name = "s_MainThread")]
43        pub s_main_thread: ::unity::IlInstance,
44        #[static_field]
45        #[rename(name = "LoadingPriority_Default")]
46        pub loading_priority_default: crate::unity_engine::threadpriority::ThreadPriority,
47        #[static_field]
48        #[rename(name = "LoadingPriority_Loading")]
49        pub loading_priority_loading: crate::unity_engine::threadpriority::ThreadPriority,
50        #[static_field]
51        #[rename(name = "AsyncUploadTimeSlice_Default")]
52        pub async_upload_time_slice_default: i32,
53        #[static_field]
54        #[rename(name = "AsyncUploadTimeSlice_Loading")]
55        pub async_upload_time_slice_loading: i32,
56    }
57}
58
59#[cfg(feature = "app-framework_2-types")]
60pub use __types::*;
61
62#[cfg(feature = "app-framework_2")]
63impl Framework_2 {
64    #[doc = "`IsBoostMode()` overload"]
65    pub fn is_boost_mode() -> bool {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x261afc0usize)as*mut u8,bool;
68            )
69        }
70    }
71
72    #[doc = "`OnBeforeSceneLoadRuntimeMethod()` overload"]
73    pub fn on_before_scene_load_runtime_method() -> () {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x261afe0usize)as*mut u8,();
76            )
77        }
78    }
79
80    #[doc = "`OnAfterSceneLoadRuntimeMethod()` overload"]
81    pub fn on_after_scene_load_runtime_method() -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x261b110usize)as*mut u8,();
84            )
85        }
86    }
87
88    #[doc = "`OnRuntimeMethodLoad()` overload"]
89    pub fn on_runtime_method_load() -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x261b1e0usize)as*mut u8,();
92            )
93        }
94    }
95
96    #[doc = "`UpdateResolution()` overload"]
97    pub fn update_resolution() -> () {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x261b280usize)as*mut u8,();
100            )
101        }
102    }
103
104    #[doc = "`NotificationMessageReceived(crate::unity_engine::switch::notification::Notification_Message)` overload"]
105    pub fn notification_message_received(message: impl ::core::convert::Into<crate::unity_engine::switch::notification::Notification_Message>) -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x261b290usize)as*mut u8,();
108(crate::unity_engine::switch::notification::Notification_Message)::core::convert::Into::into(message))
109        }
110    }
111
112    #[doc = "`ResetSetting()` overload"]
113    pub fn reset_setting() -> () {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x261b3c0usize)as*mut u8,();
116            )
117        }
118    }
119
120    #[doc = "`InitTotalMemory()` overload"]
121    pub fn init_total_memory() -> () {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x261b0a0usize)as*mut u8,();
124            )
125        }
126    }
127
128    #[doc = "`GetTotalMemory()` overload"]
129    pub fn get_total_memory() -> i64 {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x261b4f0usize)as*mut u8,i64;
132            )
133        }
134    }
135
136    #[doc = "`GetAllocatableMemory()` overload"]
137    pub fn get_allocatable_memory() -> i64 {
138        unsafe {
139            ::unity::il2cpp_call!((::unity::module_base()+0x261b560usize)as*mut u8,i64;
140            )
141        }
142    }
143
144    #[doc = "`CpuBoostOn()` overload"]
145    pub fn cpu_boost_on() -> () {
146        unsafe {
147            ::unity::il2cpp_call!((::unity::module_base()+0x261bcd0usize)as*mut u8,();
148            )
149        }
150    }
151
152    #[doc = "`CpuBoostOff()` overload"]
153    pub fn cpu_boost_off() -> () {
154        unsafe {
155            ::unity::il2cpp_call!((::unity::module_base()+0x261bd00usize)as*mut u8,();
156            )
157        }
158    }
159
160    #[doc = "`CpuBoostOnForLoading()` overload"]
161    pub fn cpu_boost_on_for_loading() -> () {
162        unsafe {
163            ::unity::il2cpp_call!((::unity::module_base()+0x261bd30usize)as*mut u8,();
164            )
165        }
166    }
167
168    #[doc = "`CpuBoostOffForLoading()` overload"]
169    pub fn cpu_boost_off_for_loading() -> () {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x261bde0usize)as*mut u8,();
172            )
173        }
174    }
175
176    #[doc = "`IsPausing()` overload"]
177    pub fn is_pausing() -> bool {
178        unsafe {
179            ::unity::il2cpp_call!((::unity::module_base()+0x261c280usize)as*mut u8,bool;
180            )
181        }
182    }
183
184    #[doc = "`Shoutdown()` overload"]
185    pub fn shoutdown() -> () {
186        unsafe {
187            ::unity::il2cpp_call!((::unity::module_base()+0x261c290usize)as*mut u8,();
188            )
189        }
190    }
191
192    #[doc = "`GCBegin()` overload"]
193    pub fn gc_begin() -> () {
194        unsafe {
195            ::unity::il2cpp_call!((::unity::module_base()+0x261c2a0usize)as*mut u8,();
196            )
197        }
198    }
199
200    #[doc = "`GCEnd()` overload"]
201    pub fn gc_end() -> () {
202        unsafe {
203            ::unity::il2cpp_call!((::unity::module_base()+0x261c2b0usize)as*mut u8,();
204            )
205        }
206    }
207
208    #[doc = "`GCCollect()` overload"]
209    pub fn gc_collect() -> () {
210        unsafe {
211            ::unity::il2cpp_call!((::unity::module_base()+0x261c2c0usize)as*mut u8,();
212            )
213        }
214    }
215
216    #[doc = "`GCCollectLow()` overload"]
217    pub fn gc_collect_low() -> () {
218        unsafe {
219            ::unity::il2cpp_call!((::unity::module_base()+0x261c380usize)as*mut u8,();
220            )
221        }
222    }
223
224    #[doc = "`GCCommit()` overload"]
225    pub fn gc_commit() -> () {
226        unsafe {
227            ::unity::il2cpp_call!((::unity::module_base()+0x261c370usize)as*mut u8,();
228            )
229        }
230    }
231
232    #[doc = "`GCBind()` overload"]
233    pub fn gc_bind() -> () {
234        unsafe {
235            ::unity::il2cpp_call!((::unity::module_base()+0x261c420usize)as*mut u8,();
236            )
237        }
238    }
239
240    #[doc = "`GCUnbind()` overload"]
241    pub fn gc_unbind() -> () {
242        unsafe {
243            ::unity::il2cpp_call!((::unity::module_base()+0x261c500usize)as*mut u8,();
244            )
245        }
246    }
247
248    #[doc = "`CollectCoroutine(f32)` overload"]
249    pub fn collect_coroutine(time: impl ::core::convert::Into<f32>) -> crate::system::collections::ienumerator::IEnumerator {
250        unsafe {
251            ::unity::il2cpp_call!((::unity::module_base()+0x261c5f0usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
252(f32)::core::convert::Into::into(time))
253        }
254    }
255
256    #[doc = "`AddDestroy(crate::unity_engine::object_2::Object_2)` overload"]
257    pub fn add_destroy(obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>) -> () {
258        unsafe {
259            ::unity::il2cpp_call!((::unity::module_base()+0x261c660usize)as*mut u8,();
260(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
261        }
262    }
263
264    #[doc = "`UpdateDestroy()` overload"]
265    pub fn update_destroy() -> () {
266        unsafe {
267            ::unity::il2cpp_call!((::unity::module_base()+0x261c040usize)as*mut u8,();
268            )
269        }
270    }
271
272    #[doc = "`.cctor()` overload"]
273    pub fn cctor() -> () {
274        unsafe {
275            ::unity::il2cpp_call!((::unity::module_base()+0x261c910usize)as*mut u8,();
276            )
277        }
278    }
279}
280
281#[cfg(feature = "app-framework_2")]
282pub trait IFramework_2Methods: IFramework_2 {
283    #[doc = "`Awake()` overload"]
284    fn awake(self) -> () {
285        unsafe {
286            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            {
288                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
289                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
290                    panic!(
291                        "unity: virtual slot {}
292 out of range (vtable len {}
293) on the runtime class behind {}
294 (method `{}
295`)",
296                        4usize,
297                        __vt.len(),
298                        <Framework_2 as ::unity::ClassIdentity>::NAME,
299                        "Awake",
300                    )
301                });
302                let __inner: extern "C" fn(Framework_2, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
303                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
304                __inner(__receiver, __mi)
305            }
306        }
307    }
308    #[doc = "`OnDestroy()` overload"]
309    fn on_destroy(self) -> () {
310        unsafe {
311            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
312            ::unity::il2cpp_call!((::unity::module_base()+0x261bb70usize)as*mut u8,();
313(Framework_2)__receiver)
314        }
315    }
316    #[doc = "`Start()` overload"]
317    fn start(self) -> () {
318        unsafe {
319            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
320            ::unity::il2cpp_call!((::unity::module_base()+0x261bc50usize)as*mut u8,();
321(Framework_2)__receiver)
322        }
323    }
324    #[doc = "`UpdatePause()` overload"]
325    fn update_pause(self) -> () {
326        unsafe {
327            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328            ::unity::il2cpp_call!((::unity::module_base()+0x261bcc0usize)as*mut u8,();
329(Framework_2)__receiver)
330        }
331    }
332    #[doc = "`Update()` overload"]
333    fn update(self) -> () {
334        unsafe {
335            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336            ::unity::il2cpp_call!((::unity::module_base()+0x261be90usize)as*mut u8,();
337(Framework_2)__receiver)
338        }
339    }
340    #[doc = "`LateUpdate()` overload"]
341    fn late_update(self) -> () {
342        unsafe {
343            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
344            ::unity::il2cpp_call!((::unity::module_base()+0x261bfd0usize)as*mut u8,();
345(Framework_2)__receiver)
346        }
347    }
348    #[doc = "`.ctor()` overload"]
349    fn ctor(self) -> () {
350        unsafe {
351            let __receiver = <Framework_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352            ::unity::il2cpp_call!((::unity::module_base()+0x261c890usize)as*mut u8,();
353(Framework_2)__receiver)
354        }
355    }
356}
357
358#[cfg(feature = "app-framework_2")]
359impl<__T: IFramework_2> IFramework_2Methods for __T {}
360
361#[cfg(feature = "app-framework_2")]
362impl Framework_2 {
363    pub fn is_boost_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
365    }
366
367    pub fn on_before_scene_load_runtime_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
369    }
370
371    pub fn on_after_scene_load_runtime_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
373    }
374
375    pub fn on_runtime_method_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
377    }
378
379    pub fn update_resolution_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
381    }
382
383    pub fn notification_message_received_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
385    }
386
387    pub fn reset_setting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
389    }
390
391    pub fn init_total_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
393    }
394
395    pub fn get_total_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
397    }
398
399    pub fn get_allocatable_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
401    }
402
403    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
405    }
406
407    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
409    }
410
411    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
413    }
414
415    pub fn update_pause_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
417    }
418
419    pub fn cpu_boost_on_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
421    }
422
423    pub fn cpu_boost_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
425    }
426
427    pub fn cpu_boost_on_for_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
429    }
430
431    pub fn cpu_boost_off_for_loading_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
433    }
434
435    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
437    }
438
439    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
441    }
442
443    pub fn is_pausing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
445    }
446
447    pub fn shoutdown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
449    }
450
451    pub fn gc_begin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
453    }
454
455    pub fn gc_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
457    }
458
459    pub fn gc_collect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
461    }
462
463    pub fn gc_collect_low_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
465    }
466
467    pub fn gc_commit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
469    }
470
471    pub fn gc_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
473    }
474
475    pub fn gc_unbind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
477    }
478
479    pub fn collect_coroutine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
481    }
482
483    pub fn add_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
485    }
486
487    pub fn update_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
489    }
490
491    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
493    }
494
495    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
497    }
498}
499
500#[cfg(feature = "app-framework_2")]
501impl Framework_2 {
502    #[doc = "Direct (non-virtual) call to `Framework_2`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
503    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
504        let __mi = Self::awake_method_info();
505        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
506        __inner(this.into(), ::core::option::Option::None)
507    }
508}
509
510#[cfg(feature = "app-framework_2")]
511impl Framework_2 {
512    #[doc = "`.ctor()` — no args"]
513    pub fn new() -> Self {
514        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
515            panic!(
516                "{}
517::{}
518 failed to instantiate",
519                ::core::stringify!(Framework_2),
520                ::core::stringify!(new),
521            )
522        });
523        <Self as IFramework_2Methods>::ctor(this);
524        this
525    }
526}
527
528#[cfg(feature = "app-framework_2")]
529#[doc(hidden)]
530pub mod prelude {
531    pub use super::{Framework_2, IFramework_2, IFramework_2Methods};
532    #[cfg(feature = "app-singletonmonobehaviour_1")]
533    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
534    #[cfg(feature = "system-object")]
535    pub use crate::system::object::IObjectMethods;
536    #[cfg(feature = "unity_engine-behaviour")]
537    pub use crate::unity_engine::behaviour::IBehaviourMethods;
538    #[cfg(feature = "unity_engine-component")]
539    pub use crate::unity_engine::component::IComponentMethods;
540    #[cfg(feature = "unity_engine-monobehaviour")]
541    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
542    #[cfg(feature = "unity_engine-object_2")]
543    pub use crate::unity_engine::object_2::IObject_2Methods;
544    pub use crate::{
545        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
546        system::object::IObject,
547        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
548    };
549}