Skip to main content

engage/generated/root/
mappanelimpact.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-mappanelimpact-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/mappanelimpact/MapPanelImpact.md"))]
25    #[::unity::class(namespace = "", name = "MapPanelImpact")]
26    #[parent(crate::root::mappanelbase_1::MapPanelBase_1<crate::root::mappanelimpact::MapPanelImpact>)]
27    pub struct MapPanelImpact {
28        #[offset(64)]
29        #[rename(name = "m_Alpha")]
30        pub m_alpha: crate::app::interpolatorfloat::InterpolatorFloat,
31        #[offset(72)]
32        #[rename(name = "m_LandImage")]
33        pub m_land_image: crate::unity_engine::material::Material,
34        #[offset(80)]
35        #[rename(name = "m_FriendlyLandColor")]
36        pub m_friendly_land_color: crate::unity_engine::color::Color,
37        #[offset(96)]
38        #[rename(name = "m_HostileLandColor")]
39        pub m_hostile_land_color: crate::unity_engine::color::Color,
40        #[offset(112)]
41        #[rename(name = "m_FriendlyLandImage")]
42        pub m_friendly_land_image: crate::app::mapimagecorebit::MapImageCoreBit,
43        #[offset(120)]
44        #[rename(name = "m_HostileLandImage")]
45        pub m_hostile_land_image: crate::app::mapimagecorebit::MapImageCoreBit,
46        #[offset(128)]
47        #[rename(name = "m_CurrentUnit")]
48        pub m_current_unit: crate::app::unit::Unit,
49        #[offset(136)]
50        #[rename(name = "m_LandImageFunc")]
51        pub m_land_image_func: crate::app::mapskill::MapSkill_UnitFunc,
52        #[offset(144)]
53        #[rename(name = "m_LandCellFunc")]
54        pub m_land_cell_func: crate::app::mapfor::MapFor_PosFunction,
55        #[offset(152)]
56        #[rename(name = "m_FriendlyLandImageGetter")]
57        pub m_friendly_land_image_getter: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<crate::root::mappanelimpact::MapPanelImpact>,
58        #[offset(160)]
59        #[rename(name = "m_HostileLandImageGetter")]
60        pub m_hostile_land_image_getter: crate::root::mappanelbase_1::MapPanelBase_1_ImageGetFunction<crate::root::mappanelimpact::MapPanelImpact>,
61    }
62
63    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mappanelimpact/MapPanelImpact_MeshIndex.md"))]
64    #[repr(C)]
65    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
66    pub struct MapPanelImpact_MeshIndex {
67        pub value: i32,
68    }
69    impl ::unity::ClassIdentity for MapPanelImpact_MeshIndex {
70        const NAME: &'static str = "MapPanelImpact.MeshIndex";
71        const NAMESPACE: &'static str = "";
72
73        fn class() -> ::unity::Class {
74            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
75            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
76        }
77    }
78    impl ::unity::IlType for MapPanelImpact_MeshIndex {
79        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
80            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
81        }
82    }
83    impl MapPanelImpact_MeshIndex {
84        pub fn land() -> Self {
85            Self { value: 0 }
86        }
87
88        pub fn num() -> Self {
89            Self { value: 1 }
90        }
91    }
92}
93
94#[cfg(feature = "root-mappanelimpact-types")]
95pub use __types::*;
96
97#[cfg(feature = "root-mappanelimpact")]
98pub trait IMapPanelImpactMethods: IMapPanelImpact {
99    #[doc = "`get_SubMeshCount()` overload"]
100    fn get_sub_mesh_count(self) -> i32 {
101        unsafe {
102            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            {
104                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
106                    panic!(
107                        "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112                        6usize,
113                        __vt.len(),
114                        <MapPanelImpact as ::unity::ClassIdentity>::NAME,
115                        "get_SubMeshCount",
116                    )
117                });
118                let __inner: extern "C" fn(MapPanelImpact, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124    #[doc = "`Start()` overload"]
125    fn start(self) -> () {
126        unsafe {
127            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x2352460usize)as*mut u8,();
129(MapPanelImpact)__receiver)
130        }
131    }
132    #[doc = "`Update()` overload"]
133    fn update(self) -> () {
134        unsafe {
135            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2352640usize)as*mut u8,();
137(MapPanelImpact)__receiver)
138        }
139    }
140    #[doc = "`GetSourceMaterials()` overload"]
141    fn get_source_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
142        unsafe {
143            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            {
145                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
146                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
147                    panic!(
148                        "unity: virtual slot {}
149 out of range (vtable len {}
150) on the runtime class behind {}
151 (method `{}
152`)",
153                        5usize,
154                        __vt.len(),
155                        <MapPanelImpact as ::unity::ClassIdentity>::NAME,
156                        "GetSourceMaterials",
157                    )
158                });
159                let __inner: extern "C" fn(MapPanelImpact, ::unity::OptionalMethod) -> ::unity::Array<crate::unity_engine::material::Material> =
160                    ::core::mem::transmute(__vi.method_ptr);
161                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
162                __inner(__receiver, __mi)
163            }
164        }
165    }
166    #[doc = "`SetVertex()` overload"]
167    fn set_vertex(self) -> () {
168        unsafe {
169            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2352720usize)as*mut u8,();
171(MapPanelImpact)__receiver)
172        }
173    }
174    #[doc = "`SetLandImage(i32, i32, crate::app::unit::Unit)` overload"]
175    fn set_land_image(
176        self,
177        x: impl ::core::convert::Into<i32>,
178        z: impl ::core::convert::Into<i32>,
179        target: impl ::core::convert::Into<crate::app::unit::Unit>,
180    ) -> () {
181        unsafe {
182            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x2352be0usize)as*mut u8,();
184(MapPanelImpact)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::app::unit::Unit)::core::convert::Into::into(target))
185        }
186    }
187    #[doc = "`AddLandCell(i32, i32)` overload"]
188    fn add_land_cell(self, x: impl ::core::convert::Into<i32>, z: impl ::core::convert::Into<i32>) -> () {
189        unsafe {
190            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x2352ce0usize)as*mut u8,();
192(MapPanelImpact)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z))
193        }
194    }
195    #[doc = "`SetMesh()` overload"]
196    fn set_mesh(self) -> () {
197        unsafe {
198            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            ::unity::il2cpp_call!((::unity::module_base()+0x2352810usize)as*mut u8,();
200(MapPanelImpact)__receiver)
201        }
202    }
203    #[doc = "`.ctor()` overload"]
204    fn ctor(self) -> () {
205        unsafe {
206            let __receiver = <MapPanelImpact as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x2352f10usize)as*mut u8,();
208(MapPanelImpact)__receiver)
209        }
210    }
211}
212
213#[cfg(feature = "root-mappanelimpact")]
214impl<__T: IMapPanelImpact> IMapPanelImpactMethods for __T {}
215
216#[cfg(feature = "root-mappanelimpact")]
217impl MapPanelImpact {
218    pub fn get_sub_mesh_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
220    }
221
222    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
224    }
225
226    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
228    }
229
230    pub fn get_source_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
232    }
233
234    pub fn set_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
236    }
237
238    pub fn set_land_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
240    }
241
242    pub fn add_land_cell_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
244    }
245
246    pub fn set_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
248    }
249
250    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
252    }
253}
254
255#[cfg(feature = "root-mappanelimpact")]
256impl MapPanelImpact {
257    #[doc = "Direct (non-virtual) call to `MapPanelImpact`'s own `get_SubMeshCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
258    pub unsafe fn get_sub_mesh_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
259        let __mi = Self::get_sub_mesh_count_method_info();
260        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
261        __inner(this.into(), ::core::option::Option::None)
262    }
263
264    #[doc = "Direct (non-virtual) call to `MapPanelImpact`'s own `GetSourceMaterials`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
265    pub unsafe fn get_source_materials(
266        this: impl ::core::convert::Into<::unity::IlInstance>,
267    ) -> ::unity::Array<crate::unity_engine::material::Material> {
268        let __mi = Self::get_source_materials_method_info();
269        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<crate::unity_engine::material::Material> =
270            ::core::mem::transmute(__mi.method_ptr);
271        __inner(this.into(), ::core::option::Option::None)
272    }
273}
274
275#[cfg(feature = "root-mappanelimpact")]
276impl MapPanelImpact {
277    #[doc = "`.ctor()` — no args"]
278    pub fn new() -> Self {
279        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
280            panic!(
281                "{}
282::{}
283 failed to instantiate",
284                ::core::stringify!(MapPanelImpact),
285                ::core::stringify!(new),
286            )
287        });
288        <Self as IMapPanelImpactMethods>::ctor(this);
289        this
290    }
291}
292
293#[cfg(feature = "root-mappanelimpact")]
294#[doc(hidden)]
295pub mod prelude {
296    pub use super::{IMapPanelImpact, IMapPanelImpactMethods, MapPanelImpact, MapPanelImpact_MeshIndex};
297    #[cfg(feature = "app-singletonmonobehaviour_1")]
298    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
299    #[cfg(feature = "root-mappanelbase_1")]
300    pub use crate::root::mappanelbase_1::IMapPanelBase_1Methods;
301    #[cfg(feature = "system-object")]
302    pub use crate::system::object::IObjectMethods;
303    #[cfg(feature = "system-enum")]
304    pub use crate::system::r#enum::IEnumMethods;
305    #[cfg(feature = "system-valuetype")]
306    pub use crate::system::valuetype::IValueTypeMethods;
307    #[cfg(feature = "unity_engine-behaviour")]
308    pub use crate::unity_engine::behaviour::IBehaviourMethods;
309    #[cfg(feature = "unity_engine-component")]
310    pub use crate::unity_engine::component::IComponentMethods;
311    #[cfg(feature = "unity_engine-monobehaviour")]
312    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
313    #[cfg(feature = "unity_engine-object_2")]
314    pub use crate::unity_engine::object_2::IObject_2Methods;
315    pub use crate::{
316        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
317        root::mappanelbase_1::IMapPanelBase_1,
318        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
319        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
320    };
321}