Skip to main content

engage/generated/app/
minimappaneldangerallrenderer.rs

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