engage/generated/app/
mapuiunitindexasuv2.rs1#[cfg(feature = "app-mapuiunitindexasuv2-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 ui::basemesheffect::{BaseMeshEffect, IBaseMeshEffect},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapuiunitindexasuv2/MapUIUnitIndexAsUV2.md"))]
21 #[::unity::class(namespace = "App", name = "MapUIUnitIndexAsUV2")]
22 #[parent(crate::unity_engine::ui::basemesheffect::BaseMeshEffect)]
23 pub struct MapUIUnitIndexAsUV2 {
24 #[offset(32)]
25 #[rename(name = "m_UnitIndex")]
26 pub m_unit_index: i32,
27 }
28}
29
30#[cfg(feature = "app-mapuiunitindexasuv2-types")]
31pub use __types::*;
32
33#[cfg(feature = "app-mapuiunitindexasuv2")]
34pub trait IMapUIUnitIndexAsUV2Methods: IMapUIUnitIndexAsUV2 {
35 #[doc = "`.ctor()` overload"]
36 fn ctor(self) -> () {
37 unsafe {
38 let __receiver = <MapUIUnitIndexAsUV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39 ::unity::il2cpp_call!((::unity::module_base()+0x202b2d0usize)as*mut u8,();
40(MapUIUnitIndexAsUV2)__receiver)
41 }
42 }
43 #[doc = "`ModifyMesh(crate::unity_engine::ui::vertexhelper::VertexHelper)` overload"]
44 fn modify_mesh(self, vh: impl ::core::convert::Into<crate::unity_engine::ui::vertexhelper::VertexHelper>) -> () {
45 unsafe {
46 let __receiver = <MapUIUnitIndexAsUV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 {
48 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
49 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
50 panic!(
51 "unity: virtual slot {}
52 out of range (vtable len {}
53) on the runtime class behind {}
54 (method `{}
55`)",
56 20usize,
57 __vt.len(),
58 <MapUIUnitIndexAsUV2 as ::unity::ClassIdentity>::NAME,
59 "ModifyMesh",
60 )
61 });
62 let __inner: extern "C" fn(MapUIUnitIndexAsUV2, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
63 ::core::mem::transmute(__vi.method_ptr);
64 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65 __inner(__receiver, ::core::convert::Into::into(vh), __mi)
66 }
67 }
68 }
69 #[doc = "`SetUnitIndex(i32)` overload"]
70 fn set_unit_index(self, index: impl ::core::convert::Into<i32>) -> () {
71 unsafe {
72 let __receiver = <MapUIUnitIndexAsUV2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x202b400usize)as*mut u8,();
74(MapUIUnitIndexAsUV2)__receiver,(i32)::core::convert::Into::into(index))
75 }
76 }
77}
78
79#[cfg(feature = "app-mapuiunitindexasuv2")]
80impl<__T: IMapUIUnitIndexAsUV2> IMapUIUnitIndexAsUV2Methods for __T {}
81
82#[cfg(feature = "app-mapuiunitindexasuv2")]
83impl MapUIUnitIndexAsUV2 {
84 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
86 }
87
88 pub fn modify_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
90 }
91
92 pub fn set_unit_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
94 }
95}
96
97#[cfg(feature = "app-mapuiunitindexasuv2")]
98impl MapUIUnitIndexAsUV2 {
99 #[doc = "Direct (non-virtual) call to `MapUIUnitIndexAsUV2`'s own `ModifyMesh`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
100 pub unsafe fn modify_mesh(this: impl ::core::convert::Into<::unity::IlInstance>, vh: crate::unity_engine::ui::vertexhelper::VertexHelper) -> () {
101 let __mi = Self::modify_mesh_method_info();
102 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::vertexhelper::VertexHelper, ::unity::OptionalMethod) -> () =
103 ::core::mem::transmute(__mi.method_ptr);
104 __inner(this.into(), vh, ::core::option::Option::None)
105 }
106}
107
108#[cfg(feature = "app-mapuiunitindexasuv2")]
109impl MapUIUnitIndexAsUV2 {
110 #[doc = "`.ctor()` — no args"]
111 pub fn new() -> Self {
112 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113 panic!(
114 "{}
115::{}
116 failed to instantiate",
117 ::core::stringify!(MapUIUnitIndexAsUV2),
118 ::core::stringify!(new),
119 )
120 });
121 <Self as IMapUIUnitIndexAsUV2Methods>::ctor(this);
122 this
123 }
124}
125
126#[cfg(feature = "app-mapuiunitindexasuv2")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::{IMapUIUnitIndexAsUV2, IMapUIUnitIndexAsUV2Methods, MapUIUnitIndexAsUV2};
130 #[cfg(feature = "system-object")]
131 pub use crate::system::object::IObjectMethods;
132 #[cfg(feature = "unity_engine-behaviour")]
133 pub use crate::unity_engine::behaviour::IBehaviourMethods;
134 #[cfg(feature = "unity_engine-component")]
135 pub use crate::unity_engine::component::IComponentMethods;
136 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
137 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
138 #[cfg(feature = "unity_engine-monobehaviour")]
139 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
140 #[cfg(feature = "unity_engine-object_2")]
141 pub use crate::unity_engine::object_2::IObject_2Methods;
142 #[cfg(feature = "unity_engine-ui-basemesheffect")]
143 pub use crate::unity_engine::ui::basemesheffect::IBaseMeshEffectMethods;
144 pub use crate::{
145 system::object::IObject,
146 unity_engine::{
147 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
148 object_2::IObject_2, ui::basemesheffect::IBaseMeshEffect,
149 },
150 };
151}