Skip to main content

engage/generated/combat/
characterlyinghorse.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterlyinghorse-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        combat::characterlying::{CharacterLying, ICharacterLying},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15        unity_engine::{
16            behaviour::{Behaviour, IBehaviour},
17            component::{Component, IComponent},
18            monobehaviour::{IMonoBehaviour, MonoBehaviour},
19            object_2::{IObject_2, Object_2},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterlyinghorse/CharacterLyingHorse_Progress.md"))]
24    #[repr(C)]
25    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26    pub struct CharacterLyingHorse_Progress {
27        pub value: i32,
28    }
29    impl ::unity::ClassIdentity for CharacterLyingHorse_Progress {
30        const NAME: &'static str = "CharacterLyingHorse.Progress";
31        const NAMESPACE: &'static str = "Combat";
32
33        fn class() -> ::unity::Class {
34            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36        }
37    }
38    impl ::unity::IlType for CharacterLyingHorse_Progress {
39        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41        }
42    }
43    impl CharacterLyingHorse_Progress {
44        pub fn flying() -> Self {
45            Self { value: 0 }
46        }
47
48        pub fn horse_landed() -> Self {
49            Self { value: 1 }
50        }
51
52        pub fn both_landed() -> Self {
53            Self { value: 2 }
54        }
55    }
56
57    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/characterlyinghorse/CharacterLyingHorse.md"))]
58    #[::unity::class(namespace = "Combat", name = "CharacterLyingHorse")]
59    #[parent(crate::combat::characterlying::CharacterLying)]
60    pub struct CharacterLyingHorse {
61        #[offset(36)]
62        #[rename(name = "m_StartBaseTR")]
63        pub m_start_base_tr: crate::combat::tr::TR,
64        #[offset(64)]
65        #[rename(name = "m_EndBaseTR")]
66        pub m_end_base_tr: crate::combat::tr::TR,
67        #[offset(92)]
68        #[rename(name = "m_StartHumanQ")]
69        pub m_start_human_q: crate::unity_engine::quaternion::Quaternion,
70        #[offset(108)]
71        #[rename(name = "m_EndHumanQ")]
72        pub m_end_human_q: crate::unity_engine::quaternion::Quaternion,
73        #[offset(128)]
74        #[rename(name = "m_HumanRoot")]
75        pub m_human_root: crate::unity_engine::transform::Transform,
76        #[offset(136)]
77        #[rename(name = "m_HorseRoot")]
78        pub m_horse_root: crate::unity_engine::transform::Transform,
79        #[offset(144)]
80        #[rename(name = "m_HorseRootRotation")]
81        pub m_horse_root_rotation: crate::unity_engine::quaternion::Quaternion,
82        #[offset(160)]
83        #[rename(name = "m_HorseNrm")]
84        pub m_horse_nrm: crate::unity_engine::vector3::Vector3,
85        #[offset(172)]
86        #[rename(name = "m_Time")]
87        pub m_time: f32,
88        #[offset(176)]
89        #[rename(name = "m_EndTime")]
90        pub m_end_time: f32,
91        #[offset(180)]
92        #[rename(name = "m_IsCollide")]
93        pub m_is_collide: bool,
94        #[offset(184)]
95        #[rename(name = "m_LastSafetyHipXZ")]
96        pub m_last_safety_hip_xz: crate::combat::fxz::FXZ,
97        #[offset(192)]
98        #[rename(name = "m_LastLookAtRide")]
99        pub m_last_look_at_ride: crate::combat::fxz::FXZ,
100    }
101}
102
103#[cfg(feature = "combat-characterlyinghorse-types")]
104pub use __types::*;
105
106#[cfg(feature = "combat-characterlyinghorse")]
107pub trait ICharacterLyingHorseMethods: ICharacterLyingHorse {
108    #[doc = "`GetProgess()` overload"]
109    fn get_progess(self) -> crate::combat::characterlyinghorse::CharacterLyingHorse_Progress {
110        unsafe {
111            let __receiver = <CharacterLyingHorse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x27ecd70usize)as*mut u8,crate::combat::characterlyinghorse::CharacterLyingHorse_Progress;
113(CharacterLyingHorse)__receiver)
114        }
115    }
116    #[doc = "`MyStart(i32)` overload"]
117    fn my_start(self, die_hash: impl ::core::convert::Into<i32>) -> () {
118        unsafe {
119            let __receiver = <CharacterLyingHorse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            {
121                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
123                    panic!(
124                        "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129                        4usize,
130                        __vt.len(),
131                        <CharacterLyingHorse as ::unity::ClassIdentity>::NAME,
132                        "MyStart",
133                    )
134                });
135                let __inner: extern "C" fn(CharacterLyingHorse, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
136                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
137                __inner(__receiver, ::core::convert::Into::into(die_hash), __mi)
138            }
139        }
140    }
141    #[doc = "`MakeMyDeadPose()` overload"]
142    fn make_my_dead_pose(self) -> () {
143        unsafe {
144            let __receiver = <CharacterLyingHorse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            {
146                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
147                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
148                    panic!(
149                        "unity: virtual slot {}
150 out of range (vtable len {}
151) on the runtime class behind {}
152 (method `{}
153`)",
154                        5usize,
155                        __vt.len(),
156                        <CharacterLyingHorse as ::unity::ClassIdentity>::NAME,
157                        "MakeMyDeadPose",
158                    )
159                });
160                let __inner: extern "C" fn(CharacterLyingHorse, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
161                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
162                __inner(__receiver, __mi)
163            }
164        }
165    }
166    #[doc = "`MyLateUpdate()` overload"]
167    fn my_late_update(self) -> () {
168        unsafe {
169            let __receiver = <CharacterLyingHorse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            {
171                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
172                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
173                    panic!(
174                        "unity: virtual slot {}
175 out of range (vtable len {}
176) on the runtime class behind {}
177 (method `{}
178`)",
179                        7usize,
180                        __vt.len(),
181                        <CharacterLyingHorse as ::unity::ClassIdentity>::NAME,
182                        "MyLateUpdate",
183                    )
184                });
185                let __inner: extern "C" fn(CharacterLyingHorse, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
186                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
187                __inner(__receiver, __mi)
188            }
189        }
190    }
191    #[doc = "`.ctor()` overload"]
192    fn ctor(self) -> () {
193        unsafe {
194            let __receiver = <CharacterLyingHorse as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x27ed5b0usize)as*mut u8,();
196(CharacterLyingHorse)__receiver)
197        }
198    }
199}
200
201#[cfg(feature = "combat-characterlyinghorse")]
202impl<__T: ICharacterLyingHorse> ICharacterLyingHorseMethods for __T {}
203
204#[cfg(feature = "combat-characterlyinghorse")]
205impl CharacterLyingHorse {
206    pub fn get_progess_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
208    }
209
210    pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
212    }
213
214    pub fn make_my_dead_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
216    }
217
218    pub fn my_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
220    }
221
222    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
224    }
225}
226
227#[cfg(feature = "combat-characterlyinghorse")]
228impl CharacterLyingHorse {
229    #[doc = "Direct (non-virtual) call to `CharacterLyingHorse`'s own `MyStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn my_start(this: impl ::core::convert::Into<::unity::IlInstance>, die_hash: i32) -> () {
231        let __mi = Self::my_start_method_info();
232        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
233        __inner(this.into(), die_hash, ::core::option::Option::None)
234    }
235
236    #[doc = "Direct (non-virtual) call to `CharacterLyingHorse`'s own `MakeMyDeadPose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237    pub unsafe fn make_my_dead_pose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
238        let __mi = Self::make_my_dead_pose_method_info();
239        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
240        __inner(this.into(), ::core::option::Option::None)
241    }
242
243    #[doc = "Direct (non-virtual) call to `CharacterLyingHorse`'s own `MyLateUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
244    pub unsafe fn my_late_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
245        let __mi = Self::my_late_update_method_info();
246        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
247        __inner(this.into(), ::core::option::Option::None)
248    }
249}
250
251#[cfg(feature = "combat-characterlyinghorse")]
252impl CharacterLyingHorse {
253    #[doc = "`.ctor()` — no args"]
254    pub fn new() -> Self {
255        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
256            panic!(
257                "{}
258::{}
259 failed to instantiate",
260                ::core::stringify!(CharacterLyingHorse),
261                ::core::stringify!(new),
262            )
263        });
264        <Self as ICharacterLyingHorseMethods>::ctor(this);
265        this
266    }
267}
268
269#[cfg(feature = "combat-characterlyinghorse")]
270#[doc(hidden)]
271pub mod prelude {
272    pub use super::{CharacterLyingHorse, CharacterLyingHorse_Progress, ICharacterLyingHorse, ICharacterLyingHorseMethods};
273    #[cfg(feature = "combat-characterlying")]
274    pub use crate::combat::characterlying::ICharacterLyingMethods;
275    #[cfg(feature = "system-object")]
276    pub use crate::system::object::IObjectMethods;
277    #[cfg(feature = "system-enum")]
278    pub use crate::system::r#enum::IEnumMethods;
279    #[cfg(feature = "system-valuetype")]
280    pub use crate::system::valuetype::IValueTypeMethods;
281    #[cfg(feature = "unity_engine-behaviour")]
282    pub use crate::unity_engine::behaviour::IBehaviourMethods;
283    #[cfg(feature = "unity_engine-component")]
284    pub use crate::unity_engine::component::IComponentMethods;
285    #[cfg(feature = "unity_engine-monobehaviour")]
286    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
287    #[cfg(feature = "unity_engine-object_2")]
288    pub use crate::unity_engine::object_2::IObject_2Methods;
289    pub use crate::{
290        combat::characterlying::ICharacterLying,
291        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
292        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
293    };
294}