engage/generated/app/
mapsequencereplay.rs1#[cfg(feature = "app-mapsequencereplay-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::{
14 object::{IObject, Object},
15 r#enum::{Enum, IEnum},
16 valuetype::{IValueType, ValueType},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapsequencereplay/MapSequenceReplay.md"))]
21 #[::unity::class(namespace = "App", name = "MapSequenceReplay")]
22 #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::mapsequencereplay::MapSequenceReplay>)]
23 pub struct MapSequenceReplay {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mapsequencereplay/MapSequenceReplay_Label.md"))]
26 #[repr(C)]
27 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
28 pub struct MapSequenceReplay_Label {
29 pub value: i32,
30 }
31 impl ::unity::ClassIdentity for MapSequenceReplay_Label {
32 const NAME: &'static str = "MapSequenceReplay.Label";
33 const NAMESPACE: &'static str = "App";
34
35 fn class() -> ::unity::Class {
36 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
37 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
38 }
39 }
40 impl ::unity::IlType for MapSequenceReplay_Label {
41 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
42 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
43 }
44 }
45 impl MapSequenceReplay_Label {
46 pub fn read() -> Self {
47 Self { value: 0 }
48 }
49
50 pub fn mind() -> Self {
51 Self { value: 1 }
52 }
53
54 pub fn engage_start() -> Self {
55 Self { value: 2 }
56 }
57
58 pub fn engage_link() -> Self {
59 Self { value: 3 }
60 }
61
62 pub fn engage_rewarp() -> Self {
63 Self { value: 4 }
64 }
65
66 pub fn god_change() -> Self {
67 Self { value: 5 }
68 }
69
70 pub fn surrender() -> Self {
71 Self { value: 6 }
72 }
73
74 pub fn cancel() -> Self {
75 Self { value: 7 }
76 }
77
78 pub fn end() -> Self {
79 Self { value: 8 }
80 }
81 }
82}
83
84#[cfg(feature = "app-mapsequencereplay-types")]
85pub use __types::*;
86
87#[cfg(feature = "app-mapsequencereplay")]
88impl MapSequenceReplay {
89 #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
90 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
91 unsafe {
92 ::unity::il2cpp_call!((::unity::module_base()+0x1f30940usize)as*mut u8,();
93(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
94 }
95 }
96}
97
98#[cfg(feature = "app-mapsequencereplay")]
99pub trait IMapSequenceReplayMethods: IMapSequenceReplay {
100 #[doc = "`OnCreate()` overload"]
101 fn on_create(self) -> () {
102 unsafe {
103 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 {
105 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
106 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
107 panic!(
108 "unity: virtual slot {}
109 out of range (vtable len {}
110) on the runtime class behind {}
111 (method `{}
112`)",
113 9usize,
114 __vt.len(),
115 <MapSequenceReplay as ::unity::ClassIdentity>::NAME,
116 "OnCreate",
117 )
118 });
119 let __inner: extern "C" fn(MapSequenceReplay, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
120 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
121 __inner(__receiver, __mi)
122 }
123 }
124 }
125 #[doc = "`OnDispose()` overload"]
126 fn on_dispose(self) -> () {
127 unsafe {
128 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 {
130 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
131 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
132 panic!(
133 "unity: virtual slot {}
134 out of range (vtable len {}
135) on the runtime class behind {}
136 (method `{}
137`)",
138 10usize,
139 __vt.len(),
140 <MapSequenceReplay as ::unity::ClassIdentity>::NAME,
141 "OnDispose",
142 )
143 });
144 let __inner: extern "C" fn(MapSequenceReplay, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
145 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
146 __inner(__receiver, __mi)
147 }
148 }
149 }
150 #[doc = "`OnPersistent()` overload"]
151 fn on_persistent(self) -> () {
152 unsafe {
153 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 {
155 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
156 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
157 panic!(
158 "unity: virtual slot {}
159 out of range (vtable len {}
160) on the runtime class behind {}
161 (method `{}
162`)",
163 8usize,
164 __vt.len(),
165 <MapSequenceReplay as ::unity::ClassIdentity>::NAME,
166 "OnPersistent",
167 )
168 });
169 let __inner: extern "C" fn(MapSequenceReplay, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
170 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171 __inner(__receiver, __mi)
172 }
173 }
174 }
175 #[doc = "`Read()` overload"]
176 fn read(self) -> () {
177 unsafe {
178 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x1f2fb30usize)as*mut u8,();
180(MapSequenceReplay)__receiver)
181 }
182 }
183 #[doc = "`Focus()` overload"]
184 fn focus(self) -> () {
185 unsafe {
186 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x1f2fee0usize)as*mut u8,();
188(MapSequenceReplay)__receiver)
189 }
190 }
191 #[doc = "`MindTypeBranch()` overload"]
192 fn mind_type_branch(self) -> () {
193 unsafe {
194 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x1f2ffb0usize)as*mut u8,();
196(MapSequenceReplay)__receiver)
197 }
198 }
199 #[doc = "`PrepareEngageRewarp()` overload"]
200 fn prepare_engage_rewarp(self) -> () {
201 unsafe {
202 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x1f300c0usize)as*mut u8,();
204(MapSequenceReplay)__receiver)
205 }
206 }
207 #[doc = "`Mind()` overload"]
208 fn mind(self) -> () {
209 unsafe {
210 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x1f301a0usize)as*mut u8,();
212(MapSequenceReplay)__receiver)
213 }
214 }
215 #[doc = "`Surrender()` overload"]
216 fn surrender(self) -> () {
217 unsafe {
218 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x1f302a0usize)as*mut u8,();
220(MapSequenceReplay)__receiver)
221 }
222 }
223 #[doc = "`GameEndBranch()` overload"]
224 fn game_end_branch(self) -> () {
225 unsafe {
226 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227 ::unity::il2cpp_call!((::unity::module_base()+0x1f30470usize)as*mut u8,();
228(MapSequenceReplay)__receiver)
229 }
230 }
231 #[doc = "`CheckCancelInput()` overload"]
232 fn check_cancel_input(self) -> () {
233 unsafe {
234 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x1f2f8f0usize)as*mut u8,();
236(MapSequenceReplay)__receiver)
237 }
238 }
239 #[doc = "`CheckCancel()` overload"]
240 fn check_cancel(self) -> bool {
241 unsafe {
242 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x1f2fbd0usize)as*mut u8,bool;
244(MapSequenceReplay)__receiver)
245 }
246 }
247 #[doc = "`Cancel()` overload"]
248 fn cancel(self) -> () {
249 unsafe {
250 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x1f30930usize)as*mut u8,();
252(MapSequenceReplay)__receiver)
253 }
254 }
255 #[doc = "`FinishReplay()` overload"]
256 fn finish_replay(self) -> () {
257 unsafe {
258 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!((::unity::module_base()+0x1f2fd40usize)as*mut u8,();
260(MapSequenceReplay)__receiver)
261 }
262 }
263 #[doc = "`.ctor()` overload"]
264 fn ctor(self) -> () {
265 unsafe {
266 let __receiver = <MapSequenceReplay as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x1f31760usize)as*mut u8,();
268(MapSequenceReplay)__receiver)
269 }
270 }
271}
272
273#[cfg(feature = "app-mapsequencereplay")]
274impl<__T: IMapSequenceReplay> IMapSequenceReplayMethods for __T {}
275
276#[cfg(feature = "app-mapsequencereplay")]
277impl MapSequenceReplay {
278 pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
280 }
281
282 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
284 }
285
286 pub fn on_persistent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
288 }
289
290 pub fn read_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
292 }
293
294 pub fn focus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
296 }
297
298 pub fn mind_type_branch_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
300 }
301
302 pub fn prepare_engage_rewarp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
304 }
305
306 pub fn mind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
308 }
309
310 pub fn surrender_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
312 }
313
314 pub fn game_end_branch_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
316 }
317
318 pub fn check_cancel_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
320 }
321
322 pub fn check_cancel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
324 }
325
326 pub fn cancel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
328 }
329
330 pub fn finish_replay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
332 }
333
334 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
336 }
337
338 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
340 }
341}
342
343#[cfg(feature = "app-mapsequencereplay")]
344impl MapSequenceReplay {
345 #[doc = "Direct (non-virtual) call to `MapSequenceReplay`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
346 pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
347 let __mi = Self::on_create_method_info();
348 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
349 __inner(this.into(), ::core::option::Option::None)
350 }
351
352 #[doc = "Direct (non-virtual) call to `MapSequenceReplay`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
353 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
354 let __mi = Self::on_dispose_method_info();
355 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
356 __inner(this.into(), ::core::option::Option::None)
357 }
358
359 #[doc = "Direct (non-virtual) call to `MapSequenceReplay`'s own `OnPersistent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
360 pub unsafe fn on_persistent(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
361 let __mi = Self::on_persistent_method_info();
362 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
363 __inner(this.into(), ::core::option::Option::None)
364 }
365}
366
367#[cfg(feature = "app-mapsequencereplay")]
368impl MapSequenceReplay {
369 #[doc = "`.ctor()` — no args"]
370 pub fn new() -> Self {
371 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
372 panic!(
373 "{}
374::{}
375 failed to instantiate",
376 ::core::stringify!(MapSequenceReplay),
377 ::core::stringify!(new),
378 )
379 });
380 <Self as IMapSequenceReplayMethods>::ctor(this);
381 this
382 }
383}
384
385#[cfg(feature = "app-mapsequencereplay")]
386#[doc(hidden)]
387pub mod prelude {
388 pub use super::{IMapSequenceReplay, IMapSequenceReplayMethods, MapSequenceReplay, MapSequenceReplay_Label};
389 #[cfg(feature = "app-procinst")]
390 pub use crate::app::procinst::IProcInstMethods;
391 #[cfg(feature = "app-singletonprocinst_1")]
392 pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
393 #[cfg(feature = "system-object")]
394 pub use crate::system::object::IObjectMethods;
395 #[cfg(feature = "system-enum")]
396 pub use crate::system::r#enum::IEnumMethods;
397 #[cfg(feature = "system-valuetype")]
398 pub use crate::system::valuetype::IValueTypeMethods;
399 pub use crate::{
400 app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
401 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
402 };
403}