Skip to main content

engage/generated/app/
mappanelgimmick.rs

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