Skip to main content

engage/generated/app/
minimappaneldangerrenderer.rs

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