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