Skip to main content

engage/generated/unity_engine/resource_management/resource_providers/
sceneinstance.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-resource_management-resource_providers-sceneinstance-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/resource_providers/sceneinstance/SceneInstance.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct SceneInstance {
17        pub m_scene: crate::unity_engine::scene_management::scene::Scene,
18        pub m_operation: crate::unity_engine::asyncoperation::AsyncOperation,
19    }
20    impl ::unity::ClassIdentity for SceneInstance {
21        const NAME: &'static str = "SceneInstance";
22        const NAMESPACE: &'static str = "UnityEngine.ResourceManagement.ResourceProviders";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for SceneInstance {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "unity_engine-resource_management-resource_providers-sceneinstance-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-resource_management-resource_providers-sceneinstance")]
40#[doc(hidden)]
41#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
42mod __SceneInstance_unity_raw {
43    use super::*;
44    #[doc(hidden)]
45    #[allow(non_snake_case)]
46    pub mod __lookup_get_scene {
47        use super::*;
48        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
49            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
50            ::unity::lookup::method_info_on_class_with_signature(
51                <SceneInstance as ::unity::ClassIdentity>::class(),
52                "get_Scene",
53                0,
54                param_types,
55                false,
56            )
57        });
58        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59            match &*METHOD {
60                ::core::result::Result::Ok(mi) => *mi,
61                ::core::result::Result::Err(e) => {
62                    panic!(
63                        "method lookup failed: {}
64::{}
65: {}
66",
67                        <SceneInstance as ::unity::ClassIdentity>::NAME,
68                        "get_Scene",
69                        e
70                    )
71                },
72            }
73        }
74    }
75    #[doc(hidden)]
76    #[allow(non_snake_case)]
77    pub mod __lookup_set_scene {
78        use super::*;
79        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
80            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
81                &[<crate::unity_engine::scene_management::scene::Scene as ::unity::IlType>::il_type()];
82            ::unity::lookup::method_info_on_class_with_signature(
83                <SceneInstance as ::unity::ClassIdentity>::class(),
84                "set_Scene",
85                1,
86                param_types,
87                false,
88            )
89        });
90        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91            match &*METHOD {
92                ::core::result::Result::Ok(mi) => *mi,
93                ::core::result::Result::Err(e) => {
94                    panic!(
95                        "method lookup failed: {}
96::{}
97: {}
98",
99                        <SceneInstance as ::unity::ClassIdentity>::NAME,
100                        "set_Scene",
101                        e
102                    )
103                },
104            }
105        }
106    }
107    #[doc(hidden)]
108    #[allow(non_snake_case)]
109    pub mod __lookup_activate {
110        use super::*;
111        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
112            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
113            ::unity::lookup::method_info_on_class_with_signature(
114                <SceneInstance as ::unity::ClassIdentity>::class(),
115                "Activate",
116                0,
117                param_types,
118                false,
119            )
120        });
121        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122            match &*METHOD {
123                ::core::result::Result::Ok(mi) => *mi,
124                ::core::result::Result::Err(e) => {
125                    panic!(
126                        "method lookup failed: {}
127::{}
128: {}
129",
130                        <SceneInstance as ::unity::ClassIdentity>::NAME,
131                        "Activate",
132                        e
133                    )
134                },
135            }
136        }
137    }
138    #[doc(hidden)]
139    #[allow(non_snake_case)]
140    pub mod __lookup_activate_async {
141        use super::*;
142        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
143            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
144            ::unity::lookup::method_info_on_class_with_signature(
145                <SceneInstance as ::unity::ClassIdentity>::class(),
146                "ActivateAsync",
147                0,
148                param_types,
149                false,
150            )
151        });
152        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153            match &*METHOD {
154                ::core::result::Result::Ok(mi) => *mi,
155                ::core::result::Result::Err(e) => {
156                    panic!(
157                        "method lookup failed: {}
158::{}
159: {}
160",
161                        <SceneInstance as ::unity::ClassIdentity>::NAME,
162                        "ActivateAsync",
163                        e
164                    )
165                },
166            }
167        }
168    }
169    #[doc(hidden)]
170    #[allow(non_snake_case)]
171    pub mod __lookup_get_hash_code {
172        use super::*;
173        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
174            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
175            ::unity::lookup::method_info_on_class_with_signature(
176                <SceneInstance as ::unity::ClassIdentity>::class(),
177                "GetHashCode",
178                0,
179                param_types,
180                false,
181            )
182        });
183        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184            match &*METHOD {
185                ::core::result::Result::Ok(mi) => *mi,
186                ::core::result::Result::Err(e) => {
187                    panic!(
188                        "method lookup failed: {}
189::{}
190: {}
191",
192                        <SceneInstance as ::unity::ClassIdentity>::NAME,
193                        "GetHashCode",
194                        e
195                    )
196                },
197            }
198        }
199    }
200    #[doc(hidden)]
201    #[allow(non_snake_case)]
202    pub mod __lookup_equals {
203        use super::*;
204        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
205            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[<crate::system::object::Object as ::unity::IlType>::il_type()];
206            ::unity::lookup::method_info_on_class_with_signature(<SceneInstance as ::unity::ClassIdentity>::class(), "Equals", 1, param_types, false)
207        });
208        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209            match &*METHOD {
210                ::core::result::Result::Ok(mi) => *mi,
211                ::core::result::Result::Err(e) => {
212                    panic!(
213                        "method lookup failed: {}
214::{}
215: {}
216",
217                        <SceneInstance as ::unity::ClassIdentity>::NAME,
218                        "Equals",
219                        e
220                    )
221                },
222            }
223        }
224    }
225}
226
227#[cfg(feature = "unity_engine-resource_management-resource_providers-sceneinstance")]
228impl SceneInstance {
229    #[doc = "`get_Scene()` overload"]
230    pub fn get_scene(&mut self) -> crate::unity_engine::scene_management::scene::Scene {
231        unsafe {
232            ::unity::il2cpp_call!(::unity::callable_ptr(__SceneInstance_unity_raw::__lookup_get_scene::get_method_info().method_ptr),crate::unity_engine::scene_management::scene::Scene;
233(*mut SceneInstance)self as*mut SceneInstance)
234        }
235    }
236
237    #[doc = "`set_Scene(crate::unity_engine::scene_management::scene::Scene)` overload"]
238    pub fn set_scene(&mut self, value: impl ::core::convert::Into<crate::unity_engine::scene_management::scene::Scene>) -> () {
239        unsafe {
240            ::unity::il2cpp_call!(::unity::callable_ptr(__SceneInstance_unity_raw::__lookup_set_scene::get_method_info().method_ptr),();
241(*mut SceneInstance)self as*mut SceneInstance,(crate::unity_engine::scene_management::scene::Scene)::core::convert::Into::into(value))
242        }
243    }
244
245    #[doc = "`Activate()` overload"]
246    pub fn activate(&mut self) -> () {
247        unsafe {
248            ::unity::il2cpp_call!(::unity::callable_ptr(__SceneInstance_unity_raw::__lookup_activate::get_method_info().method_ptr),();
249(*mut SceneInstance)self as*mut SceneInstance)
250        }
251    }
252
253    #[doc = "`ActivateAsync()` overload"]
254    pub fn activate_async(&mut self) -> crate::unity_engine::asyncoperation::AsyncOperation {
255        unsafe {
256            ::unity::il2cpp_call!(::unity::callable_ptr(__SceneInstance_unity_raw::__lookup_activate_async::get_method_info().method_ptr),crate::unity_engine::asyncoperation::AsyncOperation;
257(*mut SceneInstance)self as*mut SceneInstance)
258        }
259    }
260
261    #[doc = "`GetHashCode()` overload"]
262    pub fn get_hash_code(&mut self) -> i32 {
263        unsafe {
264            ::unity::il2cpp_call!(::unity::callable_ptr(__SceneInstance_unity_raw::__lookup_get_hash_code::get_method_info().method_ptr),i32;
265(*mut SceneInstance)self as*mut SceneInstance)
266        }
267    }
268
269    #[doc = "`Equals(crate::system::object::Object)` overload"]
270    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
271        unsafe {
272            ::unity::il2cpp_call!(::unity::callable_ptr(__SceneInstance_unity_raw::__lookup_equals::get_method_info().method_ptr),bool;
273(*mut SceneInstance)self as*mut SceneInstance,(crate::system::object::Object)::core::convert::Into::into(obj))
274        }
275    }
276}
277
278#[cfg(feature = "unity_engine-resource_management-resource_providers-sceneinstance")]
279impl SceneInstance {
280    pub fn get_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
282    }
283
284    pub fn set_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
286    }
287
288    pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
290    }
291
292    pub fn activate_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
294    }
295
296    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
298    }
299
300    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
302    }
303}
304
305#[cfg(feature = "unity_engine-resource_management-resource_providers-sceneinstance")]
306#[doc(hidden)]
307pub mod prelude {
308    pub use super::SceneInstance;
309    #[cfg(feature = "system-object")]
310    pub use crate::system::object::IObjectMethods;
311    #[cfg(feature = "system-valuetype")]
312    pub use crate::system::valuetype::IValueTypeMethods;
313    pub use crate::system::{object::IObject, valuetype::IValueType};
314}