Skip to main content

engage/generated/app/
mapimagedanger.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mapimagedanger-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::mapimagecorebit::{IMapImageCoreBit, MapImageCoreBit},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapimagedanger/MapImageDanger.md"))]
14    #[::unity::class(namespace = "App", name = "MapImageDanger")]
15    #[parent(crate::app::mapimagecorebit::MapImageCoreBit)]
16    pub struct MapImageDanger {
17        #[static_field]
18        #[rename(name = "Version")]
19        pub version: i32,
20        #[offset(24)]
21        #[rename(name = "m_Rod")]
22        pub m_rod: crate::app::mapimagecorebit::MapImageCoreBit,
23        #[offset(32)]
24        #[rename(name = "m_AttackAll")]
25        pub m_attack_all: crate::app::mapimagecorebit::MapImageCoreBit,
26        #[offset(40)]
27        #[rename(name = "m_RodAll")]
28        pub m_rod_all: crate::app::mapimagecorebit::MapImageCoreBit,
29        #[offset(48)]
30        #[rename(name = "m_GunnerAll")]
31        pub m_gunner_all: crate::app::mapimagecorebit::MapImageCoreBit,
32        #[offset(56)]
33        #[rename(name = "m_IsUpdate")]
34        pub m_is_update: bool,
35        #[offset(60)]
36        #[rename(name = "m_UpdateIndex")]
37        pub m_update_index: i32,
38        #[offset(64)]
39        #[rename(name = "m_UpdateTargets")]
40        pub m_update_targets: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
41        #[offset(72)]
42        #[rename(name = "m_MapDnagerDeploy")]
43        pub m_map_dnager_deploy: crate::app::mapdnagerdeploy::MapDnagerDeploy,
44    }
45}
46
47#[cfg(feature = "app-mapimagedanger-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-mapimagedanger")]
51impl MapImageDanger {
52    #[doc = "`IsUpdateTarget(crate::app::unit::Unit)` overload"]
53    pub fn is_update_target(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> bool {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x20605a0usize)as*mut u8,bool;
56(crate::app::unit::Unit)::core::convert::Into::into(unit))
57        }
58    }
59}
60
61#[cfg(feature = "app-mapimagedanger")]
62pub trait IMapImageDangerMethods: IMapImageDanger {
63    #[doc = "`ClearImage()` overload"]
64    fn clear_image(self) -> () {
65        unsafe {
66            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2060070usize)as*mut u8,();
68(MapImageDanger)__receiver)
69        }
70    }
71    #[doc = "`ClearUpdate()` overload"]
72    fn clear_update(self) -> () {
73        unsafe {
74            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x20600d0usize)as*mut u8,();
76(MapImageDanger)__receiver)
77        }
78    }
79    #[doc = "`Clear()` overload"]
80    fn clear(self) -> () {
81        unsafe {
82            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            {
84                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
86                    panic!(
87                        "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92                        4usize,
93                        __vt.len(),
94                        <MapImageDanger as ::unity::ClassIdentity>::NAME,
95                        "Clear",
96                    )
97                });
98                let __inner: extern "C" fn(MapImageDanger, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
99                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100                __inner(__receiver, __mi)
101            }
102        }
103    }
104    #[doc = "`GetRod(i32, i32)` overload"]
105    fn get_rod(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
106        unsafe {
107            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x20601e0usize)as*mut u8,bool;
109(MapImageDanger)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
110        }
111    }
112    #[doc = "`GetAttackAll(i32, i32)` overload"]
113    fn get_attack_all(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
114        unsafe {
115            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x2060220usize)as*mut u8,bool;
117(MapImageDanger)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
118        }
119    }
120    #[doc = "`GetRodAll(i32, i32)` overload"]
121    fn get_rod_all(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
122        unsafe {
123            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x2060260usize)as*mut u8,bool;
125(MapImageDanger)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
126        }
127    }
128    #[doc = "`GetGunnerAll(i32, i32)` overload"]
129    fn get_gunner_all(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> bool {
130        unsafe {
131            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x20602a0usize)as*mut u8,bool;
133(MapImageDanger)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
134        }
135    }
136    #[doc = "`ExistsRod()` overload"]
137    fn exists_rod(self) -> bool {
138        unsafe {
139            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x20602e0usize)as*mut u8,bool;
141(MapImageDanger)__receiver)
142        }
143    }
144    #[doc = "`ExistsAttackAll()` overload"]
145    fn exists_attack_all(self) -> bool {
146        unsafe {
147            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x20602f0usize)as*mut u8,bool;
149(MapImageDanger)__receiver)
150        }
151    }
152    #[doc = "`ExistsRodAll()` overload"]
153    fn exists_rod_all(self) -> bool {
154        unsafe {
155            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x2060300usize)as*mut u8,bool;
157(MapImageDanger)__receiver)
158        }
159    }
160    #[doc = "`ExistsGunnerAll()` overload"]
161    fn exists_gunner_all(self) -> bool {
162        unsafe {
163            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!((::unity::module_base()+0x2060310usize)as*mut u8,bool;
165(MapImageDanger)__receiver)
166        }
167    }
168    #[doc = "`Update()` overload"]
169    fn update(self) -> () {
170        unsafe {
171            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            ::unity::il2cpp_call!((::unity::module_base()+0x2060320usize)as*mut u8,();
173(MapImageDanger)__receiver)
174        }
175    }
176    #[doc = "`Coroutine()` overload"]
177    fn coroutine(self) -> crate::system::collections::ienumerator::IEnumerator {
178        unsafe {
179            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            ::unity::il2cpp_call!((::unity::module_base()+0x2060700usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
181(MapImageDanger)__receiver)
182        }
183    }
184    #[doc = "`Serialize(crate::app::stream_2::Stream_2)` overload"]
185    fn serialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
186        unsafe {
187            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x2060780usize)as*mut u8,();
189(MapImageDanger)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
190        }
191    }
192    #[doc = "`Deserialize(crate::app::stream_2::Stream_2)` overload"]
193    fn deserialize(self, stream: impl ::core::convert::Into<crate::app::stream_2::Stream_2>) -> () {
194        unsafe {
195            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            ::unity::il2cpp_call!((::unity::module_base()+0x2060790usize)as*mut u8,();
197(MapImageDanger)__receiver,(crate::app::stream_2::Stream_2)::core::convert::Into::into(stream))
198        }
199    }
200    #[doc = "`.ctor()` overload"]
201    fn ctor(self) -> () {
202        unsafe {
203            let __receiver = <MapImageDanger as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            ::unity::il2cpp_call!((::unity::module_base()+0x20608b0usize)as*mut u8,();
205(MapImageDanger)__receiver)
206        }
207    }
208}
209
210#[cfg(feature = "app-mapimagedanger")]
211impl<__T: IMapImageDanger> IMapImageDangerMethods for __T {}
212
213#[cfg(feature = "app-mapimagedanger")]
214impl MapImageDanger {
215    pub fn clear_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
217    }
218
219    pub fn clear_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
221    }
222
223    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
225    }
226
227    pub fn get_rod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
229    }
230
231    pub fn get_attack_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
233    }
234
235    pub fn get_rod_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
237    }
238
239    pub fn get_gunner_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
241    }
242
243    pub fn exists_rod_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
245    }
246
247    pub fn exists_attack_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
249    }
250
251    pub fn exists_rod_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
253    }
254
255    pub fn exists_gunner_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
257    }
258
259    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
261    }
262
263    pub fn is_update_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
265    }
266
267    pub fn coroutine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
269    }
270
271    pub fn serialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
273    }
274
275    pub fn deserialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
277    }
278
279    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
281    }
282}
283
284#[cfg(feature = "app-mapimagedanger")]
285impl MapImageDanger {
286    #[doc = "Direct (non-virtual) call to `MapImageDanger`'s own `Clear`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
287    pub unsafe fn clear(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
288        let __mi = Self::clear_method_info();
289        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
290        __inner(this.into(), ::core::option::Option::None)
291    }
292}
293
294#[cfg(feature = "app-mapimagedanger")]
295impl MapImageDanger {
296    #[doc = "`.ctor()` — no args"]
297    pub fn new() -> Self {
298        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
299            panic!(
300                "{}
301::{}
302 failed to instantiate",
303                ::core::stringify!(MapImageDanger),
304                ::core::stringify!(new),
305            )
306        });
307        <Self as IMapImageDangerMethods>::ctor(this);
308        this
309    }
310}
311
312#[cfg(feature = "app-mapimagedanger")]
313#[doc(hidden)]
314pub mod prelude {
315    pub use super::{IMapImageDanger, IMapImageDangerMethods, MapImageDanger};
316    #[cfg(feature = "app-mapimagecorebit")]
317    pub use crate::app::mapimagecorebit::IMapImageCoreBitMethods;
318    #[cfg(feature = "system-object")]
319    pub use crate::system::object::IObjectMethods;
320    pub use crate::{app::mapimagecorebit::IMapImageCoreBit, system::object::IObject};
321}