Skip to main content

engage/generated/root_motion/final_ik/
groundervrik.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-groundervrik-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/groundervrik/GrounderVRIK.md"))]
20    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GrounderVRIK")]
21    #[parent(crate::root_motion::final_ik::grounder::Grounder)]
22    pub struct GrounderVRIK {
23        #[offset(64)]
24        #[rename(name = "ik")]
25        pub ik: crate::root_motion::final_ik::vrik::VRIK,
26        #[offset(72)]
27        #[rename(name = "feet")]
28        pub feet: ::unity::Array<crate::unity_engine::transform::Transform>,
29    }
30}
31
32#[cfg(feature = "root_motion-final_ik-groundervrik-types")]
33pub use __types::*;
34
35#[cfg(feature = "root_motion-final_ik-groundervrik")]
36pub trait IGrounderVRIKMethods: IGrounderVRIK {
37    #[doc = "`OpenTutorial()` overload"]
38    fn open_tutorial(self) -> () {
39        unsafe {
40            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x2976a10usize)as*mut u8,();
42(GrounderVRIK)__receiver)
43        }
44    }
45    #[doc = "`OpenUserManual()` overload"]
46    fn open_user_manual(self) -> () {
47        unsafe {
48            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49            {
50                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
51                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
52                    panic!(
53                        "unity: virtual slot {}
54 out of range (vtable len {}
55) on the runtime class behind {}
56 (method `{}
57`)",
58                        5usize,
59                        __vt.len(),
60                        <GrounderVRIK as ::unity::ClassIdentity>::NAME,
61                        "OpenUserManual",
62                    )
63                });
64                let __inner: extern "C" fn(GrounderVRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, __mi)
67            }
68        }
69    }
70    #[doc = "`OpenScriptReference()` overload"]
71    fn open_script_reference(self) -> () {
72        unsafe {
73            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        6usize,
84                        __vt.len(),
85                        <GrounderVRIK as ::unity::ClassIdentity>::NAME,
86                        "OpenScriptReference",
87                    )
88                });
89                let __inner: extern "C" fn(GrounderVRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
90                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
91                __inner(__receiver, __mi)
92            }
93        }
94    }
95    #[doc = "`ResetPosition()` overload"]
96    fn reset_position(self) -> () {
97        unsafe {
98            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            {
100                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
101                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
102                    panic!(
103                        "unity: virtual slot {}
104 out of range (vtable len {}
105) on the runtime class behind {}
106 (method `{}
107`)",
108                        4usize,
109                        __vt.len(),
110                        <GrounderVRIK as ::unity::ClassIdentity>::NAME,
111                        "ResetPosition",
112                    )
113                });
114                let __inner: extern "C" fn(GrounderVRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
115                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116                __inner(__receiver, __mi)
117            }
118        }
119    }
120    #[doc = "`IsReadyToInitiate()` overload"]
121    fn is_ready_to_initiate(self) -> bool {
122        unsafe {
123            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x2976b90usize)as*mut u8,bool;
125(GrounderVRIK)__receiver)
126        }
127    }
128    #[doc = "`Update()` overload"]
129    fn update(self) -> () {
130        unsafe {
131            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x2976c30usize)as*mut u8,();
133(GrounderVRIK)__receiver)
134        }
135    }
136    #[doc = "`Initiate()` overload"]
137    fn initiate(self) -> () {
138        unsafe {
139            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2976d00usize)as*mut u8,();
141(GrounderVRIK)__receiver)
142        }
143    }
144    #[doc = "`OnSolverUpdate()` overload"]
145    fn on_solver_update(self) -> () {
146        unsafe {
147            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x2976f30usize)as*mut u8,();
149(GrounderVRIK)__receiver)
150        }
151    }
152    #[doc = "`SetLegIK(crate::root_motion::final_ik::iksolvervr::IKSolverVR_PositionOffset, crate::unity_engine::transform::Transform, crate::root_motion::final_ik::grounding::Grounding_Leg)` overload"]
153    fn set_leg_ik(
154        self,
155        position_offset: impl ::core::convert::Into<crate::root_motion::final_ik::iksolvervr::IKSolverVR_PositionOffset>,
156        bone: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
157        leg: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding_Leg>,
158    ) -> () {
159        unsafe {
160            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x29770d0usize)as*mut u8,();
162(GrounderVRIK)__receiver,(crate::root_motion::final_ik::iksolvervr::IKSolverVR_PositionOffset)::core::convert::Into::into(position_offset),(crate::unity_engine::transform::Transform)::core::convert::Into::into(bone),(crate::root_motion::final_ik::grounding::Grounding_Leg)::core::convert::Into::into(leg))
163        }
164    }
165    #[doc = "`OnPostSolverUpdate()` overload"]
166    fn on_post_solver_update(self) -> () {
167        unsafe {
168            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x2977150usize)as*mut u8,();
170(GrounderVRIK)__receiver)
171        }
172    }
173    #[doc = "`OnDrawGizmosSelected()` overload"]
174    fn on_draw_gizmos_selected(self) -> () {
175        unsafe {
176            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x29772c0usize)as*mut u8,();
178(GrounderVRIK)__receiver)
179        }
180    }
181    #[doc = "`OnDestroy()` overload"]
182    fn on_destroy(self) -> () {
183        unsafe {
184            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x2977440usize)as*mut u8,();
186(GrounderVRIK)__receiver)
187        }
188    }
189    #[doc = "`.ctor()` overload"]
190    fn ctor(self) -> () {
191        unsafe {
192            let __receiver = <GrounderVRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x29775e0usize)as*mut u8,();
194(GrounderVRIK)__receiver)
195        }
196    }
197}
198
199#[cfg(feature = "root_motion-final_ik-groundervrik")]
200impl<__T: IGrounderVRIK> IGrounderVRIKMethods for __T {}
201
202#[cfg(feature = "root_motion-final_ik-groundervrik")]
203impl GrounderVRIK {
204    pub fn open_tutorial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
206    }
207
208    pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
210    }
211
212    pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
214    }
215
216    pub fn reset_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
218    }
219
220    pub fn is_ready_to_initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
222    }
223
224    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
226    }
227
228    pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
230    }
231
232    pub fn on_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
234    }
235
236    pub fn set_leg_ik_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
238    }
239
240    pub fn on_post_solver_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
242    }
243
244    pub fn on_draw_gizmos_selected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
246    }
247
248    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
250    }
251
252    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
254    }
255}
256
257#[cfg(feature = "root_motion-final_ik-groundervrik")]
258impl GrounderVRIK {
259    #[doc = "Direct (non-virtual) call to `GrounderVRIK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
260    pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
261        let __mi = Self::open_user_manual_method_info();
262        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
263        __inner(this.into(), ::core::option::Option::None)
264    }
265
266    #[doc = "Direct (non-virtual) call to `GrounderVRIK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
267    pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
268        let __mi = Self::open_script_reference_method_info();
269        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
270        __inner(this.into(), ::core::option::Option::None)
271    }
272
273    #[doc = "Direct (non-virtual) call to `GrounderVRIK`'s own `ResetPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274    pub unsafe fn reset_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
275        let __mi = Self::reset_position_method_info();
276        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
277        __inner(this.into(), ::core::option::Option::None)
278    }
279}
280
281#[cfg(feature = "root_motion-final_ik-groundervrik")]
282impl GrounderVRIK {
283    #[doc = "`.ctor()` — no args"]
284    pub fn new() -> Self {
285        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
286            panic!(
287                "{}
288::{}
289 failed to instantiate",
290                ::core::stringify!(GrounderVRIK),
291                ::core::stringify!(new),
292            )
293        });
294        <Self as IGrounderVRIKMethods>::ctor(this);
295        this
296    }
297}
298
299#[cfg(feature = "root_motion-final_ik-groundervrik")]
300#[doc(hidden)]
301pub mod prelude {
302    pub use super::{GrounderVRIK, IGrounderVRIK, IGrounderVRIKMethods};
303    #[cfg(feature = "root_motion-final_ik-grounder")]
304    pub use crate::root_motion::final_ik::grounder::IGrounderMethods;
305    #[cfg(feature = "system-object")]
306    pub use crate::system::object::IObjectMethods;
307    #[cfg(feature = "unity_engine-behaviour")]
308    pub use crate::unity_engine::behaviour::IBehaviourMethods;
309    #[cfg(feature = "unity_engine-component")]
310    pub use crate::unity_engine::component::IComponentMethods;
311    #[cfg(feature = "unity_engine-monobehaviour")]
312    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
313    #[cfg(feature = "unity_engine-object_2")]
314    pub use crate::unity_engine::object_2::IObject_2Methods;
315    pub use crate::{
316        root_motion::final_ik::grounder::IGrounder,
317        system::object::IObject,
318        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
319    };
320}