Skip to main content

engage/generated/app/
procscenemanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-procscenemanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::procinst::{IProcInst, ProcInst},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procscenemanager/ProcSceneManager.md"))]
18    #[::unity::class(namespace = "App", name = "ProcSceneManager")]
19    #[parent(crate::app::procinst::ProcInst)]
20    pub struct ProcSceneManager {
21        #[static_field]
22        #[rename(name = "Empty")]
23        pub empty: ::unity::Il2CppString,
24        #[static_field]
25        #[rename(name = "s_Handles")]
26        pub s_handles:
27            crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::resourcehandle_2::ResourceHandle_2>,
28        #[static_field]
29        #[rename(name = "s_Releases")]
30        pub s_releases: crate::system::collections::generic::list_1::List_1<crate::app::resourcehandle_2::ResourceHandle_2>,
31        #[offset(112)]
32        #[rename(name = "m_Name")]
33        pub m_name: ::unity::Il2CppString,
34        #[offset(120)]
35        #[rename(name = "m_Mode")]
36        pub m_mode: crate::unity_engine::scene_management::loadscenemode::LoadSceneMode,
37        #[offset(128)]
38        #[rename(name = "m_Empty")]
39        pub m_empty: crate::app::resourcehandle_2::ResourceHandle_2,
40        #[offset(136)]
41        #[rename(name = "m_Handle")]
42        pub m_handle: crate::app::resourcehandle_2::ResourceHandle_2,
43    }
44
45    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/procscenemanager/ProcSceneManager_Label.md"))]
46    #[repr(C)]
47    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
48    pub struct ProcSceneManager_Label {
49        pub value: i32,
50    }
51    impl ::unity::ClassIdentity for ProcSceneManager_Label {
52        const NAME: &'static str = "ProcSceneManager.Label";
53        const NAMESPACE: &'static str = "App";
54
55        fn class() -> ::unity::Class {
56            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
57            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
58        }
59    }
60    impl ::unity::IlType for ProcSceneManager_Label {
61        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
62            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
63        }
64    }
65    impl ProcSceneManager_Label {
66        pub fn skip() -> Self {
67            Self { value: 0 }
68        }
69    }
70}
71
72#[cfg(feature = "app-procscenemanager-types")]
73pub use __types::*;
74
75#[cfg(feature = "app-procscenemanager")]
76impl ProcSceneManager {
77    #[doc = "`HasEmptyScene()` overload"]
78    pub fn has_empty_scene() -> bool {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x281f560usize)as*mut u8,bool;
81            )
82        }
83    }
84
85    #[doc = "`LoadBind(crate::app::procinst::ProcInst, ::unity::Il2CppString, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)` overload"]
86    pub fn load_bind(
87        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
88        name: impl ::core::convert::Into<::unity::Il2CppString>,
89        mode: impl ::core::convert::Into<crate::unity_engine::scene_management::loadscenemode::LoadSceneMode>,
90    ) -> () {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x281fe60usize)as*mut u8,();
93(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)::core::convert::Into::into(mode))
94        }
95    }
96
97    #[doc = "`UnloadBind(crate::app::procinst::ProcInst)` overload"]
98    pub fn unload_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x2820980usize)as*mut u8,();
101(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
102        }
103    }
104
105    #[doc = "`UnloadBind(crate::app::procinst::ProcInst, ::unity::Il2CppString)` overload"]
106    pub fn unload_bind_2(
107        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
108        name: impl ::core::convert::Into<::unity::Il2CppString>,
109    ) -> () {
110        unsafe {
111            ::unity::il2cpp_call!((::unity::module_base()+0x2821130usize)as*mut u8,();
112(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(name))
113        }
114    }
115
116    #[doc = "`UnloadBindImpl(crate::app::procinst::ProcInst, ::unity::Il2CppString, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)` overload"]
117    pub fn unload_bind_impl(
118        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
119        name: impl ::core::convert::Into<::unity::Il2CppString>,
120        mode: impl ::core::convert::Into<crate::unity_engine::scene_management::loadscenemode::LoadSceneMode>,
121    ) -> () {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x2820a10usize)as*mut u8,();
124(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)::core::convert::Into::into(mode))
125        }
126    }
127
128    #[doc = "`.cctor()` overload"]
129    pub fn cctor() -> () {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x28211b0usize)as*mut u8,();
132            )
133        }
134    }
135}
136
137#[cfg(feature = "app-procscenemanager")]
138pub trait IProcSceneManagerMethods: IProcSceneManager {
139    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)` overload"]
140    fn ctor(
141        self,
142        name: impl ::core::convert::Into<::unity::Il2CppString>,
143        mode: impl ::core::convert::Into<crate::unity_engine::scene_management::loadscenemode::LoadSceneMode>,
144    ) -> () {
145        unsafe {
146            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x281f4f0usize)as*mut u8,();
148(ProcSceneManager)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)::core::convert::Into::into(mode))
149        }
150    }
151    #[doc = "`UnloadBranch()` overload"]
152    fn unload_branch(self) -> () {
153        unsafe {
154            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x281f670usize)as*mut u8,();
156(ProcSceneManager)__receiver)
157        }
158    }
159    #[doc = "`UnloadAsync()` overload"]
160    fn unload_async(self) -> () {
161        unsafe {
162            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x281f730usize)as*mut u8,();
164(ProcSceneManager)__receiver)
165        }
166    }
167    #[doc = "`WaitAsync()` overload"]
168    fn wait_async(self) -> () {
169        unsafe {
170            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x281fa40usize)as*mut u8,();
172(ProcSceneManager)__receiver)
173        }
174    }
175    #[doc = "`Release()` overload"]
176    fn release(self) -> () {
177        unsafe {
178            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x281fad0usize)as*mut u8,();
180(ProcSceneManager)__receiver)
181        }
182    }
183    #[doc = "`LoadAsync()` overload"]
184    fn load_async(self) -> () {
185        unsafe {
186            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x281fc50usize)as*mut u8,();
188(ProcSceneManager)__receiver)
189        }
190    }
191    #[doc = "`DoneAsync()` overload"]
192    fn done_async(self) -> () {
193        unsafe {
194            let __receiver = <ProcSceneManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x281fcf0usize)as*mut u8,();
196(ProcSceneManager)__receiver)
197        }
198    }
199}
200
201#[cfg(feature = "app-procscenemanager")]
202impl<__T: IProcSceneManager> IProcSceneManagerMethods for __T {}
203
204#[cfg(feature = "app-procscenemanager")]
205impl ProcSceneManager {
206    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
208    }
209
210    pub fn has_empty_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
212    }
213
214    pub fn unload_branch_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
216    }
217
218    pub fn unload_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
220    }
221
222    pub fn wait_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
224    }
225
226    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
228    }
229
230    pub fn load_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
232    }
233
234    pub fn done_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
236    }
237
238    pub fn load_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
240    }
241
242    pub fn unload_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
244    }
245
246    pub fn unload_bind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
248    }
249
250    pub fn unload_bind_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
252    }
253
254    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
256    }
257}
258
259#[cfg(feature = "app-procscenemanager")]
260impl ProcSceneManager {
261    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::scene_management::loadscenemode::LoadSceneMode)` — overload selector"]
262    pub fn new(name: ::unity::Il2CppString, mode: crate::unity_engine::scene_management::loadscenemode::LoadSceneMode) -> Self {
263        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
264            panic!(
265                "{}
266::{}
267 failed to instantiate",
268                ::core::stringify!(ProcSceneManager),
269                ::core::stringify!(new),
270            )
271        });
272        <Self as IProcSceneManagerMethods>::ctor(this, name, mode);
273        this
274    }
275}
276
277#[cfg(feature = "app-procscenemanager")]
278#[doc(hidden)]
279pub mod prelude {
280    pub use super::{IProcSceneManager, IProcSceneManagerMethods, ProcSceneManager, ProcSceneManager_Label};
281    #[cfg(feature = "app-procinst")]
282    pub use crate::app::procinst::IProcInstMethods;
283    #[cfg(feature = "system-object")]
284    pub use crate::system::object::IObjectMethods;
285    #[cfg(feature = "system-enum")]
286    pub use crate::system::r#enum::IEnumMethods;
287    #[cfg(feature = "system-valuetype")]
288    pub use crate::system::valuetype::IValueTypeMethods;
289    pub use crate::{
290        app::procinst::IProcInst,
291        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
292    };
293}