Skip to main content

engage/generated/app/
minimappanelrouterenderer.rs

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