Skip to main content

engage/generated/combat/
state.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-state-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/state/State.md"))]
11    #[::unity::class(namespace = "Combat", name = "State")]
12    #[parent(crate::system::object::Object)]
13    pub struct State {
14        #[offset(16)]
15        #[rename(name = "progress")]
16        pub progress: crate::combat::stateprogress::StateProgress,
17    }
18}
19
20#[cfg(feature = "combat-state-types")]
21pub use __types::*;
22
23#[cfg(feature = "combat-state")]
24pub trait IStateMethods: IState {
25    #[doc = "`get_Name()` overload"]
26    fn get_name(self) -> ::unity::Il2CppString {
27        unsafe {
28            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            {
30                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
31                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
32                    panic!(
33                        "unity: virtual slot {}
34 out of range (vtable len {}
35) on the runtime class behind {}
36 (method `{}
37`)",
38                        5usize,
39                        __vt.len(),
40                        <State as ::unity::ClassIdentity>::NAME,
41                        "get_Name",
42                    )
43                });
44                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
45                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
46                __inner(__receiver, __mi)
47            }
48        }
49    }
50    #[doc = "`.ctor()` overload"]
51    fn ctor(self) -> () {
52        unsafe {
53            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x2502a90usize)as*mut u8,();
55(State)__receiver)
56        }
57    }
58    #[doc = "`OnEnter()` overload"]
59    fn on_enter(self) -> () {
60        unsafe {
61            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            {
63                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
65                    panic!(
66                        "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71                        6usize,
72                        __vt.len(),
73                        <State as ::unity::ClassIdentity>::NAME,
74                        "OnEnter",
75                    )
76                });
77                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
78                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79                __inner(__receiver, __mi)
80            }
81        }
82    }
83    #[doc = "`OnUpdate()` overload"]
84    fn on_update(self) -> () {
85        unsafe {
86            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            {
88                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
90                    panic!(
91                        "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96                        7usize,
97                        __vt.len(),
98                        <State as ::unity::ClassIdentity>::NAME,
99                        "OnUpdate",
100                    )
101                });
102                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
103                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
104                __inner(__receiver, __mi)
105            }
106        }
107    }
108    #[doc = "`OnLateUpdate()` overload"]
109    fn on_late_update(self) -> () {
110        unsafe {
111            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            {
113                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
114                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
115                    panic!(
116                        "unity: virtual slot {}
117 out of range (vtable len {}
118) on the runtime class behind {}
119 (method `{}
120`)",
121                        8usize,
122                        __vt.len(),
123                        <State as ::unity::ClassIdentity>::NAME,
124                        "OnLateUpdate",
125                    )
126                });
127                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
128                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
129                __inner(__receiver, __mi)
130            }
131        }
132    }
133    #[doc = "`OnExit()` overload"]
134    fn on_exit(self) -> () {
135        unsafe {
136            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            {
138                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
140                    panic!(
141                        "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146                        9usize,
147                        __vt.len(),
148                        <State as ::unity::ClassIdentity>::NAME,
149                        "OnExit",
150                    )
151                });
152                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
153                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154                __inner(__receiver, __mi)
155            }
156        }
157    }
158    #[doc = "`Dispose()` overload"]
159    fn dispose(self) -> () {
160        unsafe {
161            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            {
163                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
164                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
165                    panic!(
166                        "unity: virtual slot {}
167 out of range (vtable len {}
168) on the runtime class behind {}
169 (method `{}
170`)",
171                        10usize,
172                        __vt.len(),
173                        <State as ::unity::ClassIdentity>::NAME,
174                        "Dispose",
175                    )
176                });
177                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
178                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
179                __inner(__receiver, __mi)
180            }
181        }
182    }
183    #[doc = "`Exit()` overload"]
184    fn exit(self) -> () {
185        unsafe {
186            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x2502b10usize)as*mut u8,();
188(State)__receiver)
189        }
190    }
191    #[doc = "`get_AbortByInterrupt()` overload"]
192    fn get_abort_by_interrupt(self) -> bool {
193        unsafe {
194            let __receiver = <State as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            {
196                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
197                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
198                    panic!(
199                        "unity: virtual slot {}
200 out of range (vtable len {}
201) on the runtime class behind {}
202 (method `{}
203`)",
204                        11usize,
205                        __vt.len(),
206                        <State as ::unity::ClassIdentity>::NAME,
207                        "get_AbortByInterrupt",
208                    )
209                });
210                let __inner: extern "C" fn(State, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
211                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
212                __inner(__receiver, __mi)
213            }
214        }
215    }
216}
217
218#[cfg(feature = "combat-state")]
219impl<__T: IState> IStateMethods for __T {}
220
221#[cfg(feature = "combat-state")]
222impl State {
223    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
225    }
226
227    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
229    }
230
231    pub fn on_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
233    }
234
235    pub fn on_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
237    }
238
239    pub fn on_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
241    }
242
243    pub fn on_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
245    }
246
247    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
249    }
250
251    pub fn exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
253    }
254
255    pub fn get_abort_by_interrupt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
257    }
258}
259
260#[cfg(feature = "combat-state")]
261impl State {
262    #[doc = "Direct (non-virtual) call to `State`'s own `get_Name`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
263    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
264        let __mi = Self::get_name_method_info();
265        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
266        __inner(this.into(), ::core::option::Option::None)
267    }
268
269    #[doc = "Direct (non-virtual) call to `State`'s own `OnEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
270    pub unsafe fn on_enter(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
271        let __mi = Self::on_enter_method_info();
272        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
273        __inner(this.into(), ::core::option::Option::None)
274    }
275
276    #[doc = "Direct (non-virtual) call to `State`'s own `OnUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
277    pub unsafe fn on_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
278        let __mi = Self::on_update_method_info();
279        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
280        __inner(this.into(), ::core::option::Option::None)
281    }
282
283    #[doc = "Direct (non-virtual) call to `State`'s own `OnLateUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
284    pub unsafe fn on_late_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
285        let __mi = Self::on_late_update_method_info();
286        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
287        __inner(this.into(), ::core::option::Option::None)
288    }
289
290    #[doc = "Direct (non-virtual) call to `State`'s own `OnExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
291    pub unsafe fn on_exit(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
292        let __mi = Self::on_exit_method_info();
293        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
294        __inner(this.into(), ::core::option::Option::None)
295    }
296
297    #[doc = "Direct (non-virtual) call to `State`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
298    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
299        let __mi = Self::dispose_method_info();
300        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
301        __inner(this.into(), ::core::option::Option::None)
302    }
303
304    #[doc = "Direct (non-virtual) call to `State`'s own `get_AbortByInterrupt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
305    pub unsafe fn get_abort_by_interrupt(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
306        let __mi = Self::get_abort_by_interrupt_method_info();
307        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
308        __inner(this.into(), ::core::option::Option::None)
309    }
310}
311
312#[cfg(feature = "combat-state")]
313impl State {
314    #[doc = "`.ctor()` — no args"]
315    pub fn new() -> Self {
316        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
317            panic!(
318                "{}
319::{}
320 failed to instantiate",
321                ::core::stringify!(State),
322                ::core::stringify!(new),
323            )
324        });
325        <Self as IStateMethods>::ctor(this);
326        this
327    }
328}
329
330#[cfg(feature = "combat-state")]
331#[doc(hidden)]
332pub mod prelude {
333    pub use super::{IState, IStateMethods, State};
334    pub use crate::system::object::IObject;
335    #[cfg(feature = "system-object")]
336    pub use crate::system::object::IObjectMethods;
337}