Skip to main content

engage/generated/root_motion/final_ik/
grounderbipedik.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-grounderbipedik-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root_motion::final_ik::grounder::{Grounder, IGrounder},
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/root_motion/final_ik/grounderbipedik/GrounderBipedIK.md"))]
20    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GrounderBipedIK")]
21    #[parent(crate::root_motion::final_ik::grounder::Grounder)]
22    pub struct GrounderBipedIK {
23        #[offset(64)]
24        #[rename(name = "ik")]
25        pub ik: crate::root_motion::final_ik::bipedik::BipedIK,
26        #[offset(72)]
27        #[rename(name = "spineBend")]
28        pub spine_bend: f32,
29        #[offset(76)]
30        #[rename(name = "spineSpeed")]
31        pub spine_speed: f32,
32        #[offset(80)]
33        #[rename(name = "feet")]
34        pub feet: ::unity::Array<crate::unity_engine::transform::Transform>,
35        #[offset(88)]
36        #[rename(name = "footRotations")]
37        pub foot_rotations: ::unity::Array<crate::unity_engine::quaternion::Quaternion>,
38        #[offset(96)]
39        #[rename(name = "animatedPelvisLocalPosition")]
40        pub animated_pelvis_local_position: crate::unity_engine::vector3::Vector3,
41        #[offset(108)]
42        #[rename(name = "solvedPelvisLocalPosition")]
43        pub solved_pelvis_local_position: crate::unity_engine::vector3::Vector3,
44        #[offset(120)]
45        #[rename(name = "spineOffset")]
46        pub spine_offset: crate::unity_engine::vector3::Vector3,
47        #[offset(132)]
48        #[rename(name = "lastWeight")]
49        pub last_weight: f32,
50    }
51}
52
53#[cfg(feature = "root_motion-final_ik-grounderbipedik-types")]
54pub use __types::*;
55
56#[cfg(feature = "root_motion-final_ik-grounderbipedik")]
57pub trait IGrounderBipedIKMethods: IGrounderBipedIK {
58    #[doc = "`OpenUserManual()` overload"]
59    fn open_user_manual(self) -> () {
60        unsafe {
61            let __receiver = <GrounderBipedIK 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(5usize).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                        5usize,
72                        __vt.len(),
73                        <GrounderBipedIK as ::unity::ClassIdentity>::NAME,
74                        "OpenUserManual",
75                    )
76                });
77                let __inner: extern "C" fn(GrounderBipedIK, ::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 = "`OpenScriptReference()` overload"]
84    fn open_script_reference(self) -> () {
85        unsafe {
86            let __receiver = <GrounderBipedIK 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(6usize).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                        6usize,
97                        __vt.len(),
98                        <GrounderBipedIK as ::unity::ClassIdentity>::NAME,
99                        "OpenScriptReference",
100                    )
101                });
102                let __inner: extern "C" fn(GrounderBipedIK, ::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 = "`ResetPosition()` overload"]
109    fn reset_position(self) -> () {
110        unsafe {
111            let __receiver = <GrounderBipedIK 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(4usize).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                        4usize,
122                        __vt.len(),
123                        <GrounderBipedIK as ::unity::ClassIdentity>::NAME,
124                        "ResetPosition",
125                    )
126                });
127                let __inner: extern "C" fn(GrounderBipedIK, ::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 = "`IsReadyToInitiate()` overload"]
134    fn is_ready_to_initiate(self) -> bool {
135        unsafe {
136            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x2971340usize)as*mut u8,bool;
138(GrounderBipedIK)__receiver)
139        }
140    }
141    #[doc = "`Update()` overload"]
142    fn update(self) -> () {
143        unsafe {
144            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x29713f0usize)as*mut u8,();
146(GrounderBipedIK)__receiver)
147        }
148    }
149    #[doc = "`Initiate()` overload"]
150    fn initiate(self) -> () {
151        unsafe {
152            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x29714d0usize)as*mut u8,();
154(GrounderBipedIK)__receiver)
155        }
156    }
157    #[doc = "`OnDisable()` overload"]
158    fn on_disable(self) -> () {
159        unsafe {
160            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2971a80usize)as*mut u8,();
162(GrounderBipedIK)__receiver)
163        }
164    }
165    #[doc = "`OnSolverUpdate()` overload"]
166    fn on_solver_update(self) -> () {
167        unsafe {
168            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x2971ab0usize)as*mut u8,();
170(GrounderBipedIK)__receiver)
171        }
172    }
173    #[doc = "`SetLegIK(crate::root_motion::final_ik::iksolverlimb::IKSolverLimb, i32)` overload"]
174    fn set_leg_ik(
175        self,
176        limb: impl ::core::convert::Into<crate::root_motion::final_ik::iksolverlimb::IKSolverLimb>,
177        index: impl ::core::convert::Into<i32>,
178    ) -> () {
179        unsafe {
180            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            ::unity::il2cpp_call!((::unity::module_base()+0x29720e0usize)as*mut u8,();
182(GrounderBipedIK)__receiver,(crate::root_motion::final_ik::iksolverlimb::IKSolverLimb)::core::convert::Into::into(limb),(i32)::core::convert::Into::into(index))
183        }
184    }
185    #[doc = "`OnPostSolverUpdate()` overload"]
186    fn on_post_solver_update(self) -> () {
187        unsafe {
188            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            ::unity::il2cpp_call!((::unity::module_base()+0x2972240usize)as*mut u8,();
190(GrounderBipedIK)__receiver)
191        }
192    }
193    #[doc = "`OnDestroy()` overload"]
194    fn on_destroy(self) -> () {
195        unsafe {
196            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x2972370usize)as*mut u8,();
198(GrounderBipedIK)__receiver)
199        }
200    }
201    #[doc = "`.ctor()` overload"]
202    fn ctor(self) -> () {
203        unsafe {
204            let __receiver = <GrounderBipedIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x2972520usize)as*mut u8,();
206(GrounderBipedIK)__receiver)
207        }
208    }
209}
210
211#[cfg(feature = "root_motion-final_ik-grounderbipedik")]
212impl<__T: IGrounderBipedIK> IGrounderBipedIKMethods for __T {}
213
214#[cfg(feature = "root_motion-final_ik-grounderbipedik")]
215impl GrounderBipedIK {
216    pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
218    }
219
220    pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
222    }
223
224    pub fn reset_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
226    }
227
228    pub fn is_ready_to_initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
230    }
231
232    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
234    }
235
236    pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
238    }
239
240    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
242    }
243
244    pub fn on_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
246    }
247
248    pub fn set_leg_ik_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
250    }
251
252    pub fn on_post_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
254    }
255
256    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
258    }
259
260    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
262    }
263}
264
265#[cfg(feature = "root_motion-final_ik-grounderbipedik")]
266impl GrounderBipedIK {
267    #[doc = "Direct (non-virtual) call to `GrounderBipedIK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
268    pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
269        let __mi = Self::open_user_manual_method_info();
270        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
271        __inner(this.into(), ::core::option::Option::None)
272    }
273
274    #[doc = "Direct (non-virtual) call to `GrounderBipedIK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
275    pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
276        let __mi = Self::open_script_reference_method_info();
277        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
278        __inner(this.into(), ::core::option::Option::None)
279    }
280
281    #[doc = "Direct (non-virtual) call to `GrounderBipedIK`'s own `ResetPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
282    pub unsafe fn reset_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
283        let __mi = Self::reset_position_method_info();
284        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
285        __inner(this.into(), ::core::option::Option::None)
286    }
287}
288
289#[cfg(feature = "root_motion-final_ik-grounderbipedik")]
290impl GrounderBipedIK {
291    #[doc = "`.ctor()` — no args"]
292    pub fn new() -> Self {
293        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
294            panic!(
295                "{}
296::{}
297 failed to instantiate",
298                ::core::stringify!(GrounderBipedIK),
299                ::core::stringify!(new),
300            )
301        });
302        <Self as IGrounderBipedIKMethods>::ctor(this);
303        this
304    }
305}
306
307#[cfg(feature = "root_motion-final_ik-grounderbipedik")]
308#[doc(hidden)]
309pub mod prelude {
310    pub use super::{GrounderBipedIK, IGrounderBipedIK, IGrounderBipedIKMethods};
311    #[cfg(feature = "root_motion-final_ik-grounder")]
312    pub use crate::root_motion::final_ik::grounder::IGrounderMethods;
313    #[cfg(feature = "system-object")]
314    pub use crate::system::object::IObjectMethods;
315    #[cfg(feature = "unity_engine-behaviour")]
316    pub use crate::unity_engine::behaviour::IBehaviourMethods;
317    #[cfg(feature = "unity_engine-component")]
318    pub use crate::unity_engine::component::IComponentMethods;
319    #[cfg(feature = "unity_engine-monobehaviour")]
320    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
321    #[cfg(feature = "unity_engine-object_2")]
322    pub use crate::unity_engine::object_2::IObject_2Methods;
323    pub use crate::{
324        root_motion::final_ik::grounder::IGrounder,
325        system::object::IObject,
326        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
327    };
328}