Skip to main content

engage/generated/unity_engine/scene_management/
scene.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-scene_management-scene-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/scene_management/scene/Scene.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct Scene {
17        pub m_handle: i32,
18    }
19    impl ::unity::ClassIdentity for Scene {
20        const NAME: &'static str = "Scene";
21        const NAMESPACE: &'static str = "UnityEngine.SceneManagement";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26        }
27    }
28    impl ::unity::IlType for Scene {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33}
34
35#[cfg(feature = "unity_engine-scene_management-scene-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-scene_management-scene")]
39impl Scene {
40    #[doc = "`IsValidInternal(i32)` overload"]
41    pub fn is_valid_internal(scene_handle: impl ::core::convert::Into<i32>) -> bool {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f89c60usize)as*mut u8,bool;
44(i32)::core::convert::Into::into(scene_handle))
45        }
46    }
47
48    #[doc = "`GetPathInternal(i32)` overload"]
49    pub fn get_path_internal(scene_handle: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x2f89cb0usize)as*mut u8, ::unity::Il2CppString;
52(i32)::core::convert::Into::into(scene_handle))
53        }
54    }
55
56    #[doc = "`GetNameInternal(i32)` overload"]
57    pub fn get_name_internal(scene_handle: impl ::core::convert::Into<i32>) -> ::unity::Il2CppString {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2f89d00usize)as*mut u8, ::unity::Il2CppString;
60(i32)::core::convert::Into::into(scene_handle))
61        }
62    }
63
64    #[doc = "`GetIsLoadedInternal(i32)` overload"]
65    pub fn get_is_loaded_internal(scene_handle: impl ::core::convert::Into<i32>) -> bool {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2f89d50usize)as*mut u8,bool;
68(i32)::core::convert::Into::into(scene_handle))
69        }
70    }
71
72    #[doc = "`GetRootCountInternal(i32)` overload"]
73    pub fn get_root_count_internal(scene_handle: impl ::core::convert::Into<i32>) -> i32 {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x2f89da0usize)as*mut u8,i32;
76(i32)::core::convert::Into::into(scene_handle))
77        }
78    }
79
80    #[doc = "`GetRootGameObjectsInternal(i32, crate::system::object::Object)` overload"]
81    pub fn get_root_game_objects_internal(
82        scene_handle: impl ::core::convert::Into<i32>,
83        result_root_list: impl ::core::convert::Into<crate::system::object::Object>,
84    ) -> () {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x2f89df0usize)as*mut u8,();
87(i32)::core::convert::Into::into(scene_handle),(crate::system::object::Object)::core::convert::Into::into(result_root_list))
88        }
89    }
90
91    #[doc = "`op_Equality(crate::unity_engine::scene_management::scene::Scene, crate::unity_engine::scene_management::scene::Scene)` overload"]
92    pub fn op_equality(
93        lhs: impl ::core::convert::Into<crate::unity_engine::scene_management::scene::Scene>,
94        rhs: impl ::core::convert::Into<crate::unity_engine::scene_management::scene::Scene>,
95    ) -> bool {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x2f8a320usize)as*mut u8,bool;
98(crate::unity_engine::scene_management::scene::Scene)::core::convert::Into::into(lhs),(crate::unity_engine::scene_management::scene::Scene)::core::convert::Into::into(rhs))
99        }
100    }
101}
102
103#[cfg(feature = "unity_engine-scene_management-scene")]
104impl Scene {
105    #[doc = "`get_handle()` overload"]
106    pub fn get_handle(&mut self) -> i32 {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x2f89e40usize)as*mut u8,i32;
109(*mut Scene)self as*mut Scene)
110        }
111    }
112
113    #[doc = "`IsValid()` overload"]
114    pub fn is_valid(&mut self) -> bool {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x2f89e50usize)as*mut u8,bool;
117(*mut Scene)self as*mut Scene)
118        }
119    }
120
121    #[doc = "`get_path()` overload"]
122    pub fn get_path(&mut self) -> ::unity::Il2CppString {
123        unsafe {
124            ::unity::il2cpp_call!((::unity::module_base()+0x2f89ea0usize)as*mut u8, ::unity::Il2CppString;
125(*mut Scene)self as*mut Scene)
126        }
127    }
128
129    #[doc = "`get_name()` overload"]
130    pub fn get_name(&mut self) -> ::unity::Il2CppString {
131        unsafe {
132            ::unity::il2cpp_call!((::unity::module_base()+0x2f89ef0usize)as*mut u8, ::unity::Il2CppString;
133(*mut Scene)self as*mut Scene)
134        }
135    }
136
137    #[doc = "`get_isLoaded()` overload"]
138    pub fn get_is_loaded(&mut self) -> bool {
139        unsafe {
140            ::unity::il2cpp_call!((::unity::module_base()+0x2f89f40usize)as*mut u8,bool;
141(*mut Scene)self as*mut Scene)
142        }
143    }
144
145    #[doc = "`get_rootCount()` overload"]
146    pub fn get_root_count(&mut self) -> i32 {
147        unsafe {
148            ::unity::il2cpp_call!((::unity::module_base()+0x2f89f90usize)as*mut u8,i32;
149(*mut Scene)self as*mut Scene)
150        }
151    }
152
153    #[doc = "`GetRootGameObjects()` overload"]
154    pub fn get_root_game_objects(&mut self) -> ::unity::Array<crate::unity_engine::gameobject::GameObject> {
155        unsafe {
156            ::unity::il2cpp_call!((::unity::module_base()+0x2f89fe0usize)as*mut u8, ::unity::Array<crate::unity_engine::gameobject::GameObject> ;
157(*mut Scene)self as*mut Scene)
158        }
159    }
160
161    #[doc = "`GetRootGameObjects(crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>)` overload"]
162    pub fn get_root_game_objects_2(
163        &mut self,
164        root_game_objects: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>>,
165    ) -> () {
166        unsafe {
167            ::unity::il2cpp_call!((::unity::module_base()+0x2f8a0c0usize)as*mut u8,();
168(*mut Scene)self as*mut Scene,(crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>)::core::convert::Into::into(root_game_objects))
169        }
170    }
171
172    #[doc = "`GetHashCode()` overload"]
173    pub fn get_hash_code(&mut self) -> i32 {
174        unsafe {
175            ::unity::il2cpp_call!((::unity::module_base()+0x2f8a330usize)as*mut u8,i32;
176(*mut Scene)self as*mut Scene)
177        }
178    }
179
180    #[doc = "`Equals(crate::system::object::Object)` overload"]
181    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
182        unsafe {
183            ::unity::il2cpp_call!((::unity::module_base()+0x2f8a340usize)as*mut u8,bool;
184(*mut Scene)self as*mut Scene,(crate::system::object::Object)::core::convert::Into::into(other))
185        }
186    }
187}
188
189#[cfg(feature = "unity_engine-scene_management-scene")]
190impl Scene {
191    pub fn is_valid_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
193    }
194
195    pub fn get_path_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
197    }
198
199    pub fn get_name_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
201    }
202
203    pub fn get_is_loaded_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
205    }
206
207    pub fn get_root_count_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
209    }
210
211    pub fn get_root_game_objects_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
213    }
214
215    pub fn get_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
217    }
218
219    pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
221    }
222
223    pub fn get_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
225    }
226
227    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
229    }
230
231    pub fn get_is_loaded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
233    }
234
235    pub fn get_root_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
237    }
238
239    pub fn get_root_game_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
241    }
242
243    pub fn get_root_game_objects_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
245    }
246
247    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
249    }
250
251    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
253    }
254
255    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
257    }
258}
259
260#[cfg(feature = "unity_engine-scene_management-scene")]
261#[doc(hidden)]
262pub mod prelude {
263    pub use super::Scene;
264    #[cfg(feature = "system-object")]
265    pub use crate::system::object::IObjectMethods;
266    #[cfg(feature = "system-valuetype")]
267    pub use crate::system::valuetype::IValueTypeMethods;
268    pub use crate::system::{object::IObject, valuetype::IValueType};
269}