Skip to main content

engage/generated/app/
mapimageterrain.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimageterrain-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimageterrain/MapImageTerrain.md"))]
11    #[::unity::class(namespace = "App", name = "MapImageTerrain")]
12    #[parent(crate::system::object::Object)]
13    pub struct MapImageTerrain {
14        #[offset(16)]
15        #[rename(name = "m_Original")]
16        pub m_original: crate::app::mapimagecorebyte::MapImageCoreByte,
17        #[offset(24)]
18        #[rename(name = "m_Base")]
19        pub m_base: crate::app::mapimagecorebyte::MapImageCoreByte,
20        #[offset(32)]
21        #[rename(name = "m_Result")]
22        pub m_result: crate::app::mapimagecorebyte::MapImageCoreByte,
23        #[offset(40)]
24        #[rename(name = "m_MinimapInfos")]
25        pub m_minimap_infos: crate::system::collections::generic::list_1::List_1<crate::app::mapimageterrain::MapImageTerrain_MinimapInfo>,
26        #[offset(48)]
27        #[rename(name = "m_MinimapBuffer")]
28        pub m_minimap_buffer: crate::system::collections::generic::list_1::List_1<crate::app::mapimageterrain::MapImageTerrain_MinimapInfo>,
29    }
30
31    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimageterrain/MapImageTerrain_MinimapInfo.md"))]
32    #[::unity::class(namespace = "App", name = "MapImageTerrain.MinimapInfo")]
33    #[parent(crate::system::object::Object)]
34    pub struct MapImageTerrain_MinimapInfo {
35        #[offset(16)]
36        #[rename(name = "X")]
37        pub x: i32,
38        #[offset(20)]
39        #[rename(name = "Z")]
40        pub z: i32,
41        #[offset(24)]
42        #[rename(name = "Terrain")]
43        pub terrain: crate::app::terraindata_2::TerrainData_2,
44    }
45}
46
47#[cfg(feature = "app-mapimageterrain-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-mapimageterrain")]
51pub trait IMapImageTerrainMethods: IMapImageTerrain {
52    #[doc = "`.ctor()` overload"]
53    fn ctor(self) -> () {
54        unsafe {
55            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x20640a0usize)as*mut u8,();
57(MapImageTerrain)__receiver)
58        }
59    }
60    #[doc = "`Clear()` overload"]
61    fn clear(self) -> () {
62        unsafe {
63            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2064320usize)as*mut u8,();
65(MapImageTerrain)__receiver)
66        }
67    }
68    #[doc = "`get_Original()` overload"]
69    fn get_original(self) -> crate::app::mapimagecorebyte::MapImageCoreByte {
70        unsafe {
71            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x20643b0usize)as*mut u8,crate::app::mapimagecorebyte::MapImageCoreByte;
73(MapImageTerrain)__receiver)
74        }
75    }
76    #[doc = "`get_Base()` overload"]
77    fn get_base(self) -> crate::app::mapimagecorebyte::MapImageCoreByte {
78        unsafe {
79            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x20643c0usize)as*mut u8,crate::app::mapimagecorebyte::MapImageCoreByte;
81(MapImageTerrain)__receiver)
82        }
83    }
84    #[doc = "`get_MinimapInfos()` overload"]
85    fn get_minimap_infos(self) -> crate::system::collections::generic::list_1::List_1<crate::app::mapimageterrain::MapImageTerrain_MinimapInfo> {
86        unsafe {
87            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x20643d0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::mapimageterrain::MapImageTerrain_MinimapInfo> ;
89(MapImageTerrain)__receiver)
90        }
91    }
92    #[doc = "`Update()` overload"]
93    fn update(self) -> () {
94        unsafe {
95            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x20643e0usize)as*mut u8,();
97(MapImageTerrain)__receiver)
98        }
99    }
100    #[doc = "`UpdateMinimap()` overload"]
101    fn update_minimap(self) -> () {
102        unsafe {
103            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x2064720usize)as*mut u8,();
105(MapImageTerrain)__receiver)
106        }
107    }
108    #[doc = "`UpdateForEvent()` overload"]
109    fn update_for_event(self) -> () {
110        unsafe {
111            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x2064a90usize)as*mut u8,();
113(MapImageTerrain)__receiver)
114        }
115    }
116    #[doc = "`Get(i32, i32)` overload"]
117    fn get(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> u8 {
118        unsafe {
119            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x2064e50usize)as*mut u8,u8;
121(MapImageTerrain)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
122        }
123    }
124    #[doc = "`GetData(i32, i32)` overload"]
125    fn get_data(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> crate::app::terraindata_2::TerrainData_2 {
126        unsafe {
127            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x2064ed0usize)as*mut u8,crate::app::terraindata_2::TerrainData_2;
129(MapImageTerrain)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
130        }
131    }
132    #[doc = "`GetHashCode()` overload"]
133    fn get_hash_code(self) -> i32 {
134        unsafe {
135            let __receiver = <MapImageTerrain as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            {
137                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
139                    panic!(
140                        "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145                        2usize,
146                        __vt.len(),
147                        <MapImageTerrain as ::unity::ClassIdentity>::NAME,
148                        "GetHashCode",
149                    )
150                });
151                let __inner: extern "C" fn(MapImageTerrain, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
152                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153                __inner(__receiver, __mi)
154            }
155        }
156    }
157}
158
159#[cfg(feature = "app-mapimageterrain")]
160impl<__T: IMapImageTerrain> IMapImageTerrainMethods for __T {}
161
162#[cfg(feature = "app-mapimageterrain")]
163impl MapImageTerrain {
164    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
166    }
167
168    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
170    }
171
172    pub fn get_original_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
174    }
175
176    pub fn get_base_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
178    }
179
180    pub fn get_minimap_infos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
182    }
183
184    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
186    }
187
188    pub fn update_minimap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
190    }
191
192    pub fn update_for_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
194    }
195
196    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
198    }
199
200    pub fn get_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
202    }
203
204    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
206    }
207}
208
209#[cfg(feature = "app-mapimageterrain")]
210impl MapImageTerrain {
211    #[doc = "Direct (non-virtual) call to `MapImageTerrain`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
212    pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
213        let __mi = Self::get_hash_code_method_info();
214        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
215        __inner(this.into(), ::core::option::Option::None)
216    }
217}
218
219#[cfg(feature = "app-mapimageterrain")]
220impl MapImageTerrain {
221    #[doc = "`.ctor()` — no args"]
222    pub fn new() -> Self {
223        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
224            panic!(
225                "{}
226::{}
227 failed to instantiate",
228                ::core::stringify!(MapImageTerrain),
229                ::core::stringify!(new),
230            )
231        });
232        <Self as IMapImageTerrainMethods>::ctor(this);
233        this
234    }
235}
236
237#[cfg(feature = "app-mapimageterrain")]
238pub trait IMapImageTerrain_MinimapInfoMethods: IMapImageTerrain_MinimapInfo {
239    #[doc = "`.ctor()` overload"]
240    fn ctor(self) -> () {
241        unsafe {
242            let __receiver =
243                <MapImageTerrain_MinimapInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244            ::unity::il2cpp_call!((::unity::module_base()+0x217cd50usize)as*mut u8,();
245(MapImageTerrain_MinimapInfo)__receiver)
246        }
247    }
248}
249
250#[cfg(feature = "app-mapimageterrain")]
251impl<__T: IMapImageTerrain_MinimapInfo> IMapImageTerrain_MinimapInfoMethods for __T {}
252
253#[cfg(feature = "app-mapimageterrain")]
254impl MapImageTerrain_MinimapInfo {
255    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
257    }
258}
259
260#[cfg(feature = "app-mapimageterrain")]
261impl MapImageTerrain_MinimapInfo {
262    #[doc = "`.ctor()` — no args"]
263    pub fn new() -> Self {
264        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
265            panic!(
266                "{}
267::{}
268 failed to instantiate",
269                ::core::stringify!(MapImageTerrain_MinimapInfo),
270                ::core::stringify!(new),
271            )
272        });
273        <Self as IMapImageTerrain_MinimapInfoMethods>::ctor(this);
274        this
275    }
276}
277
278#[cfg(feature = "app-mapimageterrain")]
279#[doc(hidden)]
280pub mod prelude {
281    pub use super::{
282        IMapImageTerrain, IMapImageTerrainMethods, IMapImageTerrain_MinimapInfo, IMapImageTerrain_MinimapInfoMethods, MapImageTerrain,
283        MapImageTerrain_MinimapInfo,
284    };
285    pub use crate::system::object::IObject;
286    #[cfg(feature = "system-object")]
287    pub use crate::system::object::IObjectMethods;
288}