engage/generated/app/
mapsequencemove.rs1#[cfg(feature = "app-mapsequencemove-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 procinst::{IProcInst, ProcInst},
11 singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapsequencemove/MapSequenceMove.md"))]
17 #[::unity::class(namespace = "App", name = "MapSequenceMove")]
18 #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::mapsequencemove::MapSequenceMove>)]
19 pub struct MapSequenceMove {
20 #[offset(120)]
21 #[rename(name = "m_Unit")]
22 pub m_unit: crate::app::unit::Unit,
23 }
24}
25
26#[cfg(feature = "app-mapsequencemove-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-mapsequencemove")]
30impl MapSequenceMove {
31 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit)` overload"]
32 pub fn create_bind(
33 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
34 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
35 ) -> () {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x1f2e520usize)as*mut u8,();
38(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit))
39 }
40 }
41}
42
43#[cfg(feature = "app-mapsequencemove")]
44pub trait IMapSequenceMoveMethods: IMapSequenceMove {
45 #[doc = "`.ctor(crate::app::unit::Unit)` overload"]
46 fn ctor(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
47 unsafe {
48 let __receiver = <MapSequenceMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x1f2e120usize)as*mut u8,();
50(MapSequenceMove)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
51 }
52 }
53 #[doc = "`OnCreate()` overload"]
54 fn on_create(self) -> () {
55 unsafe {
56 let __receiver = <MapSequenceMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 {
58 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
59 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
60 panic!(
61 "unity: virtual slot {}
62 out of range (vtable len {}
63) on the runtime class behind {}
64 (method `{}
65`)",
66 9usize,
67 __vt.len(),
68 <MapSequenceMove as ::unity::ClassIdentity>::NAME,
69 "OnCreate",
70 )
71 });
72 let __inner: extern "C" fn(MapSequenceMove, ::unity::OptionalMethod) -> () = ::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 = "`OnDispose()` overload"]
79 fn on_dispose(self) -> () {
80 unsafe {
81 let __receiver = <MapSequenceMove 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(10usize).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 10usize,
92 __vt.len(),
93 <MapSequenceMove as ::unity::ClassIdentity>::NAME,
94 "OnDispose",
95 )
96 });
97 let __inner: extern "C" fn(MapSequenceMove, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
98 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99 __inner(__receiver, __mi)
100 }
101 }
102 }
103 #[doc = "`Tick()` overload"]
104 fn tick(self) -> () {
105 unsafe {
106 let __receiver = <MapSequenceMove as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x1f2e360usize)as*mut u8,();
108(MapSequenceMove)__receiver)
109 }
110 }
111}
112
113#[cfg(feature = "app-mapsequencemove")]
114impl<__T: IMapSequenceMove> IMapSequenceMoveMethods for __T {}
115
116#[cfg(feature = "app-mapsequencemove")]
117impl MapSequenceMove {
118 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120 }
121
122 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124 }
125
126 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128 }
129
130 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
132 }
133
134 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
136 }
137}
138
139#[cfg(feature = "app-mapsequencemove")]
140impl MapSequenceMove {
141 #[doc = "Direct (non-virtual) call to `MapSequenceMove`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
142 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
143 let __mi = Self::on_create_method_info();
144 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
145 __inner(this.into(), ::core::option::Option::None)
146 }
147
148 #[doc = "Direct (non-virtual) call to `MapSequenceMove`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
150 let __mi = Self::on_dispose_method_info();
151 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
152 __inner(this.into(), ::core::option::Option::None)
153 }
154}
155
156#[cfg(feature = "app-mapsequencemove")]
157impl MapSequenceMove {
158 #[doc = "`.ctor(crate::app::unit::Unit)` — overload selector"]
159 pub fn new(unit: crate::app::unit::Unit) -> Self {
160 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
161 panic!(
162 "{}
163::{}
164 failed to instantiate",
165 ::core::stringify!(MapSequenceMove),
166 ::core::stringify!(new),
167 )
168 });
169 <Self as IMapSequenceMoveMethods>::ctor(this, unit);
170 this
171 }
172}
173
174#[cfg(feature = "app-mapsequencemove")]
175#[doc(hidden)]
176pub mod prelude {
177 pub use super::{IMapSequenceMove, IMapSequenceMoveMethods, MapSequenceMove};
178 #[cfg(feature = "app-procinst")]
179 pub use crate::app::procinst::IProcInstMethods;
180 #[cfg(feature = "app-singletonprocinst_1")]
181 pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
182 #[cfg(feature = "system-object")]
183 pub use crate::system::object::IObjectMethods;
184 pub use crate::{
185 app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
186 system::object::IObject,
187 };
188}