Skip to main content

engage/generated/combat/
fsmbuilderengattack.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-fsmbuilderengattack-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::{
10            fsmbuilder::{FSMBuilder, IFSMBuilder},
11            fsmbuilderstandard::{FSMBuilderStandard, IFSMBuilderStandard},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/fsmbuilderengattack/FSMBuilderEngAttack.md"))]
17    #[::unity::class(namespace = "Combat", name = "FSMBuilderEngAttack")]
18    #[parent(crate::combat::fsmbuilderstandard::FSMBuilderStandard)]
19    pub struct FSMBuilderEngAttack {}
20}
21
22#[cfg(feature = "combat-fsmbuilderengattack-types")]
23pub use __types::*;
24
25#[cfg(feature = "combat-fsmbuilderengattack")]
26impl FSMBuilderEngAttack {
27    #[doc = "`MakeLastSituation()` overload"]
28    pub fn make_last_situation() -> () {
29        unsafe {
30            ::unity::il2cpp_call!((::unity::module_base()+0x2d499f0usize)as*mut u8,();
31            )
32        }
33    }
34}
35
36#[cfg(feature = "combat-fsmbuilderengattack")]
37pub trait IFSMBuilderEngAttackMethods: IFSMBuilderEngAttack {
38    #[doc = "`Build()` overload"]
39    fn build(self) -> () {
40        unsafe {
41            let __receiver = <FSMBuilderEngAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            {
43                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
44                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
45                    panic!(
46                        "unity: virtual slot {}
47 out of range (vtable len {}
48) on the runtime class behind {}
49 (method `{}
50`)",
51                        4usize,
52                        __vt.len(),
53                        <FSMBuilderEngAttack as ::unity::ClassIdentity>::NAME,
54                        "Build",
55                    )
56                });
57                let __inner: extern "C" fn(FSMBuilderEngAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
58                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
59                __inner(__receiver, __mi)
60            }
61        }
62    }
63    #[doc = "`BuildStart()` overload"]
64    fn build_start(self) -> () {
65        unsafe {
66            let __receiver = <FSMBuilderEngAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            {
68                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
69                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
70                    panic!(
71                        "unity: virtual slot {}
72 out of range (vtable len {}
73) on the runtime class behind {}
74 (method `{}
75`)",
76                        5usize,
77                        __vt.len(),
78                        <FSMBuilderEngAttack as ::unity::ClassIdentity>::NAME,
79                        "BuildStart",
80                    )
81                });
82                let __inner: extern "C" fn(FSMBuilderEngAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
83                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84                __inner(__receiver, __mi)
85            }
86        }
87    }
88    #[doc = "`BuildMain()` overload"]
89    fn build_main(self) -> () {
90        unsafe {
91            let __receiver = <FSMBuilderEngAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            {
93                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
95                    panic!(
96                        "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101                        6usize,
102                        __vt.len(),
103                        <FSMBuilderEngAttack as ::unity::ClassIdentity>::NAME,
104                        "BuildMain",
105                    )
106                });
107                let __inner: extern "C" fn(FSMBuilderEngAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
108                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109                __inner(__receiver, __mi)
110            }
111        }
112    }
113    #[doc = "`BuildAllForOne()` overload"]
114    fn build_all_for_one(self) -> () {
115        unsafe {
116            let __receiver = <FSMBuilderEngAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x2d489d0usize)as*mut u8,();
118(FSMBuilderEngAttack)__receiver)
119        }
120    }
121    #[doc = "`BuildEnd()` overload"]
122    fn build_end(self) -> () {
123        unsafe {
124            let __receiver = <FSMBuilderEngAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            {
126                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
128                    panic!(
129                        "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134                        7usize,
135                        __vt.len(),
136                        <FSMBuilderEngAttack as ::unity::ClassIdentity>::NAME,
137                        "BuildEnd",
138                    )
139                });
140                let __inner: extern "C" fn(FSMBuilderEngAttack, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
141                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
142                __inner(__receiver, __mi)
143            }
144        }
145    }
146    #[doc = "`.ctor()` overload"]
147    fn ctor(self) -> () {
148        unsafe {
149            let __receiver = <FSMBuilderEngAttack as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2d47870usize)as*mut u8,();
151(FSMBuilderEngAttack)__receiver)
152        }
153    }
154}
155
156#[cfg(feature = "combat-fsmbuilderengattack")]
157impl<__T: IFSMBuilderEngAttack> IFSMBuilderEngAttackMethods for __T {}
158
159#[cfg(feature = "combat-fsmbuilderengattack")]
160impl FSMBuilderEngAttack {
161    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
163    }
164
165    pub fn build_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
167    }
168
169    pub fn build_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
171    }
172
173    pub fn build_all_for_one_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
175    }
176
177    pub fn build_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
179    }
180
181    pub fn make_last_situation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
183    }
184
185    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
187    }
188}
189
190#[cfg(feature = "combat-fsmbuilderengattack")]
191impl FSMBuilderEngAttack {
192    #[doc = "Direct (non-virtual) call to `FSMBuilderEngAttack`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
193    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
194        let __mi = Self::build_method_info();
195        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
196        __inner(this.into(), ::core::option::Option::None)
197    }
198
199    #[doc = "Direct (non-virtual) call to `FSMBuilderEngAttack`'s own `BuildStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
200    pub unsafe fn build_start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
201        let __mi = Self::build_start_method_info();
202        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
203        __inner(this.into(), ::core::option::Option::None)
204    }
205
206    #[doc = "Direct (non-virtual) call to `FSMBuilderEngAttack`'s own `BuildMain`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
207    pub unsafe fn build_main(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
208        let __mi = Self::build_main_method_info();
209        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
210        __inner(this.into(), ::core::option::Option::None)
211    }
212
213    #[doc = "Direct (non-virtual) call to `FSMBuilderEngAttack`'s own `BuildEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
214    pub unsafe fn build_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
215        let __mi = Self::build_end_method_info();
216        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
217        __inner(this.into(), ::core::option::Option::None)
218    }
219}
220
221#[cfg(feature = "combat-fsmbuilderengattack")]
222impl FSMBuilderEngAttack {
223    #[doc = "`.ctor()` — no args"]
224    pub fn new() -> Self {
225        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
226            panic!(
227                "{}
228::{}
229 failed to instantiate",
230                ::core::stringify!(FSMBuilderEngAttack),
231                ::core::stringify!(new),
232            )
233        });
234        <Self as IFSMBuilderEngAttackMethods>::ctor(this);
235        this
236    }
237}
238
239#[cfg(feature = "combat-fsmbuilderengattack")]
240#[doc(hidden)]
241pub mod prelude {
242    pub use super::{FSMBuilderEngAttack, IFSMBuilderEngAttack, IFSMBuilderEngAttackMethods};
243    #[cfg(feature = "combat-fsmbuilder")]
244    pub use crate::combat::fsmbuilder::IFSMBuilderMethods;
245    #[cfg(feature = "combat-fsmbuilderstandard")]
246    pub use crate::combat::fsmbuilderstandard::IFSMBuilderStandardMethods;
247    #[cfg(feature = "system-object")]
248    pub use crate::system::object::IObjectMethods;
249    pub use crate::{
250        combat::{fsmbuilder::IFSMBuilder, fsmbuilderstandard::IFSMBuilderStandard},
251        system::object::IObject,
252    };
253}