Skip to main content

engage/generated/combat/
fsmbuilder.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-fsmbuilder-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/fsmbuilder/FSMBuilder.md"))]
11    #[::unity::class(namespace = "Combat", name = "FSMBuilder")]
12    #[parent(crate::system::object::Object)]
13    pub struct FSMBuilder {}
14}
15
16#[cfg(feature = "combat-fsmbuilder-types")]
17pub use __types::*;
18
19#[cfg(feature = "combat-fsmbuilder")]
20impl FSMBuilder {
21    #[doc = "`get_world()` overload"]
22    pub fn get_world() -> crate::combat::combatworld::CombatWorld {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x2d47110usize)as*mut u8,crate::combat::combatworld::CombatWorld;
25            )
26        }
27    }
28
29    #[doc = "`get_record()` overload"]
30    pub fn get_record() -> crate::combat::combatrecord::CombatRecord {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x2d47120usize)as*mut u8,crate::combat::combatrecord::CombatRecord;
33            )
34        }
35    }
36
37    #[doc = "`get_chrs()` overload"]
38    pub fn get_chrs() -> ::unity::Array<crate::combat::character::Character> {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x2d47140usize)as*mut u8, ::unity::Array<crate::combat::character::Character> ;
41            )
42        }
43    }
44
45    #[doc = "`get_cam()` overload"]
46    pub fn get_cam() -> crate::combat::cameramanager::CameraManager {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2d47160usize)as*mut u8,crate::combat::cameramanager::CameraManager;
49            )
50        }
51    }
52
53    #[doc = "`get_style()` overload"]
54    pub fn get_style() -> crate::combat::combatstyle::CombatStyle {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2d471e0usize)as*mut u8,crate::combat::combatstyle::CombatStyle;
57            )
58        }
59    }
60
61    #[doc = "`get_anyone()` overload"]
62    pub fn get_anyone() -> crate::combat::character::Character {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2d47220usize)as*mut u8,crate::combat::character::Character;
65            )
66        }
67    }
68
69    #[doc = "`get_FirstAttackPhase()` overload"]
70    pub fn get_first_attack_phase() -> crate::combat::phase::Phase {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2d472e0usize)as*mut u8,crate::combat::phase::Phase;
73            )
74        }
75    }
76
77    #[doc = "`get_FirstAttacker()` overload"]
78    pub fn get_first_attacker() -> crate::combat::character::Character {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x2d47450usize)as*mut u8,crate::combat::character::Character;
81            )
82        }
83    }
84
85    #[doc = "`PreLoad()` overload"]
86    pub fn pre_load() -> () {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x2d474c0usize)as*mut u8,();
89            )
90        }
91    }
92
93    #[doc = "`CreateAndRun()` overload"]
94    pub fn create_and_run() -> crate::combat::fsmbuilder::FSMBuilder {
95        unsafe {
96            ::unity::il2cpp_call!((::unity::module_base()+0x2d47700usize)as*mut u8,crate::combat::fsmbuilder::FSMBuilder;
97            )
98        }
99    }
100
101    #[doc = "`RunEternalCombatAppendObserver()` overload"]
102    pub fn run_eternal_combat_append_observer() -> () {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x2d47a70usize)as*mut u8,();
105            )
106        }
107    }
108
109    #[doc = "`FSMAdd_WaitForTransitionCamera(f32)` overload"]
110    pub fn fsm_add_wait_for_transition_camera(rate: impl ::core::convert::Into<f32>) -> () {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x2d47bb0usize)as*mut u8,();
113(f32)::core::convert::Into::into(rate))
114        }
115    }
116
117    #[doc = "`ActionWairForTransitionCamera(f32)` overload"]
118    pub fn action_wair_for_transition_camera(rate: impl ::core::convert::Into<f32>) -> crate::combat::actionbase::ActionBase {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x2d47d70usize)as*mut u8,crate::combat::actionbase::ActionBase;
121(f32)::core::convert::Into::into(rate))
122        }
123    }
124
125    #[doc = "`FSMAdd_SyncEveryone(bool)` overload"]
126    pub fn fsm_add_sync_everyone(include_grandew: impl ::core::convert::Into<bool>) -> () {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x2d47e70usize)as*mut u8,();
129(bool)::core::convert::Into::into(include_grandew))
130        }
131    }
132}
133
134#[cfg(feature = "combat-fsmbuilder")]
135pub trait IFSMBuilderMethods: IFSMBuilder {
136    #[doc = "`Build()` overload"]
137    fn build(self) -> () {
138        unsafe {
139            let __receiver = <FSMBuilder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        4usize,
150                        __vt.len(),
151                        <FSMBuilder as ::unity::ClassIdentity>::NAME,
152                        "Build",
153                    )
154                });
155                let __inner: extern "C" fn(FSMBuilder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
156                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
157                __inner(__receiver, __mi)
158            }
159        }
160    }
161    #[doc = "`BuildStart()` overload"]
162    fn build_start(self) -> () {
163        unsafe {
164            let __receiver = <FSMBuilder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            {
166                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
167                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
168                    panic!(
169                        "unity: virtual slot {}
170 out of range (vtable len {}
171) on the runtime class behind {}
172 (method `{}
173`)",
174                        5usize,
175                        __vt.len(),
176                        <FSMBuilder as ::unity::ClassIdentity>::NAME,
177                        "BuildStart",
178                    )
179                });
180                let __inner: extern "C" fn(FSMBuilder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
181                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
182                __inner(__receiver, __mi)
183            }
184        }
185    }
186    #[doc = "`BuildMain()` overload"]
187    fn build_main(self) -> () {
188        unsafe {
189            let __receiver = <FSMBuilder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            {
191                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
192                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
193                    panic!(
194                        "unity: virtual slot {}
195 out of range (vtable len {}
196) on the runtime class behind {}
197 (method `{}
198`)",
199                        6usize,
200                        __vt.len(),
201                        <FSMBuilder as ::unity::ClassIdentity>::NAME,
202                        "BuildMain",
203                    )
204                });
205                let __inner: extern "C" fn(FSMBuilder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
206                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
207                __inner(__receiver, __mi)
208            }
209        }
210    }
211    #[doc = "`BuildEnd()` overload"]
212    fn build_end(self) -> () {
213        unsafe {
214            let __receiver = <FSMBuilder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            {
216                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
217                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
218                    panic!(
219                        "unity: virtual slot {}
220 out of range (vtable len {}
221) on the runtime class behind {}
222 (method `{}
223`)",
224                        7usize,
225                        __vt.len(),
226                        <FSMBuilder as ::unity::ClassIdentity>::NAME,
227                        "BuildEnd",
228                    )
229                });
230                let __inner: extern "C" fn(FSMBuilder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
231                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
232                __inner(__receiver, __mi)
233            }
234        }
235    }
236    #[doc = "`BuildSkipover()` overload"]
237    fn build_skipover(self) -> () {
238        unsafe {
239            let __receiver = <FSMBuilder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            {
241                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
242                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
243                    panic!(
244                        "unity: virtual slot {}
245 out of range (vtable len {}
246) on the runtime class behind {}
247 (method `{}
248`)",
249                        8usize,
250                        __vt.len(),
251                        <FSMBuilder as ::unity::ClassIdentity>::NAME,
252                        "BuildSkipover",
253                    )
254                });
255                let __inner: extern "C" fn(FSMBuilder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
256                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
257                __inner(__receiver, __mi)
258            }
259        }
260    }
261    #[doc = "`.ctor()` overload"]
262    fn ctor(self) -> () {
263        unsafe {
264            let __receiver = <FSMBuilder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            ::unity::il2cpp_call!((::unity::module_base()+0x2d48320usize)as*mut u8,();
266(FSMBuilder)__receiver)
267        }
268    }
269}
270
271#[cfg(feature = "combat-fsmbuilder")]
272impl<__T: IFSMBuilder> IFSMBuilderMethods for __T {}
273
274#[cfg(feature = "combat-fsmbuilder")]
275impl FSMBuilder {
276    pub fn get_world_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
278    }
279
280    pub fn get_record_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
282    }
283
284    pub fn get_chrs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
286    }
287
288    pub fn get_cam_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
290    }
291
292    pub fn get_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
294    }
295
296    pub fn get_anyone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
298    }
299
300    pub fn get_first_attack_phase_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
302    }
303
304    pub fn get_first_attacker_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
306    }
307
308    pub fn pre_load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
310    }
311
312    pub fn create_and_run_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
314    }
315
316    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
318    }
319
320    pub fn build_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
322    }
323
324    pub fn build_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
326    }
327
328    pub fn build_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
330    }
331
332    pub fn build_skipover_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
334    }
335
336    pub fn run_eternal_combat_append_observer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
338    }
339
340    pub fn fsm_add_wait_for_transition_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
342    }
343
344    pub fn action_wair_for_transition_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
346    }
347
348    pub fn fsm_add_sync_everyone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
350    }
351
352    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
354    }
355}
356
357#[cfg(feature = "combat-fsmbuilder")]
358impl FSMBuilder {
359    #[doc = "Direct (non-virtual) call to `FSMBuilder`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
360    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
361        let __mi = Self::build_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    #[doc = "Direct (non-virtual) call to `FSMBuilder`'s own `BuildStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
367    pub unsafe fn build_start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
368        let __mi = Self::build_start_method_info();
369        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
370        __inner(this.into(), ::core::option::Option::None)
371    }
372
373    #[doc = "Direct (non-virtual) call to `FSMBuilder`'s own `BuildMain`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374    pub unsafe fn build_main(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
375        let __mi = Self::build_main_method_info();
376        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
377        __inner(this.into(), ::core::option::Option::None)
378    }
379
380    #[doc = "Direct (non-virtual) call to `FSMBuilder`'s own `BuildEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
381    pub unsafe fn build_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
382        let __mi = Self::build_end_method_info();
383        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
384        __inner(this.into(), ::core::option::Option::None)
385    }
386
387    #[doc = "Direct (non-virtual) call to `FSMBuilder`'s own `BuildSkipover`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
388    pub unsafe fn build_skipover(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
389        let __mi = Self::build_skipover_method_info();
390        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
391        __inner(this.into(), ::core::option::Option::None)
392    }
393}
394
395#[cfg(feature = "combat-fsmbuilder")]
396impl FSMBuilder {
397    #[doc = "`.ctor()` — no args"]
398    pub fn new() -> Self {
399        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
400            panic!(
401                "{}
402::{}
403 failed to instantiate",
404                ::core::stringify!(FSMBuilder),
405                ::core::stringify!(new),
406            )
407        });
408        <Self as IFSMBuilderMethods>::ctor(this);
409        this
410    }
411}
412
413#[cfg(feature = "combat-fsmbuilder")]
414#[doc(hidden)]
415pub mod prelude {
416    pub use super::{FSMBuilder, IFSMBuilder, IFSMBuilderMethods};
417    pub use crate::system::object::IObject;
418    #[cfg(feature = "system-object")]
419    pub use crate::system::object::IObjectMethods;
420}