Skip to main content

engage/generated/root_motion/final_ik/
grounderfbbik.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-grounderfbbik-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/grounderfbbik/GrounderFBBIK_SpineEffector.md"))]
20    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GrounderFBBIK.SpineEffector")]
21    #[parent(crate::system::object::Object)]
22    pub struct GrounderFBBIK_SpineEffector {
23        #[offset(16)]
24        #[rename(name = "effectorType")]
25        pub effector_type: crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector,
26        #[offset(20)]
27        #[rename(name = "horizontalWeight")]
28        pub horizontal_weight: f32,
29        #[offset(24)]
30        #[rename(name = "verticalWeight")]
31        pub vertical_weight: f32,
32    }
33
34    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounderfbbik/GrounderFBBIK.md"))]
35    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GrounderFBBIK")]
36    #[parent(crate::root_motion::final_ik::grounder::Grounder)]
37    pub struct GrounderFBBIK {
38        #[offset(64)]
39        #[rename(name = "ik")]
40        pub ik: crate::root_motion::final_ik::fullbodybipedik::FullBodyBipedIK,
41        #[offset(72)]
42        #[rename(name = "spineBend")]
43        pub spine_bend: f32,
44        #[offset(76)]
45        #[rename(name = "spineSpeed")]
46        pub spine_speed: f32,
47        #[offset(80)]
48        #[rename(name = "spine")]
49        pub spine: ::unity::Array<crate::root_motion::final_ik::grounderfbbik::GrounderFBBIK_SpineEffector>,
50        #[offset(88)]
51        #[rename(name = "feet")]
52        pub feet: ::unity::Array<crate::unity_engine::transform::Transform>,
53        #[offset(96)]
54        #[rename(name = "spineOffset")]
55        pub spine_offset: crate::unity_engine::vector3::Vector3,
56        #[offset(108)]
57        #[rename(name = "firstSolve")]
58        pub first_solve: bool,
59    }
60}
61
62#[cfg(feature = "root_motion-final_ik-grounderfbbik-types")]
63pub use __types::*;
64
65#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
66pub trait IGrounderFBBIK_SpineEffectorMethods: IGrounderFBBIK_SpineEffector {
67    #[doc = "`.ctor()` overload"]
68    fn ctor(self) -> () {
69        unsafe {
70            let __receiver =
71                <GrounderFBBIK_SpineEffector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x1cdb770usize)as*mut u8,();
73(GrounderFBBIK_SpineEffector)__receiver)
74        }
75    }
76    #[doc = "`.ctor(crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector, f32, f32)` overload"]
77    fn ctor_2(
78        self,
79        effector_type: impl ::core::convert::Into<crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector>,
80        horizontal_weight: impl ::core::convert::Into<f32>,
81        vertical_weight: impl ::core::convert::Into<f32>,
82    ) -> () {
83        unsafe {
84            let __receiver =
85                <GrounderFBBIK_SpineEffector as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x1cdb780usize)as*mut u8,();
87(GrounderFBBIK_SpineEffector)__receiver,(crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector)::core::convert::Into::into(effector_type),(f32)::core::convert::Into::into(horizontal_weight),(f32)::core::convert::Into::into(vertical_weight))
88        }
89    }
90}
91
92#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
93impl<__T: IGrounderFBBIK_SpineEffector> IGrounderFBBIK_SpineEffectorMethods for __T {}
94
95#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
96impl GrounderFBBIK_SpineEffector {
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104}
105
106#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
107impl GrounderFBBIK_SpineEffector {
108    #[doc = "`.ctor()` — no args"]
109    pub fn new() -> Self {
110        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
111            panic!(
112                "{}
113::{}
114 failed to instantiate",
115                ::core::stringify!(GrounderFBBIK_SpineEffector),
116                ::core::stringify!(new),
117            )
118        });
119        <Self as IGrounderFBBIK_SpineEffectorMethods>::ctor(this);
120        this
121    }
122
123    #[doc = "`.ctor(crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector, f32, f32)` — overload selector"]
124    pub fn new_2(
125        effector_type: crate::root_motion::final_ik::fullbodybipedeffector::FullBodyBipedEffector,
126        horizontal_weight: f32,
127        vertical_weight: f32,
128    ) -> Self {
129        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
130            panic!(
131                "{}
132::{}
133 failed to instantiate",
134                ::core::stringify!(GrounderFBBIK_SpineEffector),
135                ::core::stringify!(new_2),
136            )
137        });
138        <Self as IGrounderFBBIK_SpineEffectorMethods>::ctor_2(this, effector_type, horizontal_weight, vertical_weight);
139        this
140    }
141}
142
143#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
144pub trait IGrounderFBBIKMethods: IGrounderFBBIK {
145    #[doc = "`OpenTutorial()` overload"]
146    fn open_tutorial(self) -> () {
147        unsafe {
148            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            ::unity::il2cpp_call!((::unity::module_base()+0x29727f0usize)as*mut u8,();
150(GrounderFBBIK)__receiver)
151        }
152    }
153    #[doc = "`OpenUserManual()` overload"]
154    fn open_user_manual(self) -> () {
155        unsafe {
156            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            {
158                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
160                    panic!(
161                        "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166                        5usize,
167                        __vt.len(),
168                        <GrounderFBBIK as ::unity::ClassIdentity>::NAME,
169                        "OpenUserManual",
170                    )
171                });
172                let __inner: extern "C" fn(GrounderFBBIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
173                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
174                __inner(__receiver, __mi)
175            }
176        }
177    }
178    #[doc = "`OpenScriptReference()` overload"]
179    fn open_script_reference(self) -> () {
180        unsafe {
181            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            {
183                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
184                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
185                    panic!(
186                        "unity: virtual slot {}
187 out of range (vtable len {}
188) on the runtime class behind {}
189 (method `{}
190`)",
191                        6usize,
192                        __vt.len(),
193                        <GrounderFBBIK as ::unity::ClassIdentity>::NAME,
194                        "OpenScriptReference",
195                    )
196                });
197                let __inner: extern "C" fn(GrounderFBBIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
198                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
199                __inner(__receiver, __mi)
200            }
201        }
202    }
203    #[doc = "`ResetPosition()` overload"]
204    fn reset_position(self) -> () {
205        unsafe {
206            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            {
208                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
209                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
210                    panic!(
211                        "unity: virtual slot {}
212 out of range (vtable len {}
213) on the runtime class behind {}
214 (method `{}
215`)",
216                        4usize,
217                        __vt.len(),
218                        <GrounderFBBIK as ::unity::ClassIdentity>::NAME,
219                        "ResetPosition",
220                    )
221                });
222                let __inner: extern "C" fn(GrounderFBBIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
223                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
224                __inner(__receiver, __mi)
225            }
226        }
227    }
228    #[doc = "`IsReadyToInitiate()` overload"]
229    fn is_ready_to_initiate(self) -> bool {
230        unsafe {
231            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            ::unity::il2cpp_call!((::unity::module_base()+0x2972980usize)as*mut u8,bool;
233(GrounderFBBIK)__receiver)
234        }
235    }
236    #[doc = "`Update()` overload"]
237    fn update(self) -> () {
238        unsafe {
239            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240            ::unity::il2cpp_call!((::unity::module_base()+0x2972a20usize)as*mut u8,();
241(GrounderFBBIK)__receiver)
242        }
243    }
244    #[doc = "`FixedUpdate()` overload"]
245    fn fixed_update(self) -> () {
246        unsafe {
247            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            ::unity::il2cpp_call!((::unity::module_base()+0x2972cf0usize)as*mut u8,();
249(GrounderFBBIK)__receiver)
250        }
251    }
252    #[doc = "`LateUpdate()` overload"]
253    fn late_update(self) -> () {
254        unsafe {
255            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256            ::unity::il2cpp_call!((::unity::module_base()+0x2972d00usize)as*mut u8,();
257(GrounderFBBIK)__receiver)
258        }
259    }
260    #[doc = "`Initiate()` overload"]
261    fn initiate(self) -> () {
262        unsafe {
263            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264            ::unity::il2cpp_call!((::unity::module_base()+0x2972af0usize)as*mut u8,();
265(GrounderFBBIK)__receiver)
266        }
267    }
268    #[doc = "`OnSolverUpdate()` overload"]
269    fn on_solver_update(self) -> () {
270        unsafe {
271            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272            ::unity::il2cpp_call!((::unity::module_base()+0x2972d10usize)as*mut u8,();
273(GrounderFBBIK)__receiver)
274        }
275    }
276    #[doc = "`SetLegIK(crate::root_motion::final_ik::ikeffector::IKEffector, crate::root_motion::final_ik::grounding::Grounding_Leg)` overload"]
277    fn set_leg_ik(
278        self,
279        effector: impl ::core::convert::Into<crate::root_motion::final_ik::ikeffector::IKEffector>,
280        leg: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding_Leg>,
281    ) -> () {
282        unsafe {
283            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284            ::unity::il2cpp_call!((::unity::module_base()+0x2973000usize)as*mut u8,();
285(GrounderFBBIK)__receiver,(crate::root_motion::final_ik::ikeffector::IKEffector)::core::convert::Into::into(effector),(crate::root_motion::final_ik::grounding::Grounding_Leg)::core::convert::Into::into(leg))
286        }
287    }
288    #[doc = "`OnDrawGizmosSelected()` overload"]
289    fn on_draw_gizmos_selected(self) -> () {
290        unsafe {
291            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292            ::unity::il2cpp_call!((::unity::module_base()+0x2973110usize)as*mut u8,();
293(GrounderFBBIK)__receiver)
294        }
295    }
296    #[doc = "`OnDestroy()` overload"]
297    fn on_destroy(self) -> () {
298        unsafe {
299            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300            ::unity::il2cpp_call!((::unity::module_base()+0x2973290usize)as*mut u8,();
301(GrounderFBBIK)__receiver)
302        }
303    }
304    #[doc = "`.ctor()` overload"]
305    fn ctor(self) -> () {
306        unsafe {
307            let __receiver = <GrounderFBBIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308            ::unity::il2cpp_call!((::unity::module_base()+0x2972690usize)as*mut u8,();
309(GrounderFBBIK)__receiver)
310        }
311    }
312}
313
314#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
315impl<__T: IGrounderFBBIK> IGrounderFBBIKMethods for __T {}
316
317#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
318impl GrounderFBBIK {
319    pub fn open_tutorial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
321    }
322
323    pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
325    }
326
327    pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
329    }
330
331    pub fn reset_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
333    }
334
335    pub fn is_ready_to_initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
337    }
338
339    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
341    }
342
343    pub fn fixed_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
345    }
346
347    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
349    }
350
351    pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
353    }
354
355    pub fn on_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
357    }
358
359    pub fn set_leg_ik_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
361    }
362
363    pub fn on_draw_gizmos_selected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
365    }
366
367    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
369    }
370
371    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
373    }
374}
375
376#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
377impl GrounderFBBIK {
378    #[doc = "Direct (non-virtual) call to `GrounderFBBIK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
379    pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
380        let __mi = Self::open_user_manual_method_info();
381        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
382        __inner(this.into(), ::core::option::Option::None)
383    }
384
385    #[doc = "Direct (non-virtual) call to `GrounderFBBIK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
386    pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
387        let __mi = Self::open_script_reference_method_info();
388        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
389        __inner(this.into(), ::core::option::Option::None)
390    }
391
392    #[doc = "Direct (non-virtual) call to `GrounderFBBIK`'s own `ResetPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
393    pub unsafe fn reset_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
394        let __mi = Self::reset_position_method_info();
395        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
396        __inner(this.into(), ::core::option::Option::None)
397    }
398}
399
400#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
401impl GrounderFBBIK {
402    #[doc = "`.ctor()` — no args"]
403    pub fn new() -> Self {
404        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
405            panic!(
406                "{}
407::{}
408 failed to instantiate",
409                ::core::stringify!(GrounderFBBIK),
410                ::core::stringify!(new),
411            )
412        });
413        <Self as IGrounderFBBIKMethods>::ctor(this);
414        this
415    }
416}
417
418#[cfg(feature = "root_motion-final_ik-grounderfbbik")]
419#[doc(hidden)]
420pub mod prelude {
421    pub use super::{
422        GrounderFBBIK, GrounderFBBIK_SpineEffector, IGrounderFBBIK, IGrounderFBBIKMethods, IGrounderFBBIK_SpineEffector,
423        IGrounderFBBIK_SpineEffectorMethods,
424    };
425    #[cfg(feature = "root_motion-final_ik-grounder")]
426    pub use crate::root_motion::final_ik::grounder::IGrounderMethods;
427    #[cfg(feature = "system-object")]
428    pub use crate::system::object::IObjectMethods;
429    #[cfg(feature = "unity_engine-behaviour")]
430    pub use crate::unity_engine::behaviour::IBehaviourMethods;
431    #[cfg(feature = "unity_engine-component")]
432    pub use crate::unity_engine::component::IComponentMethods;
433    #[cfg(feature = "unity_engine-monobehaviour")]
434    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
435    #[cfg(feature = "unity_engine-object_2")]
436    pub use crate::unity_engine::object_2::IObject_2Methods;
437    pub use crate::{
438        root_motion::final_ik::grounder::IGrounder,
439        system::object::IObject,
440        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
441    };
442}