engage/generated/app/
mapsetting.rs1#[cfg(feature = "app-mapsetting-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/mapsetting/MapSetting.md"))]
20 #[::unity::class(namespace = "App", name = "MapSetting")]
21 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::mapsetting::MapSetting>)]
22 pub struct MapSetting {
23 #[offset(32)]
24 #[rename(name = "m_MapTerrain")]
25 pub m_map_terrain: crate::app::mapterrain::MapTerrain,
26 #[offset(40)]
27 #[rename(name = "m_ObjectList")]
28 pub m_object_list: crate::system::collections::generic::list_1::List_1<crate::app::mapobject::MapObject>,
29 #[offset(48)]
30 #[rename(name = "m_ObjectDictionary")]
31 pub m_object_dictionary:
32 crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, crate::app::mapobject::MapObject>,
33 #[static_field]
34 #[rename(name = "s_BackupList")]
35 pub s_backup_list: crate::app::mapbackuplist::MapBackupList,
36 #[offset(56)]
37 #[rename(name = "m_MapDevelop")]
38 pub m_map_develop: crate::app::mapterrain::MapTerrain,
39 }
40}
41
42#[cfg(feature = "app-mapsetting-types")]
43pub use __types::*;
44
45#[cfg(feature = "app-mapsetting")]
46impl MapSetting {
47 #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
48 pub fn serialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x1f428c0usize)as*mut u8,();
51(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
52 }
53 }
54
55 #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
56 pub fn deserialize(stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x1f42940usize)as*mut u8,();
59(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
60 }
61 }
62
63 #[doc = "`Resume()` overload"]
64 pub fn resume() -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x1f429c0usize)as*mut u8,();
67 )
68 }
69 }
70
71 #[doc = "`get_MapTerrain()` overload"]
72 pub fn get_map_terrain() -> crate::app::mapterrain::MapTerrain {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x1f42a60usize)as*mut u8,crate::app::mapterrain::MapTerrain;
75 )
76 }
77 }
78
79 #[doc = "`get_Width()` overload"]
80 pub fn get_width() -> i32 {
81 unsafe {
82 ::unity::il2cpp_call!((::unity::module_base()+0x1f42b50usize)as*mut u8,i32;
83 )
84 }
85 }
86
87 #[doc = "`get_Height()` overload"]
88 pub fn get_height() -> i32 {
89 unsafe {
90 ::unity::il2cpp_call!((::unity::module_base()+0x1f42c10usize)as*mut u8,i32;
91 )
92 }
93 }
94
95 #[doc = "`.cctor()` overload"]
96 pub fn cctor() -> () {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x1f42e00usize)as*mut u8,();
99 )
100 }
101 }
102}
103
104#[cfg(feature = "app-mapsetting")]
105pub trait IMapSettingMethods: IMapSetting {
106 #[doc = "`Awake()` overload"]
107 fn awake(self) -> () {
108 unsafe {
109 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 {
111 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
113 panic!(
114 "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119 4usize,
120 __vt.len(),
121 <MapSetting as ::unity::ClassIdentity>::NAME,
122 "Awake",
123 )
124 });
125 let __inner: extern "C" fn(MapSetting, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
126 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127 __inner(__receiver, __mi)
128 }
129 }
130 }
131 #[doc = "`Start()` overload"]
132 fn start(self) -> () {
133 unsafe {
134 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x1f41b90usize)as*mut u8,();
136(MapSetting)__receiver)
137 }
138 }
139 #[doc = "`Update()` overload"]
140 fn update(self) -> () {
141 unsafe {
142 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x1f42130usize)as*mut u8,();
144(MapSetting)__receiver)
145 }
146 }
147 #[doc = "`FindMapObjectFromName(::unity::Il2CppString)` overload"]
148 fn find_map_object_from_name(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::mapobject::MapObject {
149 unsafe {
150 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x1f42140usize)as*mut u8,crate::app::mapobject::MapObject;
152(MapSetting)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
153 }
154 }
155 #[doc = "`FindMapObjectFromKey(::unity::Il2CppString)` overload"]
156 fn find_map_object_from_key(self, key: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::mapobject::MapObject {
157 unsafe {
158 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x1f422d0usize)as*mut u8,crate::app::mapobject::MapObject;
160(MapSetting)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key))
161 }
162 }
163 #[doc = "`Activate()` overload"]
164 fn activate(self) -> () {
165 unsafe {
166 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x1f42360usize)as*mut u8,();
168(MapSetting)__receiver)
169 }
170 }
171 #[doc = "`Inactive()` overload"]
172 fn inactive(self) -> () {
173 unsafe {
174 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x1f42560usize)as*mut u8,();
176(MapSetting)__receiver)
177 }
178 }
179 #[doc = "`ChangedActiveScene(crate::unity_engine::scene_management::scene::Scene, crate::unity_engine::scene_management::scene::Scene)` overload"]
180 fn changed_active_scene(
181 self,
182 current: impl ::core::convert::Into<crate::unity_engine::scene_management::scene::Scene>,
183 next: impl ::core::convert::Into<crate::unity_engine::scene_management::scene::Scene>,
184 ) -> () {
185 unsafe {
186 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x1f426c0usize)as*mut u8,();
188(MapSetting)__receiver,(crate::unity_engine::scene_management::scene::Scene)::core::convert::Into::into(current),(crate::unity_engine::scene_management::scene::Scene)::core::convert::Into::into(next))
189 }
190 }
191 #[doc = "`OnEnable()` overload"]
192 fn on_enable(self) -> () {
193 unsafe {
194 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x1f42720usize)as*mut u8,();
196(MapSetting)__receiver)
197 }
198 }
199 #[doc = "`OnDisable()` overload"]
200 fn on_disable(self) -> () {
201 unsafe {
202 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x1f427f0usize)as*mut u8,();
204(MapSetting)__receiver)
205 }
206 }
207 #[doc = "`CommitMapObject()` overload"]
208 fn commit_map_object(self) -> () {
209 unsafe {
210 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x1f41fa0usize)as*mut u8,();
212(MapSetting)__receiver)
213 }
214 }
215 #[doc = "`GetObjectList()` overload"]
216 fn get_object_list(self) -> crate::system::collections::generic::list_1::List_1<crate::app::mapobject::MapObject> {
217 unsafe {
218 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x1f42a50usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::mapobject::MapObject> ;
220(MapSetting)__receiver)
221 }
222 }
223 #[doc = "`UpdateLODGroup()` overload"]
224 fn update_lod_group(self) -> () {
225 unsafe {
226 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x1f41d40usize)as*mut u8,();
228(MapSetting)__receiver)
229 }
230 }
231 #[doc = "`.ctor()` overload"]
232 fn ctor(self) -> () {
233 unsafe {
234 let __receiver = <MapSetting as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x1f42cd0usize)as*mut u8,();
236(MapSetting)__receiver)
237 }
238 }
239}
240
241#[cfg(feature = "app-mapsetting")]
242impl<__T: IMapSetting> IMapSettingMethods for __T {}
243
244#[cfg(feature = "app-mapsetting")]
245impl MapSetting {
246 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
248 }
249
250 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
252 }
253
254 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
256 }
257
258 pub fn find_map_object_from_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
260 }
261
262 pub fn find_map_object_from_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
264 }
265
266 pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
268 }
269
270 pub fn inactive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
272 }
273
274 pub fn changed_active_scene_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
276 }
277
278 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
280 }
281
282 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
284 }
285
286 pub fn commit_map_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
288 }
289
290 pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
292 }
293
294 pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
296 }
297
298 pub fn resume_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
300 }
301
302 pub fn get_object_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
304 }
305
306 pub fn update_lod_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
308 }
309
310 pub fn get_map_terrain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
312 }
313
314 pub fn get_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
316 }
317
318 pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
320 }
321
322 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
324 }
325
326 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
328 }
329}
330
331#[cfg(feature = "app-mapsetting")]
332impl MapSetting {
333 #[doc = "Direct (non-virtual) call to `MapSetting`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
335 let __mi = Self::awake_method_info();
336 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
337 __inner(this.into(), ::core::option::Option::None)
338 }
339}
340
341#[cfg(feature = "app-mapsetting")]
342impl MapSetting {
343 #[doc = "`.ctor()` — no args"]
344 pub fn new() -> Self {
345 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
346 panic!(
347 "{}
348::{}
349 failed to instantiate",
350 ::core::stringify!(MapSetting),
351 ::core::stringify!(new),
352 )
353 });
354 <Self as IMapSettingMethods>::ctor(this);
355 this
356 }
357}
358
359#[cfg(feature = "app-mapsetting")]
360#[doc(hidden)]
361pub mod prelude {
362 pub use super::{IMapSetting, IMapSettingMethods, MapSetting};
363 #[cfg(feature = "app-singletonmonobehaviour_1")]
364 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
365 #[cfg(feature = "system-object")]
366 pub use crate::system::object::IObjectMethods;
367 #[cfg(feature = "unity_engine-behaviour")]
368 pub use crate::unity_engine::behaviour::IBehaviourMethods;
369 #[cfg(feature = "unity_engine-component")]
370 pub use crate::unity_engine::component::IComponentMethods;
371 #[cfg(feature = "unity_engine-monobehaviour")]
372 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
373 #[cfg(feature = "unity_engine-object_2")]
374 pub use crate::unity_engine::object_2::IObject_2Methods;
375 pub use crate::{
376 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
377 system::object::IObject,
378 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
379 };
380}