Skip to main content

engage/generated/root/
mapinfoevent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-mapinfoevent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mapinfoevent/MapInfoEvent.md"))]
23    #[::unity::class(namespace = "", name = "MapInfoEvent")]
24    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
25    pub struct MapInfoEvent {
26        #[offset(24)]
27        #[rename(name = "m_Mesh")]
28        pub m_mesh: crate::app::map::Map_CellMesh,
29        #[offset(32)]
30        #[rename(name = "m_Materials")]
31        pub m_materials: ::unity::Array<crate::unity_engine::material::Material>,
32        #[static_field]
33        #[rename(name = "COLOR_DARK")]
34        pub color_dark: crate::unity_engine::color::Color,
35        #[static_field]
36        #[rename(name = "COLOR_VTX0")]
37        pub color_vtx0: crate::unity_engine::color::Color,
38        #[static_field]
39        #[rename(name = "COLOR_VTX1")]
40        pub color_vtx1: crate::unity_engine::color::Color,
41        #[static_field]
42        #[rename(name = "COLOR_VTX2")]
43        pub color_vtx2: crate::unity_engine::color::Color,
44        #[static_field]
45        #[rename(name = "COLOR_VTX3")]
46        pub color_vtx3: crate::unity_engine::color::Color,
47        #[static_field]
48        #[rename(name = "UV_ZERO")]
49        pub uv_zero: crate::unity_engine::vector2::Vector2,
50        #[offset(40)]
51        #[rename(name = "m_SubMeshCount")]
52        pub m_sub_mesh_count: i32,
53        #[offset(44)]
54        #[rename(name = "m_VisitColor")]
55        pub m_visit_color: crate::unity_engine::color::Color,
56        #[offset(60)]
57        #[rename(name = "m_EscapeColor")]
58        pub m_escape_color: crate::unity_engine::color::Color,
59        #[offset(76)]
60        #[rename(name = "m_BreakdownEnemyColor")]
61        pub m_breakdown_enemy_color: crate::unity_engine::color::Color,
62        #[offset(96)]
63        #[rename(name = "m_ScrollCurve")]
64        pub m_scroll_curve: crate::unity_engine::animationcurve::AnimationCurve,
65        #[offset(104)]
66        #[rename(name = "m_AlphaCurve")]
67        pub m_alpha_curve: crate::unity_engine::animationcurve::AnimationCurve,
68        #[offset(112)]
69        #[rename(name = "m_SpeedPropertyID")]
70        pub m_speed_property_id: i32,
71        #[offset(116)]
72        #[rename(name = "m_AlphaPropertyID")]
73        pub m_alpha_property_id: i32,
74        #[offset(120)]
75        #[rename(name = "m_Time")]
76        pub m_time: f32,
77    }
78
79    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/mapinfoevent/MapInfoEvent_MeshIndex.md"))]
80    #[repr(C)]
81    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
82    pub struct MapInfoEvent_MeshIndex {
83        pub value: i32,
84    }
85    impl ::unity::ClassIdentity for MapInfoEvent_MeshIndex {
86        const NAME: &'static str = "MapInfoEvent.MeshIndex";
87        const NAMESPACE: &'static str = "";
88
89        fn class() -> ::unity::Class {
90            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
91            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
92        }
93    }
94    impl ::unity::IlType for MapInfoEvent_MeshIndex {
95        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
96            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
97        }
98    }
99    impl MapInfoEvent_MeshIndex {
100        pub fn debug() -> Self {
101            Self { value: 0 }
102        }
103
104        pub fn event() -> Self {
105            Self { value: 1 }
106        }
107
108        pub fn num() -> Self {
109            Self { value: 2 }
110        }
111    }
112}
113
114#[cfg(feature = "root-mapinfoevent-types")]
115pub use __types::*;
116
117#[cfg(feature = "root-mapinfoevent")]
118impl MapInfoEvent {
119    #[doc = "`.cctor()` overload"]
120    pub fn cctor() -> () {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x2076030usize)as*mut u8,();
123            )
124        }
125    }
126}
127
128#[cfg(feature = "root-mapinfoevent")]
129pub trait IMapInfoEventMethods: IMapInfoEvent {
130    #[doc = "`Start()` overload"]
131    fn start(self) -> () {
132        unsafe {
133            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2072d30usize)as*mut u8,();
135(MapInfoEvent)__receiver)
136        }
137    }
138    #[doc = "`Draw(i32, i32, crate::unity_engine::color::Color)` overload"]
139    fn draw(
140        self,
141        x: impl ::core::convert::Into<i32>,
142        z: impl ::core::convert::Into<i32>,
143        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
144    ) -> () {
145        unsafe {
146            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x2072e50usize)as*mut u8,();
148(MapInfoEvent)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
149        }
150    }
151    #[doc = "`Draw(i32, i32, crate::unity_engine::color::Color, i32)` overload"]
152    fn draw_2(
153        self,
154        x: impl ::core::convert::Into<i32>,
155        z: impl ::core::convert::Into<i32>,
156        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
157        value: impl ::core::convert::Into<i32>,
158    ) -> () {
159        unsafe {
160            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2073790usize)as*mut u8,();
162(MapInfoEvent)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(i32)::core::convert::Into::into(value))
163        }
164    }
165    #[doc = "`Draw(i32, i32, crate::unity_engine::color::Color, ::unity::Il2CppString)` overload"]
166    fn draw_3(
167        self,
168        x: impl ::core::convert::Into<i32>,
169        z: impl ::core::convert::Into<i32>,
170        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
171        name: impl ::core::convert::Into<::unity::Il2CppString>,
172    ) -> () {
173        unsafe {
174            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x2073f90usize)as*mut u8,();
176(MapInfoEvent)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(::unity::Il2CppString)::core::convert::Into::into(name))
177        }
178    }
179    #[doc = "`Draw(crate::app::mapinspector::MapInspector, crate::unity_engine::color::Color)` overload"]
180    fn draw_4(
181        self,
182        inspector: impl ::core::convert::Into<crate::app::mapinspector::MapInspector>,
183        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
184    ) -> () {
185        unsafe {
186            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x2074790usize)as*mut u8,();
188(MapInfoEvent)__receiver,(crate::app::mapinspector::MapInspector)::core::convert::Into::into(inspector),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
189        }
190    }
191    #[doc = "`DrawEventVertex(crate::app::mapinspector::MapInspector)` overload"]
192    fn draw_event_vertex(self, inspector: impl ::core::convert::Into<crate::app::mapinspector::MapInspector>) -> () {
193        unsafe {
194            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x20753c0usize)as*mut u8,();
196(MapInfoEvent)__receiver,(crate::app::mapinspector::MapInspector)::core::convert::Into::into(inspector))
197        }
198    }
199    #[doc = "`Update()` overload"]
200    fn update(self) -> () {
201        unsafe {
202            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x2075d80usize)as*mut u8,();
204(MapInfoEvent)__receiver)
205        }
206    }
207    #[doc = "`UpdateEventVertex()` overload"]
208    fn update_event_vertex(self) -> () {
209        unsafe {
210            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x2075de0usize)as*mut u8,();
212(MapInfoEvent)__receiver)
213        }
214    }
215    #[doc = "`UpdateScrollAnimation()` overload"]
216    fn update_scroll_animation(self) -> () {
217        unsafe {
218            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x2075ef0usize)as*mut u8,();
220(MapInfoEvent)__receiver)
221        }
222    }
223    #[doc = "`.ctor()` overload"]
224    fn ctor(self) -> () {
225        unsafe {
226            let __receiver = <MapInfoEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x2076020usize)as*mut u8,();
228(MapInfoEvent)__receiver)
229        }
230    }
231}
232
233#[cfg(feature = "root-mapinfoevent")]
234impl<__T: IMapInfoEvent> IMapInfoEventMethods for __T {}
235
236#[cfg(feature = "root-mapinfoevent")]
237impl MapInfoEvent {
238    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
240    }
241
242    pub fn draw_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
244    }
245
246    pub fn draw_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
248    }
249
250    pub fn draw_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
252    }
253
254    pub fn draw_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
256    }
257
258    pub fn draw_event_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
260    }
261
262    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
264    }
265
266    pub fn update_event_vertex_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
268    }
269
270    pub fn update_scroll_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
272    }
273
274    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
276    }
277
278    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
280    }
281}
282
283#[cfg(feature = "root-mapinfoevent")]
284impl MapInfoEvent {
285    #[doc = "`.ctor()` — no args"]
286    pub fn new() -> Self {
287        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
288            panic!(
289                "{}
290::{}
291 failed to instantiate",
292                ::core::stringify!(MapInfoEvent),
293                ::core::stringify!(new),
294            )
295        });
296        <Self as IMapInfoEventMethods>::ctor(this);
297        this
298    }
299}
300
301#[cfg(feature = "root-mapinfoevent")]
302#[doc(hidden)]
303pub mod prelude {
304    pub use super::{IMapInfoEvent, IMapInfoEventMethods, MapInfoEvent, MapInfoEvent_MeshIndex};
305    #[cfg(feature = "system-object")]
306    pub use crate::system::object::IObjectMethods;
307    #[cfg(feature = "system-enum")]
308    pub use crate::system::r#enum::IEnumMethods;
309    #[cfg(feature = "system-valuetype")]
310    pub use crate::system::valuetype::IValueTypeMethods;
311    #[cfg(feature = "unity_engine-behaviour")]
312    pub use crate::unity_engine::behaviour::IBehaviourMethods;
313    #[cfg(feature = "unity_engine-component")]
314    pub use crate::unity_engine::component::IComponentMethods;
315    #[cfg(feature = "unity_engine-monobehaviour")]
316    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
317    #[cfg(feature = "unity_engine-object_2")]
318    pub use crate::unity_engine::object_2::IObject_2Methods;
319    pub use crate::{
320        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
321        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
322    };
323}