Skip to main content

engage/generated/root/
mappaneltarget.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-mappaneltarget-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        root::mappanelbase_1::{IMapPanelBase_1, MapPanelBase_1},
11        system::{
12            object::{IObject, Object},
13            r#enum::{Enum, IEnum},
14            valuetype::{IValueType, ValueType},
15        },
16        unity_engine::{
17            behaviour::{Behaviour, IBehaviour},
18            component::{Component, IComponent},
19            monobehaviour::{IMonoBehaviour, MonoBehaviour},
20            object_2::{IObject_2, Object_2},
21        },
22    };
23
24    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappaneltarget/MapPanelTarget_DangerType.md"))]
25    #[repr(C)]
26    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
27    pub struct MapPanelTarget_DangerType {
28        pub value: i32,
29    }
30    impl ::unity::ClassIdentity for MapPanelTarget_DangerType {
31        const NAME: &'static str = "MapPanelTarget.DangerType";
32        const NAMESPACE: &'static str = "";
33
34        fn class() -> ::unity::Class {
35            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
36            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
37        }
38    }
39    impl ::unity::IlType for MapPanelTarget_DangerType {
40        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
41            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
42        }
43    }
44    impl MapPanelTarget_DangerType {
45        pub fn none() -> Self {
46            Self { value: 1 }
47        }
48
49        pub fn disadvantage() -> Self {
50            Self { value: 2 }
51        }
52
53        pub fn criticaled() -> Self {
54            Self { value: 4 }
55        }
56    }
57
58    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappaneltarget/MapPanelTarget_MeshIndex.md"))]
59    #[repr(C)]
60    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
61    pub struct MapPanelTarget_MeshIndex {
62        pub value: i32,
63    }
64    impl ::unity::ClassIdentity for MapPanelTarget_MeshIndex {
65        const NAME: &'static str = "MapPanelTarget.MeshIndex";
66        const NAMESPACE: &'static str = "";
67
68        fn class() -> ::unity::Class {
69            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
70            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
71        }
72    }
73    impl ::unity::IlType for MapPanelTarget_MeshIndex {
74        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
75            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
76        }
77    }
78    impl MapPanelTarget_MeshIndex {
79        pub fn general() -> Self {
80            Self { value: 0 }
81        }
82
83        pub fn engage() -> Self {
84            Self { value: 1 }
85        }
86
87        pub fn gunner() -> Self {
88            Self { value: 2 }
89        }
90
91        pub fn full_bullet() -> Self {
92            Self { value: 3 }
93        }
94
95        pub fn num() -> Self {
96            Self { value: 4 }
97        }
98    }
99
100    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappaneltarget/MapPanelTarget.md"))]
101    #[::unity::class(namespace = "", name = "MapPanelTarget")]
102    #[parent(crate::root::mappanelbase_1::MapPanelBase_1<crate::root::mappaneltarget::MapPanelTarget>)]
103    pub struct MapPanelTarget {
104        #[offset(64)]
105        #[rename(name = "m_MovingAlpha")]
106        pub m_moving_alpha: crate::app::gamecurve::GameCurve,
107        #[offset(72)]
108        #[rename(name = "m_StoppedAlpha")]
109        pub m_stopped_alpha: crate::app::gamecurve::GameCurve,
110        #[static_field]
111        #[rename(name = "m_TargetTexW")]
112        pub m_target_tex_w: f32,
113        #[offset(80)]
114        #[rename(name = "m_DangerUnits")]
115        pub m_danger_units:
116            crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::root::mappaneltarget::MapPanelTarget_DangerType>,
117        #[offset(88)]
118        #[rename(name = "m_GeneralMaterial")]
119        pub m_general_material: crate::unity_engine::material::Material,
120        #[offset(96)]
121        #[rename(name = "m_EngageMaterial")]
122        pub m_engage_material: crate::unity_engine::material::Material,
123        #[offset(104)]
124        #[rename(name = "m_GunnerMaterial")]
125        pub m_gunner_material: crate::unity_engine::material::Material,
126        #[offset(112)]
127        #[rename(name = "m_FullBulletMaterial")]
128        pub m_full_bullet_material: crate::unity_engine::material::Material,
129        #[offset(120)]
130        #[rename(name = "m_DefaultColor")]
131        pub m_default_color: crate::unity_engine::color::Color,
132        #[offset(136)]
133        #[rename(name = "m_DisadvantageColor")]
134        pub m_disadvantage_color: crate::unity_engine::color::Color,
135        #[offset(152)]
136        #[rename(name = "m_CriticaledColor")]
137        pub m_criticaled_color: crate::unity_engine::color::Color,
138        #[offset(168)]
139        #[rename(name = "m_EngageColor")]
140        pub m_engage_color: crate::unity_engine::color::Color,
141        #[offset(184)]
142        #[rename(name = "m_GunnerColor")]
143        pub m_gunner_color: crate::unity_engine::color::Color,
144        #[offset(200)]
145        #[rename(name = "m_FriendlyImpactColor")]
146        pub m_friendly_impact_color: crate::unity_engine::color::Color,
147        #[offset(216)]
148        #[rename(name = "m_HostileImpactColor")]
149        pub m_hostile_impact_color: crate::unity_engine::color::Color,
150        #[offset(232)]
151        #[rename(name = "m_ScrollForGeneral")]
152        pub m_scroll_for_general: crate::unity_engine::animationcurve::AnimationCurve,
153        #[offset(240)]
154        #[rename(name = "m_ScrollForGunner")]
155        pub m_scroll_for_gunner: crate::unity_engine::animationcurve::AnimationCurve,
156        #[offset(248)]
157        #[rename(name = "m_AlphaCurve")]
158        pub m_alpha_curve: crate::unity_engine::animationcurve::AnimationCurve,
159        #[offset(256)]
160        #[rename(name = "m_PositionZOffsetForGeneral")]
161        pub m_position_z_offset_for_general: f32,
162        #[offset(260)]
163        #[rename(name = "m_PositionZOffsetForHorse")]
164        pub m_position_z_offset_for_horse: f32,
165        #[offset(264)]
166        #[rename(name = "m_PositionZOffsetForFly")]
167        pub m_position_z_offset_for_fly: f32,
168        #[offset(268)]
169        #[rename(name = "m_PositionZOffsetForBmapSize2")]
170        pub m_position_z_offset_for_bmap_size2: f32,
171        #[offset(272)]
172        #[rename(name = "m_PositionZOffsetForBmapSize3")]
173        pub m_position_z_offset_for_bmap_size3: f32,
174        #[offset(276)]
175        #[rename(name = "m_PositionZOffsetForBmapSize5")]
176        pub m_position_z_offset_for_bmap_size5: f32,
177        #[offset(280)]
178        #[rename(name = "m_ArchHeightOffset")]
179        pub m_arch_height_offset: f32,
180        #[offset(288)]
181        #[rename(name = "m_GeneralAttackerList")]
182        pub m_general_attacker_list: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
183        #[offset(296)]
184        #[rename(name = "m_EngageAttackerList")]
185        pub m_engage_attacker_list: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
186        #[offset(304)]
187        #[rename(name = "m_GunnerList")]
188        pub m_gunner_list: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
189        #[offset(312)]
190        #[rename(name = "m_FullBulletList")]
191        pub m_full_bullet_list: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
192        #[offset(320)]
193        #[rename(name = "m_Target")]
194        pub m_target: crate::app::unit::Unit,
195        #[offset(328)]
196        #[rename(name = "m_DestX")]
197        pub m_dest_x: i32,
198        #[offset(332)]
199        #[rename(name = "m_DestZ")]
200        pub m_dest_z: i32,
201        #[offset(336)]
202        #[rename(name = "m_PropertyID")]
203        pub m_property_id: i32,
204        #[offset(340)]
205        #[rename(name = "m_Time")]
206        pub m_time: f32,
207        #[offset(344)]
208        #[rename(name = "m_Current")]
209        pub m_current: crate::app::gamecurve::GameCurve,
210        #[offset(352)]
211        #[rename(name = "m_Arrow")]
212        pub m_arrow: crate::root::maparrow::MapArrow,
213        #[offset(360)]
214        #[rename(name = "m_DirtyFlag")]
215        pub m_dirty_flag: crate::root::mappaneltarget::MapPanelTarget_DirtyType,
216    }
217
218    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappaneltarget/MapPanelTarget_DirtyType.md"))]
219    #[repr(C)]
220    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
221    pub struct MapPanelTarget_DirtyType {
222        pub value: i32,
223    }
224    impl ::unity::ClassIdentity for MapPanelTarget_DirtyType {
225        const NAME: &'static str = "MapPanelTarget.DirtyType";
226        const NAMESPACE: &'static str = "";
227
228        fn class() -> ::unity::Class {
229            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
230            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
231        }
232    }
233    impl ::unity::IlType for MapPanelTarget_DirtyType {
234        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
235            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
236        }
237    }
238    impl MapPanelTarget_DirtyType {
239        pub fn attack() -> Self {
240            Self { value: 1 }
241        }
242
243        pub fn full_bullet() -> Self {
244            Self { value: 2 }
245        }
246    }
247}
248
249#[cfg(feature = "root-mappaneltarget-types")]
250pub use __types::*;
251
252#[cfg(feature = "root-mappaneltarget")]
253pub trait IMapPanelTargetMethods: IMapPanelTarget {
254    #[doc = "`get_SubMeshCount()` overload"]
255    fn get_sub_mesh_count(self) -> i32 {
256        unsafe {
257            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            {
259                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
260                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
261                    panic!(
262                        "unity: virtual slot {}
263 out of range (vtable len {}
264) on the runtime class behind {}
265 (method `{}
266`)",
267                        6usize,
268                        __vt.len(),
269                        <MapPanelTarget as ::unity::ClassIdentity>::NAME,
270                        "get_SubMeshCount",
271                    )
272                });
273                let __inner: extern "C" fn(MapPanelTarget, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
274                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
275                __inner(__receiver, __mi)
276            }
277        }
278    }
279    #[doc = "`Awake()` overload"]
280    fn awake(self) -> () {
281        unsafe {
282            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283            {
284                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
285                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
286                    panic!(
287                        "unity: virtual slot {}
288 out of range (vtable len {}
289) on the runtime class behind {}
290 (method `{}
291`)",
292                        4usize,
293                        __vt.len(),
294                        <MapPanelTarget as ::unity::ClassIdentity>::NAME,
295                        "Awake",
296                    )
297                });
298                let __inner: extern "C" fn(MapPanelTarget, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
299                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
300                __inner(__receiver, __mi)
301            }
302        }
303    }
304    #[doc = "`Start()` overload"]
305    fn start(self) -> () {
306        unsafe {
307            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308            ::unity::il2cpp_call!((::unity::module_base()+0x23561b0usize)as*mut u8,();
309(MapPanelTarget)__receiver)
310        }
311    }
312    #[doc = "`LateUpdate()` overload"]
313    fn late_update(self) -> () {
314        unsafe {
315            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316            ::unity::il2cpp_call!((::unity::module_base()+0x2356300usize)as*mut u8,();
317(MapPanelTarget)__receiver)
318        }
319    }
320    #[doc = "`GetSourceMaterials()` overload"]
321    fn get_source_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
322        unsafe {
323            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324            {
325                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
326                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
327                    panic!(
328                        "unity: virtual slot {}
329 out of range (vtable len {}
330) on the runtime class behind {}
331 (method `{}
332`)",
333                        5usize,
334                        __vt.len(),
335                        <MapPanelTarget as ::unity::ClassIdentity>::NAME,
336                        "GetSourceMaterials",
337                    )
338                });
339                let __inner: extern "C" fn(MapPanelTarget, ::unity::OptionalMethod) -> ::unity::Array<crate::unity_engine::material::Material> =
340                    ::core::mem::transmute(__vi.method_ptr);
341                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
342                __inner(__receiver, __mi)
343            }
344        }
345    }
346    #[doc = "`UpdateDangerUnits()` overload"]
347    fn update_danger_units(self) -> () {
348        unsafe {
349            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350            ::unity::il2cpp_call!((::unity::module_base()+0x23576a0usize)as*mut u8,();
351(MapPanelTarget)__receiver)
352        }
353    }
354    #[doc = "`GetTargetUnit()` overload"]
355    fn get_target_unit(self) -> crate::app::unit::Unit {
356        unsafe {
357            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358            ::unity::il2cpp_call!((::unity::module_base()+0x2357af0usize)as*mut u8,crate::app::unit::Unit;
359(MapPanelTarget)__receiver)
360        }
361    }
362    #[doc = "`IsEnemyAttackRange(crate::app::unit::Unit, i32, i32)` overload"]
363    fn is_enemy_attack_range(
364        self,
365        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
366        x: impl ::core::convert::Into<i32>,
367        z: impl ::core::convert::Into<i32>,
368    ) -> bool {
369        unsafe {
370            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
371            ::unity::il2cpp_call!((::unity::module_base()+0x2357fc0usize)as*mut u8,bool;
372(MapPanelTarget)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
373        }
374    }
375    #[doc = "`CommitForAttack(crate::app::unit::Unit, i32, i32)` overload"]
376    fn commit_for_attack(
377        self,
378        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
379        x: impl ::core::convert::Into<i32>,
380        z: impl ::core::convert::Into<i32>,
381    ) -> () {
382        unsafe {
383            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384            ::unity::il2cpp_call!((::unity::module_base()+0x2358380usize)as*mut u8,();
385(MapPanelTarget)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
386        }
387    }
388    #[doc = "`CommitForFullBullet()` overload"]
389    fn commit_for_full_bullet(self) -> () {
390        unsafe {
391            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392            ::unity::il2cpp_call!((::unity::module_base()+0x23563c0usize)as*mut u8,();
393(MapPanelTarget)__receiver)
394        }
395    }
396    #[doc = "`SetMesh()` overload"]
397    fn set_mesh(self) -> () {
398        unsafe {
399            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400            ::unity::il2cpp_call!((::unity::module_base()+0x2356680usize)as*mut u8,();
401(MapPanelTarget)__receiver)
402        }
403    }
404    #[doc = "`SetMeshForGeneralAttack(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
405    fn set_mesh_for_general_attack(
406        self,
407        dest_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
408        uv0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
409        uv2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
410    ) -> () {
411        unsafe {
412            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413            ::unity::il2cpp_call!((::unity::module_base()+0x2358b00usize)as*mut u8,();
414(MapPanelTarget)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dest_pos),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv2))
415        }
416    }
417    #[doc = "`SetMeshForEngageAttack(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
418    fn set_mesh_for_engage_attack(
419        self,
420        dest_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
421        uv0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
422        uv2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
423    ) -> () {
424        unsafe {
425            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426            ::unity::il2cpp_call!((::unity::module_base()+0x2358d70usize)as*mut u8,();
427(MapPanelTarget)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dest_pos),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv2))
428        }
429    }
430    #[doc = "`SetMeshForGunner(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
431    fn set_mesh_for_gunner(
432        self,
433        dest_pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
434        uv0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
435        uv2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
436    ) -> () {
437        unsafe {
438            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
439            ::unity::il2cpp_call!((::unity::module_base()+0x2358f10usize)as*mut u8,();
440(MapPanelTarget)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dest_pos),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv2))
441        }
442    }
443    #[doc = "`SetMeshForFullBullet(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2)` overload"]
444    fn set_mesh_for_full_bullet(
445        self,
446        uv0: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
447        uv2: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
448    ) -> () {
449        unsafe {
450            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451            ::unity::il2cpp_call!((::unity::module_base()+0x2359180usize)as*mut u8,();
452(MapPanelTarget)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv0),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(uv2))
453        }
454    }
455    #[doc = "`IsTargetedForGeneralAttack(crate::app::unit::Unit, i32, i32)` overload"]
456    fn is_targeted_for_general_attack(
457        self,
458        enemy: impl ::core::convert::Into<crate::app::unit::Unit>,
459        x: impl ::core::convert::Into<i32>,
460        z: impl ::core::convert::Into<i32>,
461    ) -> bool {
462        unsafe {
463            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
464            ::unity::il2cpp_call!((::unity::module_base()+0x2358ac0usize)as*mut u8,bool;
465(MapPanelTarget)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(enemy),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
466        }
467    }
468    #[doc = "`IsTargetedForEngageAttack(crate::app::unit::Unit, crate::app::unit::Unit)` overload"]
469    fn is_targeted_for_engage_attack(
470        self,
471        enemy: impl ::core::convert::Into<crate::app::unit::Unit>,
472        target: impl ::core::convert::Into<crate::app::unit::Unit>,
473    ) -> bool {
474        unsafe {
475            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
476            ::unity::il2cpp_call!((::unity::module_base()+0x2358a20usize)as*mut u8,bool;
477(MapPanelTarget)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(enemy),(crate::app::unit::Unit)::core::convert::Into::into(target))
478        }
479    }
480    #[doc = "`IsTargetedForGunner(crate::app::unit::Unit, i32, i32)` overload"]
481    fn is_targeted_for_gunner(
482        self,
483        enemy: impl ::core::convert::Into<crate::app::unit::Unit>,
484        x: impl ::core::convert::Into<i32>,
485        z: impl ::core::convert::Into<i32>,
486    ) -> bool {
487        unsafe {
488            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489            ::unity::il2cpp_call!((::unity::module_base()+0x2358a30usize)as*mut u8,bool;
490(MapPanelTarget)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(enemy),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
491        }
492    }
493    #[doc = "`get_AlphaCurve()` overload"]
494    fn get_alpha_curve(self) -> crate::unity_engine::animationcurve::AnimationCurve {
495        unsafe {
496            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497            ::unity::il2cpp_call!((::unity::module_base()+0x235a3c0usize)as*mut u8,crate::unity_engine::animationcurve::AnimationCurve;
498(MapPanelTarget)__receiver)
499        }
500    }
501    #[doc = "`get_PositionZOffsetForGeneral()` overload"]
502    fn get_position_z_offset_for_general(self) -> f32 {
503        unsafe {
504            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
505            ::unity::il2cpp_call!((::unity::module_base()+0x235a3d0usize)as*mut u8,f32;
506(MapPanelTarget)__receiver)
507        }
508    }
509    #[doc = "`get_PositionZOffsetForHorse()` overload"]
510    fn get_position_z_offset_for_horse(self) -> f32 {
511        unsafe {
512            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513            ::unity::il2cpp_call!((::unity::module_base()+0x235a3e0usize)as*mut u8,f32;
514(MapPanelTarget)__receiver)
515        }
516    }
517    #[doc = "`get_PositionZOffsetForFly()` overload"]
518    fn get_position_z_offset_for_fly(self) -> f32 {
519        unsafe {
520            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
521            ::unity::il2cpp_call!((::unity::module_base()+0x235a3f0usize)as*mut u8,f32;
522(MapPanelTarget)__receiver)
523        }
524    }
525    #[doc = "`get_PositionZOffsetForBmapSize2()` overload"]
526    fn get_position_z_offset_for_bmap_size2(self) -> f32 {
527        unsafe {
528            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529            ::unity::il2cpp_call!((::unity::module_base()+0x235a400usize)as*mut u8,f32;
530(MapPanelTarget)__receiver)
531        }
532    }
533    #[doc = "`get_PositionZOffsetForBmapSize3()` overload"]
534    fn get_position_z_offset_for_bmap_size3(self) -> f32 {
535        unsafe {
536            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
537            ::unity::il2cpp_call!((::unity::module_base()+0x235a410usize)as*mut u8,f32;
538(MapPanelTarget)__receiver)
539        }
540    }
541    #[doc = "`get_PositionZOffsetForBmapSize5()` overload"]
542    fn get_position_z_offset_for_bmap_size5(self) -> f32 {
543        unsafe {
544            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
545            ::unity::il2cpp_call!((::unity::module_base()+0x235a420usize)as*mut u8,f32;
546(MapPanelTarget)__receiver)
547        }
548    }
549    #[doc = "`get_ArchHeightOffset()` overload"]
550    fn get_arch_height_offset(self) -> f32 {
551        unsafe {
552            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
553            ::unity::il2cpp_call!((::unity::module_base()+0x235a430usize)as*mut u8,f32;
554(MapPanelTarget)__receiver)
555        }
556    }
557    #[doc = "`.ctor()` overload"]
558    fn ctor(self) -> () {
559        unsafe {
560            let __receiver = <MapPanelTarget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
561            ::unity::il2cpp_call!((::unity::module_base()+0x235a440usize)as*mut u8,();
562(MapPanelTarget)__receiver)
563        }
564    }
565}
566
567#[cfg(feature = "root-mappaneltarget")]
568impl<__T: IMapPanelTarget> IMapPanelTargetMethods for __T {}
569
570#[cfg(feature = "root-mappaneltarget")]
571impl MapPanelTarget {
572    pub fn get_sub_mesh_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
574    }
575
576    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
577        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
578    }
579
580    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
581        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
582    }
583
584    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
585        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
586    }
587
588    pub fn get_source_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
589        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
590    }
591
592    pub fn update_danger_units_method_info() -> &'static ::unity::il2cpp::MethodInfo {
593        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
594    }
595
596    pub fn get_target_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
598    }
599
600    pub fn is_enemy_attack_range_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
602    }
603
604    pub fn commit_for_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
605        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
606    }
607
608    pub fn commit_for_full_bullet_method_info() -> &'static ::unity::il2cpp::MethodInfo {
609        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
610    }
611
612    pub fn set_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
613        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
614    }
615
616    pub fn set_mesh_for_general_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
617        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
618    }
619
620    pub fn set_mesh_for_engage_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
621        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
622    }
623
624    pub fn set_mesh_for_gunner_method_info() -> &'static ::unity::il2cpp::MethodInfo {
625        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
626    }
627
628    pub fn set_mesh_for_full_bullet_method_info() -> &'static ::unity::il2cpp::MethodInfo {
629        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
630    }
631
632    pub fn is_targeted_for_general_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
633        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
634    }
635
636    pub fn is_targeted_for_engage_attack_method_info() -> &'static ::unity::il2cpp::MethodInfo {
637        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
638    }
639
640    pub fn is_targeted_for_gunner_method_info() -> &'static ::unity::il2cpp::MethodInfo {
641        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
642    }
643
644    pub fn get_alpha_curve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
645        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
646    }
647
648    pub fn get_position_z_offset_for_general_method_info() -> &'static ::unity::il2cpp::MethodInfo {
649        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
650    }
651
652    pub fn get_position_z_offset_for_horse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
653        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
654    }
655
656    pub fn get_position_z_offset_for_fly_method_info() -> &'static ::unity::il2cpp::MethodInfo {
657        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
658    }
659
660    pub fn get_position_z_offset_for_bmap_size2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
661        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
662    }
663
664    pub fn get_position_z_offset_for_bmap_size3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
665        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
666    }
667
668    pub fn get_position_z_offset_for_bmap_size5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
669        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
670    }
671
672    pub fn get_arch_height_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
673        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
674    }
675
676    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
677        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
678    }
679}
680
681#[cfg(feature = "root-mappaneltarget")]
682impl MapPanelTarget {
683    #[doc = "Direct (non-virtual) call to `MapPanelTarget`'s own `get_SubMeshCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
684    pub unsafe fn get_sub_mesh_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
685        let __mi = Self::get_sub_mesh_count_method_info();
686        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
687        __inner(this.into(), ::core::option::Option::None)
688    }
689
690    #[doc = "Direct (non-virtual) call to `MapPanelTarget`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
691    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
692        let __mi = Self::awake_method_info();
693        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
694        __inner(this.into(), ::core::option::Option::None)
695    }
696
697    #[doc = "Direct (non-virtual) call to `MapPanelTarget`'s own `GetSourceMaterials`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
698    pub unsafe fn get_source_materials(
699        this: impl ::core::convert::Into<::unity::IlInstance>,
700    ) -> ::unity::Array<crate::unity_engine::material::Material> {
701        let __mi = Self::get_source_materials_method_info();
702        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<crate::unity_engine::material::Material> =
703            ::core::mem::transmute(__mi.method_ptr);
704        __inner(this.into(), ::core::option::Option::None)
705    }
706}
707
708#[cfg(feature = "root-mappaneltarget")]
709impl MapPanelTarget {
710    #[doc = "`.ctor()` — no args"]
711    pub fn new() -> Self {
712        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
713            panic!(
714                "{}
715::{}
716 failed to instantiate",
717                ::core::stringify!(MapPanelTarget),
718                ::core::stringify!(new),
719            )
720        });
721        <Self as IMapPanelTargetMethods>::ctor(this);
722        this
723    }
724}
725
726#[cfg(feature = "root-mappaneltarget")]
727#[doc(hidden)]
728pub mod prelude {
729    pub use super::{
730        IMapPanelTarget, IMapPanelTargetMethods, MapPanelTarget, MapPanelTarget_DangerType, MapPanelTarget_DirtyType, MapPanelTarget_MeshIndex,
731    };
732    #[cfg(feature = "app-singletonmonobehaviour_1")]
733    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
734    #[cfg(feature = "root-mappanelbase_1")]
735    pub use crate::root::mappanelbase_1::IMapPanelBase_1Methods;
736    #[cfg(feature = "system-object")]
737    pub use crate::system::object::IObjectMethods;
738    #[cfg(feature = "system-enum")]
739    pub use crate::system::r#enum::IEnumMethods;
740    #[cfg(feature = "system-valuetype")]
741    pub use crate::system::valuetype::IValueTypeMethods;
742    #[cfg(feature = "unity_engine-behaviour")]
743    pub use crate::unity_engine::behaviour::IBehaviourMethods;
744    #[cfg(feature = "unity_engine-component")]
745    pub use crate::unity_engine::component::IComponentMethods;
746    #[cfg(feature = "unity_engine-monobehaviour")]
747    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
748    #[cfg(feature = "unity_engine-object_2")]
749    pub use crate::unity_engine::object_2::IObject_2Methods;
750    pub use crate::{
751        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
752        root::mappanelbase_1::IMapPanelBase_1,
753        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
754        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
755    };
756}