Skip to main content

engage/generated/app/
mapimage.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimage-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonclass_1::{ISingletonClass_1, SingletonClass_1},
10        system::{
11            object::{IObject, Object},
12            valuetype::{IValueType, ValueType},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimage/MapImage_BackupTerrain.md"))]
17    #[repr(C)]
18    #[derive(::core::clone::Clone, ::core::marker::Copy)]
19    pub struct MapImage_BackupTerrain {
20        pub x: i32,
21        pub z: i32,
22        pub hash: i32,
23        pub index: i32,
24    }
25    impl ::unity::ClassIdentity for MapImage_BackupTerrain {
26        const NAME: &'static str = "MapImage.BackupTerrain";
27        const NAMESPACE: &'static str = "App";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for MapImage_BackupTerrain {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39
40    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimage/MapImage.md"))]
41    #[::unity::class(namespace = "App", name = "MapImage")]
42    #[parent(crate::app::singletonclass_1::SingletonClass_1<crate::app::mapimage::MapImage>)]
43    pub struct MapImage {
44        #[static_field]
45        #[rename(name = "MaxWidthBit")]
46        pub max_width_bit: i32,
47        #[static_field]
48        #[rename(name = "MaxHeightBit")]
49        pub max_height_bit: i32,
50        #[static_field]
51        #[rename(name = "MaxWidth")]
52        pub max_width: i32,
53        #[static_field]
54        #[rename(name = "MaxHeight")]
55        pub max_height: i32,
56        #[static_field]
57        #[rename(name = "MaxSize")]
58        pub max_size: i32,
59        #[static_field]
60        #[rename(name = "MaxOuter")]
61        pub max_outer: i32,
62        #[offset(32)]
63        #[rename(name = "m_Name")]
64        pub m_name: ::unity::Il2CppString,
65        #[offset(40)]
66        #[rename(name = "m_Unit")]
67        pub m_unit: crate::app::mapimageunit::MapImageUnit,
68        #[offset(48)]
69        #[rename(name = "m_Terrain")]
70        pub m_terrain: crate::app::mapimageterrain::MapImageTerrain,
71        #[offset(56)]
72        #[rename(name = "m_Cost")]
73        pub m_cost: crate::app::mapimagecost::MapImageCost,
74        #[offset(64)]
75        #[rename(name = "m_Danger")]
76        pub m_danger: crate::app::mapimagedanger::MapImageDanger,
77        #[offset(72)]
78        #[rename(name = "m_Talk")]
79        pub m_talk: crate::app::mapimagetalk::MapImageTalk,
80        #[offset(80)]
81        #[rename(name = "m_Range")]
82        pub m_range: crate::app::mapimagerange::MapImageRange,
83        #[offset(88)]
84        #[rename(name = "m_History")]
85        pub m_history: crate::app::mapimagehistory::MapImageHistory,
86        #[offset(96)]
87        #[rename(name = "m_BackupTerrains")]
88        pub m_backup_terrains: crate::system::collections::generic::list_1::List_1<crate::app::mapimage::MapImage_BackupTerrain>,
89    }
90}
91
92#[cfg(feature = "app-mapimage-types")]
93pub use __types::*;
94
95#[cfg(feature = "app-mapimage")]
96impl MapImage {
97    #[doc = "`GetPutTerrain(::unity::Il2CppString, bool)` overload"]
98    pub fn get_put_terrain(
99        tid: impl ::core::convert::Into<::unity::Il2CppString>,
100        nullable: impl ::core::convert::Into<bool>,
101    ) -> crate::app::terraindata_2::TerrainData_2 {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x1de2240usize)as*mut u8,crate::app::terraindata_2::TerrainData_2;
104(::unity::Il2CppString)::core::convert::Into::into(tid),(bool)::core::convert::Into::into(nullable))
105        }
106    }
107}
108
109#[cfg(feature = "app-mapimage")]
110pub trait IMapImageMethods: IMapImage {
111    #[doc = "`.ctor()` overload"]
112    fn ctor(self) -> () {
113        unsafe {
114            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x1de1fd0usize)as*mut u8,();
116(MapImage)__receiver)
117        }
118    }
119    #[doc = "`Setup(crate::app::mapterrain::MapTerrain, bool)` overload"]
120    fn setup(self, terrain: impl ::core::convert::Into<crate::app::mapterrain::MapTerrain>, is_resume: impl ::core::convert::Into<bool>) -> () {
121        unsafe {
122            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x1de23a0usize)as*mut u8,();
124(MapImage)__receiver,(crate::app::mapterrain::MapTerrain)::core::convert::Into::into(terrain),(bool)::core::convert::Into::into(is_resume))
125        }
126    }
127    #[doc = "`SetSize(i32, i32)` overload"]
128    fn set_size(self, w: impl ::core::convert::Into<i32>, h: impl ::core::convert::Into<i32>) -> () {
129        unsafe {
130            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x1de2ba0usize)as*mut u8,();
132(MapImage)__receiver,(i32)::core::convert::Into::into(w),(i32)::core::convert::Into::into(h))
133        }
134    }
135    #[doc = "`IsOutOfMap(i32, i32)` overload"]
136    fn is_out_of_map(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
137        unsafe {
138            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x1de2be0usize)as*mut u8,bool;
140(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
141        }
142    }
143    #[doc = "`IsOutOfPlayArea(i32, i32)` overload"]
144    fn is_out_of_play_area(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
145        unsafe {
146            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x1de2c10usize)as*mut u8,bool;
148(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
149        }
150    }
151    #[doc = "`CanTarget(i32, i32)` overload"]
152    fn can_target(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
153        unsafe {
154            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x1de2c40usize)as*mut u8,bool;
156(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
157        }
158    }
159    #[doc = "`CanTarget(i32, i32, crate::app::unit::Unit)` overload"]
160    fn can_target_2(
161        self,
162        x: impl ::core::convert::Into<i32>,
163        z: impl ::core::convert::Into<i32>,
164        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
165    ) -> bool {
166        unsafe {
167            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
168            ::unity::il2cpp_call!((::unity::module_base()+0x1de2d60usize)as*mut u8,bool;
169(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::unit::Unit)::core::convert::Into::into(unit))
170        }
171    }
172    #[doc = "`CanTarget(i32, i32, bool)` overload"]
173    fn can_target_3(
174        self,
175        x: impl ::core::convert::Into<i32>,
176        z: impl ::core::convert::Into<i32>,
177        is_consider_not_target: impl ::core::convert::Into<bool>,
178    ) -> bool {
179        unsafe {
180            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            ::unity::il2cpp_call!((::unity::module_base()+0x1de2f30usize)as*mut u8,bool;
182(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(is_consider_not_target))
183        }
184    }
185    #[doc = "`get_Version()` overload"]
186    fn get_version(self) -> i32 {
187        unsafe {
188            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            {
190                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
192                    panic!(
193                        "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198                        4usize,
199                        __vt.len(),
200                        <MapImage as ::unity::ClassIdentity>::NAME,
201                        "get_Version",
202                    )
203                });
204                let __inner: extern "C" fn(MapImage, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
205                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
206                __inner(__receiver, __mi)
207            }
208        }
209    }
210    #[doc = "`OnSerialize(crate::app::stream_2::Stream_2)` overload"]
211    fn on_serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
212        unsafe {
213            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            {
215                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
216                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
217                    panic!(
218                        "unity: virtual slot {}
219 out of range (vtable len {}
220) on the runtime class behind {}
221 (method `{}
222`)",
223                        11usize,
224                        __vt.len(),
225                        <MapImage as ::unity::ClassIdentity>::NAME,
226                        "OnSerialize",
227                    )
228                });
229                let __inner: extern "C" fn(MapImage, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
230                    ::core::mem::transmute(__vi.method_ptr);
231                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
232                __inner(__receiver, ::core::convert::Into::into(stream), __mi)
233            }
234        }
235    }
236    #[doc = "`OnDeserialize(crate::app::stream_2::Stream_2, i32)` overload"]
237    fn on_deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>, version: impl ::core::convert::Into<i32>) -> () {
238        unsafe {
239            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            {
241                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
242                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
243                    panic!(
244                        "unity: virtual slot {}
245 out of range (vtable len {}
246) on the runtime class behind {}
247 (method `{}
248`)",
249                        12usize,
250                        __vt.len(),
251                        <MapImage as ::unity::ClassIdentity>::NAME,
252                        "OnDeserialize",
253                    )
254                });
255                let __inner: extern "C" fn(MapImage, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
256                    ::core::mem::transmute(__vi.method_ptr);
257                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
258                __inner(
259                    __receiver,
260                    ::core::convert::Into::into(stream),
261                    ::core::convert::Into::into(version),
262                    __mi,
263                )
264            }
265        }
266    }
267    #[doc = "`get_X()` overload"]
268    fn get_x(self) -> i32 {
269        unsafe {
270            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            ::unity::il2cpp_call!((::unity::module_base()+0x1de38f0usize)as*mut u8,i32;
272(MapImage)__receiver)
273        }
274    }
275    #[doc = "`get_Z()` overload"]
276    fn get_z(self) -> i32 {
277        unsafe {
278            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            ::unity::il2cpp_call!((::unity::module_base()+0x1de3900usize)as*mut u8,i32;
280(MapImage)__receiver)
281        }
282    }
283    #[doc = "`get_W()` overload"]
284    fn get_w(self) -> i32 {
285        unsafe {
286            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x1de3910usize)as*mut u8,i32;
288(MapImage)__receiver)
289        }
290    }
291    #[doc = "`set_W(i32)` overload"]
292    fn set_w(self, value: impl ::core::convert::Into<i32>) -> () {
293        unsafe {
294            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            ::unity::il2cpp_call!((::unity::module_base()+0x1de3920usize)as*mut u8,();
296(MapImage)__receiver,(i32)::core::convert::Into::into(value))
297        }
298    }
299    #[doc = "`get_H()` overload"]
300    fn get_h(self) -> i32 {
301        unsafe {
302            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303            ::unity::il2cpp_call!((::unity::module_base()+0x1de3930usize)as*mut u8,i32;
304(MapImage)__receiver)
305        }
306    }
307    #[doc = "`set_H(i32)` overload"]
308    fn set_h(self, value: impl ::core::convert::Into<i32>) -> () {
309        unsafe {
310            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311            ::unity::il2cpp_call!((::unity::module_base()+0x1de3940usize)as*mut u8,();
312(MapImage)__receiver,(i32)::core::convert::Into::into(value))
313        }
314    }
315    #[doc = "`get_PlayAreaX()` overload"]
316    fn get_play_area_x(self) -> i32 {
317        unsafe {
318            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319            ::unity::il2cpp_call!((::unity::module_base()+0x1de3950usize)as*mut u8,i32;
320(MapImage)__receiver)
321        }
322    }
323    #[doc = "`set_PlayAreaX(i32)` overload"]
324    fn set_play_area_x(self, value: impl ::core::convert::Into<i32>) -> () {
325        unsafe {
326            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327            ::unity::il2cpp_call!((::unity::module_base()+0x1de3960usize)as*mut u8,();
328(MapImage)__receiver,(i32)::core::convert::Into::into(value))
329        }
330    }
331    #[doc = "`get_PlayAreaZ()` overload"]
332    fn get_play_area_z(self) -> i32 {
333        unsafe {
334            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
335            ::unity::il2cpp_call!((::unity::module_base()+0x1de3970usize)as*mut u8,i32;
336(MapImage)__receiver)
337        }
338    }
339    #[doc = "`set_PlayAreaZ(i32)` overload"]
340    fn set_play_area_z(self, value: impl ::core::convert::Into<i32>) -> () {
341        unsafe {
342            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343            ::unity::il2cpp_call!((::unity::module_base()+0x1de3980usize)as*mut u8,();
344(MapImage)__receiver,(i32)::core::convert::Into::into(value))
345        }
346    }
347    #[doc = "`get_PlayAreaW()` overload"]
348    fn get_play_area_w(self) -> i32 {
349        unsafe {
350            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
351            ::unity::il2cpp_call!((::unity::module_base()+0x1de3990usize)as*mut u8,i32;
352(MapImage)__receiver)
353        }
354    }
355    #[doc = "`set_PlayAreaW(i32)` overload"]
356    fn set_play_area_w(self, value: impl ::core::convert::Into<i32>) -> () {
357        unsafe {
358            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
359            ::unity::il2cpp_call!((::unity::module_base()+0x1de39a0usize)as*mut u8,();
360(MapImage)__receiver,(i32)::core::convert::Into::into(value))
361        }
362    }
363    #[doc = "`get_PlayAreaH()` overload"]
364    fn get_play_area_h(self) -> i32 {
365        unsafe {
366            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
367            ::unity::il2cpp_call!((::unity::module_base()+0x1de39b0usize)as*mut u8,i32;
368(MapImage)__receiver)
369        }
370    }
371    #[doc = "`set_PlayAreaH(i32)` overload"]
372    fn set_play_area_h(self, value: impl ::core::convert::Into<i32>) -> () {
373        unsafe {
374            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
375            ::unity::il2cpp_call!((::unity::module_base()+0x1de39c0usize)as*mut u8,();
376(MapImage)__receiver,(i32)::core::convert::Into::into(value))
377        }
378    }
379    #[doc = "`get_X1()` overload"]
380    fn get_x1(self) -> i32 {
381        unsafe {
382            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
383            ::unity::il2cpp_call!((::unity::module_base()+0x1de39d0usize)as*mut u8,i32;
384(MapImage)__receiver)
385        }
386    }
387    #[doc = "`set_X1(i32)` overload"]
388    fn set_x1(self, value: impl ::core::convert::Into<i32>) -> () {
389        unsafe {
390            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391            ::unity::il2cpp_call!((::unity::module_base()+0x1de39e0usize)as*mut u8,();
392(MapImage)__receiver,(i32)::core::convert::Into::into(value))
393        }
394    }
395    #[doc = "`get_Z1()` overload"]
396    fn get_z1(self) -> i32 {
397        unsafe {
398            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
399            ::unity::il2cpp_call!((::unity::module_base()+0x1de39f0usize)as*mut u8,i32;
400(MapImage)__receiver)
401        }
402    }
403    #[doc = "`set_Z1(i32)` overload"]
404    fn set_z1(self, value: impl ::core::convert::Into<i32>) -> () {
405        unsafe {
406            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
407            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a00usize)as*mut u8,();
408(MapImage)__receiver,(i32)::core::convert::Into::into(value))
409        }
410    }
411    #[doc = "`get_X2()` overload"]
412    fn get_x2(self) -> i32 {
413        unsafe {
414            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
415            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a10usize)as*mut u8,i32;
416(MapImage)__receiver)
417        }
418    }
419    #[doc = "`set_X2(i32)` overload"]
420    fn set_x2(self, value: impl ::core::convert::Into<i32>) -> () {
421        unsafe {
422            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
423            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a20usize)as*mut u8,();
424(MapImage)__receiver,(i32)::core::convert::Into::into(value))
425        }
426    }
427    #[doc = "`get_Z2()` overload"]
428    fn get_z2(self) -> i32 {
429        unsafe {
430            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a30usize)as*mut u8,i32;
432(MapImage)__receiver)
433        }
434    }
435    #[doc = "`set_Z2(i32)` overload"]
436    fn set_z2(self, value: impl ::core::convert::Into<i32>) -> () {
437        unsafe {
438            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a40usize)as*mut u8,();
440(MapImage)__receiver,(i32)::core::convert::Into::into(value))
441        }
442    }
443    #[doc = "`get_PlayAreaX1()` overload"]
444    fn get_play_area_x1(self) -> i32 {
445        unsafe {
446            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
447            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a50usize)as*mut u8,i32;
448(MapImage)__receiver)
449        }
450    }
451    #[doc = "`set_PlayAreaX1(i32)` overload"]
452    fn set_play_area_x1(self, value: impl ::core::convert::Into<i32>) -> () {
453        unsafe {
454            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
455            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a60usize)as*mut u8,();
456(MapImage)__receiver,(i32)::core::convert::Into::into(value))
457        }
458    }
459    #[doc = "`get_PlayAreaZ1()` overload"]
460    fn get_play_area_z1(self) -> i32 {
461        unsafe {
462            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
463            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a70usize)as*mut u8,i32;
464(MapImage)__receiver)
465        }
466    }
467    #[doc = "`set_PlayAreaZ1(i32)` overload"]
468    fn set_play_area_z1(self, value: impl ::core::convert::Into<i32>) -> () {
469        unsafe {
470            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
471            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a80usize)as*mut u8,();
472(MapImage)__receiver,(i32)::core::convert::Into::into(value))
473        }
474    }
475    #[doc = "`get_PlayAreaX2()` overload"]
476    fn get_play_area_x2(self) -> i32 {
477        unsafe {
478            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479            ::unity::il2cpp_call!((::unity::module_base()+0x1de3a90usize)as*mut u8,i32;
480(MapImage)__receiver)
481        }
482    }
483    #[doc = "`set_PlayAreaX2(i32)` overload"]
484    fn set_play_area_x2(self, value: impl ::core::convert::Into<i32>) -> () {
485        unsafe {
486            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
487            ::unity::il2cpp_call!((::unity::module_base()+0x1de3aa0usize)as*mut u8,();
488(MapImage)__receiver,(i32)::core::convert::Into::into(value))
489        }
490    }
491    #[doc = "`get_PlayAreaZ2()` overload"]
492    fn get_play_area_z2(self) -> i32 {
493        unsafe {
494            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
495            ::unity::il2cpp_call!((::unity::module_base()+0x1de3ab0usize)as*mut u8,i32;
496(MapImage)__receiver)
497        }
498    }
499    #[doc = "`set_PlayAreaZ2(i32)` overload"]
500    fn set_play_area_z2(self, value: impl ::core::convert::Into<i32>) -> () {
501        unsafe {
502            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
503            ::unity::il2cpp_call!((::unity::module_base()+0x1de3ac0usize)as*mut u8,();
504(MapImage)__receiver,(i32)::core::convert::Into::into(value))
505        }
506    }
507    #[doc = "`get_Unit()` overload"]
508    fn get_unit(self) -> crate::app::mapimageunit::MapImageUnit {
509        unsafe {
510            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
511            ::unity::il2cpp_call!((::unity::module_base()+0x1de3ad0usize)as*mut u8,crate::app::mapimageunit::MapImageUnit;
512(MapImage)__receiver)
513        }
514    }
515    #[doc = "`get_Terrain()` overload"]
516    fn get_terrain(self) -> crate::app::mapimageterrain::MapImageTerrain {
517        unsafe {
518            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
519            ::unity::il2cpp_call!((::unity::module_base()+0x1de3ae0usize)as*mut u8,crate::app::mapimageterrain::MapImageTerrain;
520(MapImage)__receiver)
521        }
522    }
523    #[doc = "`get_Cost()` overload"]
524    fn get_cost(self) -> crate::app::mapimagecost::MapImageCost {
525        unsafe {
526            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
527            ::unity::il2cpp_call!((::unity::module_base()+0x1de3af0usize)as*mut u8,crate::app::mapimagecost::MapImageCost;
528(MapImage)__receiver)
529        }
530    }
531    #[doc = "`get_Danger()` overload"]
532    fn get_danger(self) -> crate::app::mapimagedanger::MapImageDanger {
533        unsafe {
534            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
535            ::unity::il2cpp_call!((::unity::module_base()+0x1de3b00usize)as*mut u8,crate::app::mapimagedanger::MapImageDanger;
536(MapImage)__receiver)
537        }
538    }
539    #[doc = "`get_Talk()` overload"]
540    fn get_talk(self) -> crate::app::mapimagetalk::MapImageTalk {
541        unsafe {
542            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
543            ::unity::il2cpp_call!((::unity::module_base()+0x1de3b10usize)as*mut u8,crate::app::mapimagetalk::MapImageTalk;
544(MapImage)__receiver)
545        }
546    }
547    #[doc = "`get_Range()` overload"]
548    fn get_range(self) -> crate::app::mapimagerange::MapImageRange {
549        unsafe {
550            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
551            ::unity::il2cpp_call!((::unity::module_base()+0x1de3b20usize)as*mut u8,crate::app::mapimagerange::MapImageRange;
552(MapImage)__receiver)
553        }
554    }
555    #[doc = "`get_History()` overload"]
556    fn get_history(self) -> crate::app::mapimagehistory::MapImageHistory {
557        unsafe {
558            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
559            ::unity::il2cpp_call!((::unity::module_base()+0x1de3b30usize)as*mut u8,crate::app::mapimagehistory::MapImageHistory;
560(MapImage)__receiver)
561        }
562    }
563    #[doc = "`get_Name()` overload"]
564    fn get_name(self) -> ::unity::Il2CppString {
565        unsafe {
566            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
567            ::unity::il2cpp_call!((::unity::module_base()+0x1de3b40usize)as*mut u8, ::unity::Il2CppString;
568(MapImage)__receiver)
569        }
570    }
571    #[doc = "`GetTargetUnit(i32, i32)` overload"]
572    fn get_target_unit(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> crate::app::unit::Unit {
573        unsafe {
574            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
575            ::unity::il2cpp_call!((::unity::module_base()+0x1de3b50usize)as*mut u8,crate::app::unit::Unit;
576(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
577        }
578    }
579    #[doc = "`GetTargetUnit(i32, i32, bool)` overload"]
580    fn get_target_unit_2(
581        self,
582        x: impl ::core::convert::Into<i32>,
583        z: impl ::core::convert::Into<i32>,
584        allow_asphyxiation: impl ::core::convert::Into<bool>,
585    ) -> crate::app::unit::Unit {
586        unsafe {
587            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
588            ::unity::il2cpp_call!((::unity::module_base()+0x1de3c00usize)as*mut u8,crate::app::unit::Unit;
589(MapImage)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(bool)::core::convert::Into::into(allow_asphyxiation))
590        }
591    }
592    #[doc = "`ClampX(i32)` overload"]
593    fn clamp_x(self, x: impl ::core::convert::Into<i32>) -> i32 {
594        unsafe {
595            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
596            ::unity::il2cpp_call!((::unity::module_base()+0x1de3ce0usize)as*mut u8,i32;
597(MapImage)__receiver,(i32)::core::convert::Into::into(x))
598        }
599    }
600    #[doc = "`ClampZ(i32)` overload"]
601    fn clamp_z(self, z: impl ::core::convert::Into<i32>) -> i32 {
602        unsafe {
603            let __receiver = <MapImage as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
604            ::unity::il2cpp_call!((::unity::module_base()+0x1de3d00usize)as*mut u8,i32;
605(MapImage)__receiver,(i32)::core::convert::Into::into(z))
606        }
607    }
608}
609
610#[cfg(feature = "app-mapimage")]
611impl<__T: IMapImage> IMapImageMethods for __T {}
612
613#[cfg(feature = "app-mapimage")]
614impl MapImage {
615    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
617    }
618
619    pub fn get_put_terrain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
621    }
622
623    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
625    }
626
627    pub fn set_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
629    }
630
631    pub fn is_out_of_map_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
633    }
634
635    pub fn is_out_of_play_area_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
637    }
638
639    pub fn can_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
641    }
642
643    pub fn can_target_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
645    }
646
647    pub fn can_target_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
649    }
650
651    pub fn get_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
653    }
654
655    pub fn on_serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
657    }
658
659    pub fn on_deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
661    }
662
663    pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
665    }
666
667    pub fn get_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
669    }
670
671    pub fn get_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
673    }
674
675    pub fn set_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
677    }
678
679    pub fn get_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
681    }
682
683    pub fn set_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
685    }
686
687    pub fn get_play_area_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
689    }
690
691    pub fn set_play_area_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
692        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
693    }
694
695    pub fn get_play_area_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
696        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
697    }
698
699    pub fn set_play_area_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
700        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
701    }
702
703    pub fn get_play_area_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
704        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
705    }
706
707    pub fn set_play_area_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
708        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
709    }
710
711    pub fn get_play_area_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
712        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
713    }
714
715    pub fn set_play_area_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
716        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
717    }
718
719    pub fn get_x1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
720        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
721    }
722
723    pub fn set_x1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
724        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
725    }
726
727    pub fn get_z1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
728        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
729    }
730
731    pub fn set_z1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
732        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
733    }
734
735    pub fn get_x2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
736        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
737    }
738
739    pub fn set_x2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
740        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
741    }
742
743    pub fn get_z2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
744        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
745    }
746
747    pub fn set_z2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
748        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
749    }
750
751    pub fn get_play_area_x1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
752        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
753    }
754
755    pub fn set_play_area_x1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
756        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
757    }
758
759    pub fn get_play_area_z1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
760        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
761    }
762
763    pub fn set_play_area_z1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
764        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
765    }
766
767    pub fn get_play_area_x2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
768        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
769    }
770
771    pub fn set_play_area_x2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
772        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
773    }
774
775    pub fn get_play_area_z2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
776        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
777    }
778
779    pub fn set_play_area_z2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
780        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
781    }
782
783    pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
784        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
785    }
786
787    pub fn get_terrain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
788        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
789    }
790
791    pub fn get_cost_method_info() -> &'static ::unity::il2cpp::MethodInfo {
792        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
793    }
794
795    pub fn get_danger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
796        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
797    }
798
799    pub fn get_talk_method_info() -> &'static ::unity::il2cpp::MethodInfo {
800        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
801    }
802
803    pub fn get_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
804        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
805    }
806
807    pub fn get_history_method_info() -> &'static ::unity::il2cpp::MethodInfo {
808        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
809    }
810
811    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
812        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
813    }
814
815    pub fn get_target_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
816        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
817    }
818
819    pub fn get_target_unit_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
820        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
821    }
822
823    pub fn clamp_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
824        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
825    }
826
827    pub fn clamp_z_method_info() -> &'static ::unity::il2cpp::MethodInfo {
828        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
829    }
830}
831
832#[cfg(feature = "app-mapimage")]
833impl MapImage {
834    #[doc = "Direct (non-virtual) call to `MapImage`'s own `get_Version`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
835    pub unsafe fn get_version(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
836        let __mi = Self::get_version_method_info();
837        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
838        __inner(this.into(), ::core::option::Option::None)
839    }
840
841    #[doc = "Direct (non-virtual) call to `MapImage`'s own `OnSerialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
842    pub unsafe fn on_serialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2) -> () {
843        let __mi = Self::on_serialize_method_info();
844        let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, ::unity::OptionalMethod) -> () =
845            ::core::mem::transmute(__mi.method_ptr);
846        __inner(this.into(), stream, ::core::option::Option::None)
847    }
848
849    #[doc = "Direct (non-virtual) call to `MapImage`'s own `OnDeserialize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
850    pub unsafe fn on_deserialize(this: impl ::core::convert::Into<::unity::IlInstance>, stream: crate::app::stream_2::Stream_2, version: i32) -> () {
851        let __mi = Self::on_deserialize_method_info();
852        let __inner: extern "C" fn(::unity::IlInstance, crate::app::stream_2::Stream_2, i32, ::unity::OptionalMethod) -> () =
853            ::core::mem::transmute(__mi.method_ptr);
854        __inner(this.into(), stream, version, ::core::option::Option::None)
855    }
856}
857
858#[cfg(feature = "app-mapimage")]
859impl MapImage {
860    #[doc = "`.ctor()` — no args"]
861    pub fn new() -> Self {
862        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
863            panic!(
864                "{}
865::{}
866 failed to instantiate",
867                ::core::stringify!(MapImage),
868                ::core::stringify!(new),
869            )
870        });
871        <Self as IMapImageMethods>::ctor(this);
872        this
873    }
874}
875
876#[cfg(feature = "app-mapimage")]
877#[doc(hidden)]
878pub mod prelude {
879    pub use super::{IMapImage, IMapImageMethods, MapImage, MapImage_BackupTerrain};
880    #[cfg(feature = "app-singletonclass_1")]
881    pub use crate::app::singletonclass_1::ISingletonClass_1Methods;
882    #[cfg(feature = "system-object")]
883    pub use crate::system::object::IObjectMethods;
884    #[cfg(feature = "system-valuetype")]
885    pub use crate::system::valuetype::IValueTypeMethods;
886    pub use crate::{
887        app::singletonclass_1::ISingletonClass_1,
888        system::{object::IObject, valuetype::IValueType},
889    };
890}