Skip to main content

engage/generated/combat/
characterlyinghuman.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterlyinghuman-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/characterlyinghuman/CharacterLyingHuman.md"))]
20    #[::unity::class(namespace = "Combat", name = "CharacterLyingHuman")]
21    #[parent(crate::combat::characterlying::CharacterLying)]
22    pub struct CharacterLyingHuman {
23        #[offset(36)]
24        #[rename(name = "m_StartPos")]
25        pub m_start_pos: crate::unity_engine::vector3::Vector3,
26        #[offset(48)]
27        #[rename(name = "m_EndPos")]
28        pub m_end_pos: crate::unity_engine::vector3::Vector3,
29        #[offset(60)]
30        #[rename(name = "m_Time")]
31        pub m_time: f32,
32        #[offset(64)]
33        #[rename(name = "m_EndTime")]
34        pub m_end_time: f32,
35        #[offset(68)]
36        #[rename(name = "m_BodyRotation")]
37        pub m_body_rotation: crate::unity_engine::quaternion::Quaternion,
38        #[offset(84)]
39        #[rename(name = "m_LastNrm")]
40        pub m_last_nrm: crate::unity_engine::vector3::Vector3,
41        #[offset(96)]
42        #[rename(name = "m_LastY")]
43        pub m_last_y: f32,
44        #[offset(100)]
45        #[rename(name = "m_Skipped")]
46        pub m_skipped: bool,
47        #[offset(104)]
48        #[rename(name = "m_SkipFrames")]
49        pub m_skip_frames: i32,
50    }
51}
52
53#[cfg(feature = "combat-characterlyinghuman-types")]
54pub use __types::*;
55
56#[cfg(feature = "combat-characterlyinghuman")]
57pub trait ICharacterLyingHumanMethods: ICharacterLyingHuman {
58    #[doc = "`get_IsInAir()` overload"]
59    fn get_is_in_air(self) -> bool {
60        unsafe {
61            let __receiver = <CharacterLyingHuman as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x25e4be0usize)as*mut u8,bool;
63(CharacterLyingHuman)__receiver)
64        }
65    }
66    #[doc = "`get_Progress()` overload"]
67    fn get_progress(self) -> f32 {
68        unsafe {
69            let __receiver = <CharacterLyingHuman as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x25e4bf0usize)as*mut u8,f32;
71(CharacterLyingHuman)__receiver)
72        }
73    }
74    #[doc = "`MyStart(i32)` overload"]
75    fn my_start(self, die_hash: impl ::core::convert::Into<i32>) -> () {
76        unsafe {
77            let __receiver = <CharacterLyingHuman as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            {
79                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
81                    panic!(
82                        "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87                        4usize,
88                        __vt.len(),
89                        <CharacterLyingHuman as ::unity::ClassIdentity>::NAME,
90                        "MyStart",
91                    )
92                });
93                let __inner: extern "C" fn(CharacterLyingHuman, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
94                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95                __inner(__receiver, ::core::convert::Into::into(die_hash), __mi)
96            }
97        }
98    }
99    #[doc = "`MakeMyDeadPose()` overload"]
100    fn make_my_dead_pose(self) -> () {
101        unsafe {
102            let __receiver = <CharacterLyingHuman as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            {
104                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
106                    panic!(
107                        "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112                        5usize,
113                        __vt.len(),
114                        <CharacterLyingHuman as ::unity::ClassIdentity>::NAME,
115                        "MakeMyDeadPose",
116                    )
117                });
118                let __inner: extern "C" fn(CharacterLyingHuman, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
119                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120                __inner(__receiver, __mi)
121            }
122        }
123    }
124    #[doc = "`MyLateUpdate()` overload"]
125    fn my_late_update(self) -> () {
126        unsafe {
127            let __receiver = <CharacterLyingHuman as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            {
129                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
130                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
131                    panic!(
132                        "unity: virtual slot {}
133 out of range (vtable len {}
134) on the runtime class behind {}
135 (method `{}
136`)",
137                        7usize,
138                        __vt.len(),
139                        <CharacterLyingHuman as ::unity::ClassIdentity>::NAME,
140                        "MyLateUpdate",
141                    )
142                });
143                let __inner: extern "C" fn(CharacterLyingHuman, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
144                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145                __inner(__receiver, __mi)
146            }
147        }
148    }
149    #[doc = "`.ctor()` overload"]
150    fn ctor(self) -> () {
151        unsafe {
152            let __receiver = <CharacterLyingHuman as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x25e5050usize)as*mut u8,();
154(CharacterLyingHuman)__receiver)
155        }
156    }
157}
158
159#[cfg(feature = "combat-characterlyinghuman")]
160impl<__T: ICharacterLyingHuman> ICharacterLyingHumanMethods for __T {}
161
162#[cfg(feature = "combat-characterlyinghuman")]
163impl CharacterLyingHuman {
164    pub fn get_is_in_air_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
166    }
167
168    pub fn get_progress_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
170    }
171
172    pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
174    }
175
176    pub fn make_my_dead_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
178    }
179
180    pub fn my_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
182    }
183
184    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
186    }
187}
188
189#[cfg(feature = "combat-characterlyinghuman")]
190impl CharacterLyingHuman {
191    #[doc = "Direct (non-virtual) call to `CharacterLyingHuman`'s own `MyStart`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
192    pub unsafe fn my_start(this: impl ::core::convert::Into<::unity::IlInstance>, die_hash: i32) -> () {
193        let __mi = Self::my_start_method_info();
194        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
195        __inner(this.into(), die_hash, ::core::option::Option::None)
196    }
197
198    #[doc = "Direct (non-virtual) call to `CharacterLyingHuman`'s own `MakeMyDeadPose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
199    pub unsafe fn make_my_dead_pose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
200        let __mi = Self::make_my_dead_pose_method_info();
201        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
202        __inner(this.into(), ::core::option::Option::None)
203    }
204
205    #[doc = "Direct (non-virtual) call to `CharacterLyingHuman`'s own `MyLateUpdate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
206    pub unsafe fn my_late_update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
207        let __mi = Self::my_late_update_method_info();
208        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
209        __inner(this.into(), ::core::option::Option::None)
210    }
211}
212
213#[cfg(feature = "combat-characterlyinghuman")]
214impl CharacterLyingHuman {
215    #[doc = "`.ctor()` — no args"]
216    pub fn new() -> Self {
217        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
218            panic!(
219                "{}
220::{}
221 failed to instantiate",
222                ::core::stringify!(CharacterLyingHuman),
223                ::core::stringify!(new),
224            )
225        });
226        <Self as ICharacterLyingHumanMethods>::ctor(this);
227        this
228    }
229}
230
231#[cfg(feature = "combat-characterlyinghuman")]
232#[doc(hidden)]
233pub mod prelude {
234    pub use super::{CharacterLyingHuman, ICharacterLyingHuman, ICharacterLyingHumanMethods};
235    #[cfg(feature = "combat-characterlying")]
236    pub use crate::combat::characterlying::ICharacterLyingMethods;
237    #[cfg(feature = "system-object")]
238    pub use crate::system::object::IObjectMethods;
239    #[cfg(feature = "unity_engine-behaviour")]
240    pub use crate::unity_engine::behaviour::IBehaviourMethods;
241    #[cfg(feature = "unity_engine-component")]
242    pub use crate::unity_engine::component::IComponentMethods;
243    #[cfg(feature = "unity_engine-monobehaviour")]
244    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
245    #[cfg(feature = "unity_engine-object_2")]
246    pub use crate::unity_engine::object_2::IObject_2Methods;
247    pub use crate::{
248        combat::characterlying::ICharacterLying,
249        system::object::IObject,
250        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
251    };
252}