Skip to main content

engage/generated/combat/
characteridlesmb.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characteridlesmb-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13            statemachinebehaviour::{IStateMachineBehaviour, StateMachineBehaviour},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characteridlesmb/CharacterIdleSMB.md"))]
18    #[::unity::class(namespace = "Combat", name = "CharacterIdleSMB")]
19    #[parent(crate::unity_engine::statemachinebehaviour::StateMachineBehaviour)]
20    pub struct CharacterIdleSMB {
21        #[offset(24)]
22        #[rename(name = "initialized")]
23        pub initialized: bool,
24        #[offset(25)]
25        #[rename(name = "available")]
26        pub available: bool,
27        #[offset(32)]
28        #[rename(name = "CP")]
29        pub cp: crate::combat::character::Character,
30        #[offset(40)]
31        #[rename(name = "GS")]
32        pub gs: crate::combat::charactergamestatus::CharacterGameStatus,
33        #[offset(48)]
34        #[rename(name = "TransitionCurve")]
35        pub transition_curve: crate::unity_engine::animationcurve::AnimationCurve,
36        #[offset(56)]
37        #[rename(name = "m_Elapsed")]
38        pub m_elapsed: f32,
39    }
40}
41
42#[cfg(feature = "combat-characteridlesmb-types")]
43pub use __types::*;
44
45#[cfg(feature = "combat-characteridlesmb")]
46pub trait ICharacterIdleSMBMethods: ICharacterIdleSMB {
47    #[doc = "`OnStateEnter(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32)` overload"]
48    fn on_state_enter(
49        self,
50        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
51        state_info: impl ::core::convert::Into<crate::unity_engine::animatorstateinfo::AnimatorStateInfo>,
52        layer_index: impl ::core::convert::Into<i32>,
53    ) -> () {
54        unsafe {
55            let __receiver = <CharacterIdleSMB as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            {
57                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
59                    panic!(
60                        "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65                        4usize,
66                        __vt.len(),
67                        <CharacterIdleSMB as ::unity::ClassIdentity>::NAME,
68                        "OnStateEnter",
69                    )
70                });
71                let __inner: extern "C" fn(
72                    CharacterIdleSMB,
73                    crate::unity_engine::animator::Animator,
74                    crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
75                    i32,
76                    ::unity::OptionalMethod,
77                ) -> () = ::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(
80                    __receiver,
81                    ::core::convert::Into::into(animator),
82                    ::core::convert::Into::into(state_info),
83                    ::core::convert::Into::into(layer_index),
84                    __mi,
85                )
86            }
87        }
88    }
89    #[doc = "`OnStateUpdate(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32)` overload"]
90    fn on_state_update(
91        self,
92        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
93        state_info: impl ::core::convert::Into<crate::unity_engine::animatorstateinfo::AnimatorStateInfo>,
94        layer_index: impl ::core::convert::Into<i32>,
95    ) -> () {
96        unsafe {
97            let __receiver = <CharacterIdleSMB as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            {
99                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
101                    panic!(
102                        "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107                        5usize,
108                        __vt.len(),
109                        <CharacterIdleSMB as ::unity::ClassIdentity>::NAME,
110                        "OnStateUpdate",
111                    )
112                });
113                let __inner: extern "C" fn(
114                    CharacterIdleSMB,
115                    crate::unity_engine::animator::Animator,
116                    crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
117                    i32,
118                    ::unity::OptionalMethod,
119                ) -> () = ::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(
122                    __receiver,
123                    ::core::convert::Into::into(animator),
124                    ::core::convert::Into::into(state_info),
125                    ::core::convert::Into::into(layer_index),
126                    __mi,
127                )
128            }
129        }
130    }
131    #[doc = "`OnStateExit(crate::unity_engine::animator::Animator, crate::unity_engine::animatorstateinfo::AnimatorStateInfo, i32)` overload"]
132    fn on_state_exit(
133        self,
134        animator: impl ::core::convert::Into<crate::unity_engine::animator::Animator>,
135        state_info: impl ::core::convert::Into<crate::unity_engine::animatorstateinfo::AnimatorStateInfo>,
136        layer_index: impl ::core::convert::Into<i32>,
137    ) -> () {
138        unsafe {
139            let __receiver = <CharacterIdleSMB 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(6usize).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                        6usize,
150                        __vt.len(),
151                        <CharacterIdleSMB as ::unity::ClassIdentity>::NAME,
152                        "OnStateExit",
153                    )
154                });
155                let __inner: extern "C" fn(
156                    CharacterIdleSMB,
157                    crate::unity_engine::animator::Animator,
158                    crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
159                    i32,
160                    ::unity::OptionalMethod,
161                ) -> () = ::core::mem::transmute(__vi.method_ptr);
162                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
163                __inner(
164                    __receiver,
165                    ::core::convert::Into::into(animator),
166                    ::core::convert::Into::into(state_info),
167                    ::core::convert::Into::into(layer_index),
168                    __mi,
169                )
170            }
171        }
172    }
173    #[doc = "`SetDying(f32)` overload"]
174    fn set_dying(self, overwrite: impl ::core::convert::Into<f32>) -> () {
175        unsafe {
176            let __receiver = <CharacterIdleSMB as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x27e6e10usize)as*mut u8,();
178(CharacterIdleSMB)__receiver,(f32)::core::convert::Into::into(overwrite))
179        }
180    }
181    #[doc = "`ForceDying()` overload"]
182    fn force_dying(self) -> () {
183        unsafe {
184            let __receiver = <CharacterIdleSMB as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x27e6fb0usize)as*mut u8,();
186(CharacterIdleSMB)__receiver)
187        }
188    }
189    #[doc = "`.ctor()` overload"]
190    fn ctor(self) -> () {
191        unsafe {
192            let __receiver = <CharacterIdleSMB as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x27e6fd0usize)as*mut u8,();
194(CharacterIdleSMB)__receiver)
195        }
196    }
197}
198
199#[cfg(feature = "combat-characteridlesmb")]
200impl<__T: ICharacterIdleSMB> ICharacterIdleSMBMethods for __T {}
201
202#[cfg(feature = "combat-characteridlesmb")]
203impl CharacterIdleSMB {
204    pub fn on_state_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
206    }
207
208    pub fn on_state_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
210    }
211
212    pub fn on_state_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
214    }
215
216    pub fn set_dying_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
218    }
219
220    pub fn force_dying_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
222    }
223
224    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
226    }
227}
228
229#[cfg(feature = "combat-characteridlesmb")]
230impl CharacterIdleSMB {
231    #[doc = "Direct (non-virtual) call to `CharacterIdleSMB`'s own `OnStateEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232    pub unsafe fn on_state_enter(
233        this: impl ::core::convert::Into<::unity::IlInstance>,
234        animator: crate::unity_engine::animator::Animator,
235        state_info: crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
236        layer_index: i32,
237    ) -> () {
238        let __mi = Self::on_state_enter_method_info();
239        let __inner: extern "C" fn(
240            ::unity::IlInstance,
241            crate::unity_engine::animator::Animator,
242            crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
243            i32,
244            ::unity::OptionalMethod,
245        ) -> () = ::core::mem::transmute(__mi.method_ptr);
246        __inner(this.into(), animator, state_info, layer_index, ::core::option::Option::None)
247    }
248
249    #[doc = "Direct (non-virtual) call to `CharacterIdleSMB`'s own `OnStateUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250    pub unsafe fn on_state_update(
251        this: impl ::core::convert::Into<::unity::IlInstance>,
252        animator: crate::unity_engine::animator::Animator,
253        state_info: crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
254        layer_index: i32,
255    ) -> () {
256        let __mi = Self::on_state_update_method_info();
257        let __inner: extern "C" fn(
258            ::unity::IlInstance,
259            crate::unity_engine::animator::Animator,
260            crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
261            i32,
262            ::unity::OptionalMethod,
263        ) -> () = ::core::mem::transmute(__mi.method_ptr);
264        __inner(this.into(), animator, state_info, layer_index, ::core::option::Option::None)
265    }
266
267    #[doc = "Direct (non-virtual) call to `CharacterIdleSMB`'s own `OnStateExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
268    pub unsafe fn on_state_exit(
269        this: impl ::core::convert::Into<::unity::IlInstance>,
270        animator: crate::unity_engine::animator::Animator,
271        state_info: crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
272        layer_index: i32,
273    ) -> () {
274        let __mi = Self::on_state_exit_method_info();
275        let __inner: extern "C" fn(
276            ::unity::IlInstance,
277            crate::unity_engine::animator::Animator,
278            crate::unity_engine::animatorstateinfo::AnimatorStateInfo,
279            i32,
280            ::unity::OptionalMethod,
281        ) -> () = ::core::mem::transmute(__mi.method_ptr);
282        __inner(this.into(), animator, state_info, layer_index, ::core::option::Option::None)
283    }
284}
285
286#[cfg(feature = "combat-characteridlesmb")]
287impl CharacterIdleSMB {
288    #[doc = "`.ctor()` — no args"]
289    pub fn new() -> Self {
290        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
291            panic!(
292                "{}
293::{}
294 failed to instantiate",
295                ::core::stringify!(CharacterIdleSMB),
296                ::core::stringify!(new),
297            )
298        });
299        <Self as ICharacterIdleSMBMethods>::ctor(this);
300        this
301    }
302}
303
304#[cfg(feature = "combat-characteridlesmb")]
305#[doc(hidden)]
306pub mod prelude {
307    pub use super::{CharacterIdleSMB, ICharacterIdleSMB, ICharacterIdleSMBMethods};
308    #[cfg(feature = "system-object")]
309    pub use crate::system::object::IObjectMethods;
310    #[cfg(feature = "unity_engine-object_2")]
311    pub use crate::unity_engine::object_2::IObject_2Methods;
312    #[cfg(feature = "unity_engine-scriptableobject")]
313    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
314    #[cfg(feature = "unity_engine-statemachinebehaviour")]
315    pub use crate::unity_engine::statemachinebehaviour::IStateMachineBehaviourMethods;
316    pub use crate::{
317        system::object::IObject,
318        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject, statemachinebehaviour::IStateMachineBehaviour},
319    };
320}