Skip to main content

engage/generated/combat/
characterlyingpegasus.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterlyingpegasus-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::characterlying::{CharacterLying, ICharacterLying},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterlyingpegasus/CharacterLyingPegasus.md"))]
20    #[::unity::class(namespace = "Combat", name = "CharacterLyingPegasus")]
21    #[parent(crate::combat::characterlying::CharacterLying)]
22    pub struct CharacterLyingPegasus {
23        #[offset(33)]
24        #[rename(name = "m_WasHumanLanded")]
25        pub m_was_human_landed: bool,
26        #[offset(34)]
27        #[rename(name = "m_WasRideLanded")]
28        pub m_was_ride_landed: bool,
29        #[offset(36)]
30        #[rename(name = "m_HumanOrient")]
31        pub m_human_orient: crate::combat::tr::TR,
32        #[offset(64)]
33        #[rename(name = "m_RideOrient")]
34        pub m_ride_orient: crate::combat::tr::TR,
35        #[offset(92)]
36        #[rename(name = "m_SkipFrames")]
37        pub m_skip_frames: i32,
38        #[offset(96)]
39        #[rename(name = "m_RidePushedLocalRotation")]
40        pub m_ride_pushed_local_rotation: crate::unity_engine::quaternion::Quaternion,
41        #[offset(112)]
42        #[rename(name = "m_IsCollide")]
43        pub m_is_collide: bool,
44        #[offset(116)]
45        #[rename(name = "m_LastSafetyCTransXZ")]
46        pub m_last_safety_c_trans_xz: crate::combat::fxz::FXZ,
47        #[offset(124)]
48        #[rename(name = "m_LastLookAtRideLoc")]
49        pub m_last_look_at_ride_loc: crate::combat::fxz::FXZ,
50        #[offset(136)]
51        #[rename(name = "c_hip_ride_jnt")]
52        pub c_hip_ride_jnt: crate::unity_engine::transform::Transform,
53    }
54}
55
56#[cfg(feature = "combat-characterlyingpegasus-types")]
57pub use __types::*;
58
59#[cfg(feature = "combat-characterlyingpegasus")]
60impl CharacterLyingPegasus {
61    #[doc = "`IsNeedToWork(crate::combat::character::Character)` overload"]
62    pub fn is_need_to_work(chr: impl ::core::convert::Into<crate::combat::character::Character>) -> bool {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x25e5060usize)as*mut u8,bool;
65(crate::combat::character::Character)::core::convert::Into::into(chr))
66        }
67    }
68
69    #[doc = "`GetGroundTR(*mutcrate::unity_engine::vector3::Vector3)` overload"]
70    pub fn get_ground_tr() -> (crate::combat::tr::TR, crate::unity_engine::vector3::Vector3) {
71        unsafe {
72            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
73            let __ret = {
74                ::unity::il2cpp_call!((::unity::module_base()+0x25e53f0usize)as*mut u8,crate::combat::tr::TR;
75(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr())
76            };
77            (__ret, __out_0.assume_init())
78        }
79    }
80
81    #[doc = "`GetGroundTR(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector4::Vector4)` overload"]
82    pub fn get_ground_tr_2() -> (
83        crate::combat::tr::TR,
84        crate::unity_engine::vector3::Vector3,
85        crate::unity_engine::vector4::Vector4,
86    ) {
87        unsafe {
88            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector3::Vector3>::uninit();
89            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::vector4::Vector4>::uninit();
90            let __ret = {
91                ::unity::il2cpp_call!((::unity::module_base()+0x25e5b10usize)as*mut u8,crate::combat::tr::TR;
92(*mut crate::unity_engine::vector3::Vector3)__out_0.as_mut_ptr(),(*mut crate::unity_engine::vector4::Vector4)__out_1.as_mut_ptr())
93            };
94            (__ret, __out_0.assume_init(), __out_1.assume_init())
95        }
96    }
97}
98
99#[cfg(feature = "combat-characterlyingpegasus")]
100pub trait ICharacterLyingPegasusMethods: ICharacterLyingPegasus {
101    #[doc = "`MyStart(i32)` overload"]
102    fn my_start(self, die_hash: impl ::core::convert::Into<i32>) -> () {
103        unsafe {
104            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            {
106                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
107                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
108                    panic!(
109                        "unity: virtual slot {}
110 out of range (vtable len {}
111) on the runtime class behind {}
112 (method `{}
113`)",
114                        4usize,
115                        __vt.len(),
116                        <CharacterLyingPegasus as ::unity::ClassIdentity>::NAME,
117                        "MyStart",
118                    )
119                });
120                let __inner: extern "C" fn(CharacterLyingPegasus, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, ::core::convert::Into::into(die_hash), __mi)
123            }
124        }
125    }
126    #[doc = "`MakeMyDeadPose()` overload"]
127    fn make_my_dead_pose(self) -> () {
128        unsafe {
129            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            {
131                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
132                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
133                    panic!(
134                        "unity: virtual slot {}
135 out of range (vtable len {}
136) on the runtime class behind {}
137 (method `{}
138`)",
139                        5usize,
140                        __vt.len(),
141                        <CharacterLyingPegasus as ::unity::ClassIdentity>::NAME,
142                        "MakeMyDeadPose",
143                    )
144                });
145                let __inner: extern "C" fn(CharacterLyingPegasus, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
146                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
147                __inner(__receiver, __mi)
148            }
149        }
150    }
151    #[doc = "`MyUpdate()` overload"]
152    fn my_update(self) -> () {
153        unsafe {
154            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            {
156                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
157                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
158                    panic!(
159                        "unity: virtual slot {}
160 out of range (vtable len {}
161) on the runtime class behind {}
162 (method `{}
163`)",
164                        6usize,
165                        __vt.len(),
166                        <CharacterLyingPegasus as ::unity::ClassIdentity>::NAME,
167                        "MyUpdate",
168                    )
169                });
170                let __inner: extern "C" fn(CharacterLyingPegasus, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
171                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172                __inner(__receiver, __mi)
173            }
174        }
175    }
176    #[doc = "`MyLateUpdate()` overload"]
177    fn my_late_update(self) -> () {
178        unsafe {
179            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            {
181                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
183                    panic!(
184                        "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189                        7usize,
190                        __vt.len(),
191                        <CharacterLyingPegasus as ::unity::ClassIdentity>::NAME,
192                        "MyLateUpdate",
193                    )
194                });
195                let __inner: extern "C" fn(CharacterLyingPegasus, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
196                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197                __inner(__receiver, __mi)
198            }
199        }
200    }
201    #[doc = "`OnLandHuman()` overload"]
202    fn on_land_human(self) -> () {
203        unsafe {
204            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x25e5bf0usize)as*mut u8,();
206(CharacterLyingPegasus)__receiver)
207        }
208    }
209    #[doc = "`OnLandPegasus()` overload"]
210    fn on_land_pegasus(self) -> () {
211        unsafe {
212            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x25e5e00usize)as*mut u8,();
214(CharacterLyingPegasus)__receiver)
215        }
216    }
217    #[doc = "`.ctor()` overload"]
218    fn ctor(self) -> () {
219        unsafe {
220            let __receiver = <CharacterLyingPegasus as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x25e6210usize)as*mut u8,();
222(CharacterLyingPegasus)__receiver)
223        }
224    }
225}
226
227#[cfg(feature = "combat-characterlyingpegasus")]
228impl<__T: ICharacterLyingPegasus> ICharacterLyingPegasusMethods for __T {}
229
230#[cfg(feature = "combat-characterlyingpegasus")]
231impl CharacterLyingPegasus {
232    pub fn is_need_to_work_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
234    }
235
236    pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
238    }
239
240    pub fn make_my_dead_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
242    }
243
244    pub fn my_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
246    }
247
248    pub fn my_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
250    }
251
252    pub fn get_ground_tr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
254    }
255
256    pub fn get_ground_tr_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
258    }
259
260    pub fn on_land_human_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
262    }
263
264    pub fn on_land_pegasus_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
266    }
267
268    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
270    }
271}
272
273#[cfg(feature = "combat-characterlyingpegasus")]
274impl CharacterLyingPegasus {
275    #[doc = "Direct (non-virtual) call to `CharacterLyingPegasus`'s own `MyStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276    pub unsafe fn my_start(this: impl ::core::convert::Into<::unity::IlInstance>, die_hash: i32) -> () {
277        let __mi = Self::my_start_method_info();
278        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
279        __inner(this.into(), die_hash, ::core::option::Option::None)
280    }
281
282    #[doc = "Direct (non-virtual) call to `CharacterLyingPegasus`'s own `MakeMyDeadPose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
283    pub unsafe fn make_my_dead_pose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
284        let __mi = Self::make_my_dead_pose_method_info();
285        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
286        __inner(this.into(), ::core::option::Option::None)
287    }
288
289    #[doc = "Direct (non-virtual) call to `CharacterLyingPegasus`'s own `MyUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
290    pub unsafe fn my_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
291        let __mi = Self::my_update_method_info();
292        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
293        __inner(this.into(), ::core::option::Option::None)
294    }
295
296    #[doc = "Direct (non-virtual) call to `CharacterLyingPegasus`'s own `MyLateUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
297    pub unsafe fn my_late_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
298        let __mi = Self::my_late_update_method_info();
299        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
300        __inner(this.into(), ::core::option::Option::None)
301    }
302}
303
304#[cfg(feature = "combat-characterlyingpegasus")]
305impl CharacterLyingPegasus {
306    #[doc = "`.ctor()` — no args"]
307    pub fn new() -> Self {
308        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
309            panic!(
310                "{}
311::{}
312 failed to instantiate",
313                ::core::stringify!(CharacterLyingPegasus),
314                ::core::stringify!(new),
315            )
316        });
317        <Self as ICharacterLyingPegasusMethods>::ctor(this);
318        this
319    }
320}
321
322#[cfg(feature = "combat-characterlyingpegasus")]
323#[doc(hidden)]
324pub mod prelude {
325    pub use super::{CharacterLyingPegasus, ICharacterLyingPegasus, ICharacterLyingPegasusMethods};
326    #[cfg(feature = "combat-characterlying")]
327    pub use crate::combat::characterlying::ICharacterLyingMethods;
328    #[cfg(feature = "system-object")]
329    pub use crate::system::object::IObjectMethods;
330    #[cfg(feature = "unity_engine-behaviour")]
331    pub use crate::unity_engine::behaviour::IBehaviourMethods;
332    #[cfg(feature = "unity_engine-component")]
333    pub use crate::unity_engine::component::IComponentMethods;
334    #[cfg(feature = "unity_engine-monobehaviour")]
335    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
336    #[cfg(feature = "unity_engine-object_2")]
337    pub use crate::unity_engine::object_2::IObject_2Methods;
338    pub use crate::{
339        combat::characterlying::ICharacterLying,
340        system::object::IObject,
341        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
342    };
343}