Skip to main content

engage/generated/app/
minimappaneldeployrenderer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-minimappaneldeployrenderer-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::minimappanelbase::{IMiniMapPanelBase, MiniMapPanelBase},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
15            monobehaviour::{IMonoBehaviour, MonoBehaviour},
16            object_2::{IObject_2, Object_2},
17            ui::{
18                graphic::{Graphic, IGraphic},
19                maskablegraphic::{IMaskableGraphic, MaskableGraphic},
20            },
21        },
22    };
23
24    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/minimappaneldeployrenderer/MiniMapPanelDeployRenderer.md"))]
25    #[::unity::class(namespace = "App", name = "MiniMapPanelDeployRenderer")]
26    #[parent(crate::app::minimappanelbase::MiniMapPanelBase)]
27    pub struct MiniMapPanelDeployRenderer {
28        #[offset(256)]
29        #[rename(name = "m_MoveImage")]
30        pub m_move_image: crate::unity_engine::material::Material,
31        #[offset(264)]
32        #[rename(name = "m_AttackImage")]
33        pub m_attack_image: crate::unity_engine::material::Material,
34        #[offset(272)]
35        #[rename(name = "m_HealImage")]
36        pub m_heal_image: crate::unity_engine::material::Material,
37        #[offset(280)]
38        #[rename(name = "m_SupportImage")]
39        pub m_support_image: crate::unity_engine::material::Material,
40        #[offset(288)]
41        #[rename(name = "m_InterferenceImage")]
42        pub m_interference_image: crate::unity_engine::material::Material,
43    }
44}
45
46#[cfg(feature = "app-minimappaneldeployrenderer-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-minimappaneldeployrenderer")]
50pub trait IMiniMapPanelDeployRendererMethods: IMiniMapPanelDeployRenderer {
51    #[doc = "`GetSourceMaterials()` overload"]
52    fn get_source_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
53        unsafe {
54            let __receiver =
55                <MiniMapPanelDeployRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            {
57                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58                let __vi = *__vt.get(65usize).unwrap_or_else(|| {
59                    panic!(
60                        "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65                        65usize,
66                        __vt.len(),
67                        <MiniMapPanelDeployRenderer as ::unity::ClassIdentity>::NAME,
68                        "GetSourceMaterials",
69                    )
70                });
71                let __inner: extern "C" fn(
72                    MiniMapPanelDeployRenderer,
73                    ::unity::OptionalMethod,
74                ) -> ::unity::Array<crate::unity_engine::material::Material> = ::core::mem::transmute(__vi.method_ptr);
75                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76                __inner(__receiver, __mi)
77            }
78        }
79    }
80    #[doc = "`GetMapPanelMaterials()` overload"]
81    fn get_map_panel_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
82        unsafe {
83            let __receiver =
84                <MiniMapPanelDeployRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85            {
86                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87                let __vi = *__vt.get(66usize).unwrap_or_else(|| {
88                    panic!(
89                        "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94                        66usize,
95                        __vt.len(),
96                        <MiniMapPanelDeployRenderer as ::unity::ClassIdentity>::NAME,
97                        "GetMapPanelMaterials",
98                    )
99                });
100                let __inner: extern "C" fn(
101                    MiniMapPanelDeployRenderer,
102                    ::unity::OptionalMethod,
103                ) -> ::unity::Array<crate::unity_engine::material::Material> = ::core::mem::transmute(__vi.method_ptr);
104                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105                __inner(__receiver, __mi)
106            }
107        }
108    }
109    #[doc = "`CreatePanelMesh()` overload"]
110    fn create_panel_mesh(self) -> () {
111        unsafe {
112            let __receiver =
113                <MiniMapPanelDeployRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            {
115                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116                let __vi = *__vt.get(68usize).unwrap_or_else(|| {
117                    panic!(
118                        "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123                        68usize,
124                        __vt.len(),
125                        <MiniMapPanelDeployRenderer as ::unity::ClassIdentity>::NAME,
126                        "CreatePanelMesh",
127                    )
128                });
129                let __inner: extern "C" fn(MiniMapPanelDeployRenderer, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
130                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
131                __inner(__receiver, __mi)
132            }
133        }
134    }
135    #[doc = "`CreatePanelDeployMesh()` overload"]
136    fn create_panel_deploy_mesh(self) -> () {
137        unsafe {
138            let __receiver =
139                <MiniMapPanelDeployRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2779210usize)as*mut u8,();
141(MiniMapPanelDeployRenderer)__receiver)
142        }
143    }
144    #[doc = "`.ctor()` overload"]
145    fn ctor(self) -> () {
146        unsafe {
147            let __receiver =
148                <MiniMapPanelDeployRenderer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            ::unity::il2cpp_call!((::unity::module_base()+0x2779350usize)as*mut u8,();
150(MiniMapPanelDeployRenderer)__receiver)
151        }
152    }
153}
154
155#[cfg(feature = "app-minimappaneldeployrenderer")]
156impl<__T: IMiniMapPanelDeployRenderer> IMiniMapPanelDeployRendererMethods for __T {}
157
158#[cfg(feature = "app-minimappaneldeployrenderer")]
159impl MiniMapPanelDeployRenderer {
160    pub fn get_source_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
162    }
163
164    pub fn get_map_panel_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
166    }
167
168    pub fn create_panel_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
170    }
171
172    pub fn create_panel_deploy_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
174    }
175
176    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
178    }
179}
180
181#[cfg(feature = "app-minimappaneldeployrenderer")]
182impl MiniMapPanelDeployRenderer {
183    #[doc = "Direct (non-virtual) call to `MiniMapPanelDeployRenderer`'s own `GetSourceMaterials`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
184    pub unsafe fn get_source_materials(
185        this: impl ::core::convert::Into<::unity::IlInstance>,
186    ) -> ::unity::Array<crate::unity_engine::material::Material> {
187        let __mi = Self::get_source_materials_method_info();
188        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<crate::unity_engine::material::Material> =
189            ::core::mem::transmute(__mi.method_ptr);
190        __inner(this.into(), ::core::option::Option::None)
191    }
192
193    #[doc = "Direct (non-virtual) call to `MiniMapPanelDeployRenderer`'s own `GetMapPanelMaterials`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
194    pub unsafe fn get_map_panel_materials(
195        this: impl ::core::convert::Into<::unity::IlInstance>,
196    ) -> ::unity::Array<crate::unity_engine::material::Material> {
197        let __mi = Self::get_map_panel_materials_method_info();
198        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<crate::unity_engine::material::Material> =
199            ::core::mem::transmute(__mi.method_ptr);
200        __inner(this.into(), ::core::option::Option::None)
201    }
202
203    #[doc = "Direct (non-virtual) call to `MiniMapPanelDeployRenderer`'s own `CreatePanelMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
204    pub unsafe fn create_panel_mesh(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
205        let __mi = Self::create_panel_mesh_method_info();
206        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
207        __inner(this.into(), ::core::option::Option::None)
208    }
209}
210
211#[cfg(feature = "app-minimappaneldeployrenderer")]
212impl MiniMapPanelDeployRenderer {
213    #[doc = "`.ctor()` — no args"]
214    pub fn new() -> Self {
215        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
216            panic!(
217                "{}
218::{}
219 failed to instantiate",
220                ::core::stringify!(MiniMapPanelDeployRenderer),
221                ::core::stringify!(new),
222            )
223        });
224        <Self as IMiniMapPanelDeployRendererMethods>::ctor(this);
225        this
226    }
227}
228
229#[cfg(feature = "app-minimappaneldeployrenderer")]
230#[doc(hidden)]
231pub mod prelude {
232    pub use super::{IMiniMapPanelDeployRenderer, IMiniMapPanelDeployRendererMethods, MiniMapPanelDeployRenderer};
233    #[cfg(feature = "app-minimappanelbase")]
234    pub use crate::app::minimappanelbase::IMiniMapPanelBaseMethods;
235    #[cfg(feature = "system-object")]
236    pub use crate::system::object::IObjectMethods;
237    #[cfg(feature = "unity_engine-behaviour")]
238    pub use crate::unity_engine::behaviour::IBehaviourMethods;
239    #[cfg(feature = "unity_engine-component")]
240    pub use crate::unity_engine::component::IComponentMethods;
241    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
242    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
243    #[cfg(feature = "unity_engine-monobehaviour")]
244    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
245    #[cfg(feature = "unity_engine-object_2")]
246    pub use crate::unity_engine::object_2::IObject_2Methods;
247    #[cfg(feature = "unity_engine-ui-graphic")]
248    pub use crate::unity_engine::ui::graphic::IGraphicMethods;
249    #[cfg(feature = "unity_engine-ui-maskablegraphic")]
250    pub use crate::unity_engine::ui::maskablegraphic::IMaskableGraphicMethods;
251    pub use crate::{
252        app::minimappanelbase::IMiniMapPanelBase,
253        system::object::IObject,
254        unity_engine::{
255            behaviour::IBehaviour,
256            component::IComponent,
257            event_systems::uibehaviour::IUIBehaviour,
258            monobehaviour::IMonoBehaviour,
259            object_2::IObject_2,
260            ui::{graphic::IGraphic, maskablegraphic::IMaskableGraphic},
261        },
262    };
263}