Skip to main content

engage/generated/root_motion/final_ik/
vrik.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-vrik-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root_motion::{
10            final_ik::ik::{IIK, IK},
11            solvermanager::{ISolverManager, SolverManager},
12        },
13        system::object::{IObject, Object},
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/vrik/VRIK_References.md"))]
23    #[::unity::class(namespace = "RootMotion.FinalIK", name = "VRIK.References")]
24    #[parent(crate::system::object::Object)]
25    pub struct VRIK_References {
26        #[offset(16)]
27        #[rename(name = "root")]
28        pub root: crate::unity_engine::transform::Transform,
29        #[offset(24)]
30        #[rename(name = "pelvis")]
31        pub pelvis: crate::unity_engine::transform::Transform,
32        #[offset(32)]
33        #[rename(name = "spine")]
34        pub spine: crate::unity_engine::transform::Transform,
35        #[offset(40)]
36        #[rename(name = "chest")]
37        pub chest: crate::unity_engine::transform::Transform,
38        #[offset(48)]
39        #[rename(name = "neck")]
40        pub neck: crate::unity_engine::transform::Transform,
41        #[offset(56)]
42        #[rename(name = "head")]
43        pub head: crate::unity_engine::transform::Transform,
44        #[offset(64)]
45        #[rename(name = "leftShoulder")]
46        pub left_shoulder: crate::unity_engine::transform::Transform,
47        #[offset(72)]
48        #[rename(name = "leftUpperArm")]
49        pub left_upper_arm: crate::unity_engine::transform::Transform,
50        #[offset(80)]
51        #[rename(name = "leftForearm")]
52        pub left_forearm: crate::unity_engine::transform::Transform,
53        #[offset(88)]
54        #[rename(name = "leftHand")]
55        pub left_hand: crate::unity_engine::transform::Transform,
56        #[offset(96)]
57        #[rename(name = "rightShoulder")]
58        pub right_shoulder: crate::unity_engine::transform::Transform,
59        #[offset(104)]
60        #[rename(name = "rightUpperArm")]
61        pub right_upper_arm: crate::unity_engine::transform::Transform,
62        #[offset(112)]
63        #[rename(name = "rightForearm")]
64        pub right_forearm: crate::unity_engine::transform::Transform,
65        #[offset(120)]
66        #[rename(name = "rightHand")]
67        pub right_hand: crate::unity_engine::transform::Transform,
68        #[offset(128)]
69        #[rename(name = "leftThigh")]
70        pub left_thigh: crate::unity_engine::transform::Transform,
71        #[offset(136)]
72        #[rename(name = "leftCalf")]
73        pub left_calf: crate::unity_engine::transform::Transform,
74        #[offset(144)]
75        #[rename(name = "leftFoot")]
76        pub left_foot: crate::unity_engine::transform::Transform,
77        #[offset(152)]
78        #[rename(name = "leftToes")]
79        pub left_toes: crate::unity_engine::transform::Transform,
80        #[offset(160)]
81        #[rename(name = "rightThigh")]
82        pub right_thigh: crate::unity_engine::transform::Transform,
83        #[offset(168)]
84        #[rename(name = "rightCalf")]
85        pub right_calf: crate::unity_engine::transform::Transform,
86        #[offset(176)]
87        #[rename(name = "rightFoot")]
88        pub right_foot: crate::unity_engine::transform::Transform,
89        #[offset(184)]
90        #[rename(name = "rightToes")]
91        pub right_toes: crate::unity_engine::transform::Transform,
92    }
93
94    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/vrik/VRIK.md"))]
95    #[::unity::class(namespace = "RootMotion.FinalIK", name = "VRIK")]
96    #[parent(crate::root_motion::final_ik::ik::IK)]
97    pub struct VRIK {
98        #[offset(56)]
99        #[rename(name = "references")]
100        pub references: crate::root_motion::final_ik::vrik::VRIK_References,
101        #[offset(64)]
102        #[rename(name = "solver")]
103        pub solver: crate::root_motion::final_ik::iksolvervr::IKSolverVR,
104    }
105}
106
107#[cfg(feature = "root_motion-final_ik-vrik-types")]
108pub use __types::*;
109
110#[cfg(feature = "root_motion-final_ik-vrik")]
111impl VRIK_References {
112    #[doc = "`AutoDetectReferences(crate::unity_engine::transform::Transform, *mutcrate::root_motion::final_ik::vrik::VRIK_References)` overload"]
113    pub fn auto_detect_references(
114        root: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
115    ) -> (bool, crate::root_motion::final_ik::vrik::VRIK_References) {
116        unsafe {
117            let mut __out_0 = ::core::mem::MaybeUninit::<crate::root_motion::final_ik::vrik::VRIK_References>::uninit();
118            let __ret = {
119                ::unity::il2cpp_call!((::unity::module_base()+0x1b5ee00usize)as*mut u8,bool;
120(crate::unity_engine::transform::Transform)::core::convert::Into::into(root),(*mut crate::root_motion::final_ik::vrik::VRIK_References)__out_0.as_mut_ptr())
121            };
122            (__ret, __out_0.assume_init())
123        }
124    }
125}
126
127#[cfg(feature = "root_motion-final_ik-vrik")]
128pub trait IVRIK_ReferencesMethods: IVRIK_References {
129    #[doc = "`GetTransforms()` overload"]
130    fn get_transforms(self) -> ::unity::Array<crate::unity_engine::transform::Transform> {
131        unsafe {
132            let __receiver = <VRIK_References as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x1b5df90usize)as*mut u8, ::unity::Array<crate::unity_engine::transform::Transform> ;
134(VRIK_References)__receiver)
135        }
136    }
137    #[doc = "`get_isFilled()` overload"]
138    fn get_is_filled(self) -> bool {
139        unsafe {
140            let __receiver = <VRIK_References as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x1b5e4e0usize)as*mut u8,bool;
142(VRIK_References)__receiver)
143        }
144    }
145    #[doc = "`get_isEmpty()` overload"]
146    fn get_is_empty(self) -> bool {
147        unsafe {
148            let __receiver = <VRIK_References as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            ::unity::il2cpp_call!((::unity::module_base()+0x1b5e970usize)as*mut u8,bool;
150(VRIK_References)__receiver)
151        }
152    }
153    #[doc = "`.ctor()` overload"]
154    fn ctor(self) -> () {
155        unsafe {
156            let __receiver = <VRIK_References as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            ::unity::il2cpp_call!((::unity::module_base()+0x1b5f210usize)as*mut u8,();
158(VRIK_References)__receiver)
159        }
160    }
161}
162
163#[cfg(feature = "root_motion-final_ik-vrik")]
164impl<__T: IVRIK_References> IVRIK_ReferencesMethods for __T {}
165
166#[cfg(feature = "root_motion-final_ik-vrik")]
167impl VRIK_References {
168    pub fn get_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
170    }
171
172    pub fn get_is_filled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
174    }
175
176    pub fn get_is_empty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
178    }
179
180    pub fn auto_detect_references_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
182    }
183
184    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
186    }
187}
188
189#[cfg(feature = "root_motion-final_ik-vrik")]
190impl VRIK_References {
191    #[doc = "`.ctor()` — no args"]
192    pub fn new() -> Self {
193        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
194            panic!(
195                "{}
196::{}
197 failed to instantiate",
198                ::core::stringify!(VRIK_References),
199                ::core::stringify!(new),
200            )
201        });
202        <Self as IVRIK_ReferencesMethods>::ctor(this);
203        this
204    }
205}
206
207#[cfg(feature = "root_motion-final_ik-vrik")]
208pub trait IVRIKMethods: IVRIK {
209    #[doc = "`OpenUserManual()` overload"]
210    fn open_user_manual(self) -> () {
211        unsafe {
212            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            {
214                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
215                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
216                    panic!(
217                        "unity: virtual slot {}
218 out of range (vtable len {}
219) on the runtime class behind {}
220 (method `{}
221`)",
222                        8usize,
223                        __vt.len(),
224                        <VRIK as ::unity::ClassIdentity>::NAME,
225                        "OpenUserManual",
226                    )
227                });
228                let __inner: extern "C" fn(VRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
229                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
230                __inner(__receiver, __mi)
231            }
232        }
233    }
234    #[doc = "`OpenScriptReference()` overload"]
235    fn open_script_reference(self) -> () {
236        unsafe {
237            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            {
239                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
240                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
241                    panic!(
242                        "unity: virtual slot {}
243 out of range (vtable len {}
244) on the runtime class behind {}
245 (method `{}
246`)",
247                        9usize,
248                        __vt.len(),
249                        <VRIK as ::unity::ClassIdentity>::NAME,
250                        "OpenScriptReference",
251                    )
252                });
253                let __inner: extern "C" fn(VRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
254                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255                __inner(__receiver, __mi)
256            }
257        }
258    }
259    #[doc = "`OpenSetupTutorial()` overload"]
260    fn open_setup_tutorial(self) -> () {
261        unsafe {
262            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263            ::unity::il2cpp_call!((::unity::module_base()+0x26a17f0usize)as*mut u8,();
264(VRIK)__receiver)
265        }
266    }
267    #[doc = "`AutoDetectReferences()` overload"]
268    fn auto_detect_references(self) -> () {
269        unsafe {
270            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            ::unity::il2cpp_call!((::unity::module_base()+0x26a1840usize)as*mut u8,();
272(VRIK)__receiver)
273        }
274    }
275    #[doc = "`GuessHandOrientations()` overload"]
276    fn guess_hand_orientations(self) -> () {
277        unsafe {
278            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279            ::unity::il2cpp_call!((::unity::module_base()+0x26a1870usize)as*mut u8,();
280(VRIK)__receiver)
281        }
282    }
283    #[doc = "`GetIKSolver()` overload"]
284    fn get_ik_solver(self) -> crate::root_motion::final_ik::iksolver::IKSolver {
285        unsafe {
286            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            {
288                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
289                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
290                    panic!(
291                        "unity: virtual slot {}
292 out of range (vtable len {}
293) on the runtime class behind {}
294 (method `{}
295`)",
296                        7usize,
297                        __vt.len(),
298                        <VRIK as ::unity::ClassIdentity>::NAME,
299                        "GetIKSolver",
300                    )
301                });
302                let __inner: extern "C" fn(VRIK, ::unity::OptionalMethod) -> crate::root_motion::final_ik::iksolver::IKSolver =
303                    ::core::mem::transmute(__vi.method_ptr);
304                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305                __inner(__receiver, __mi)
306            }
307        }
308    }
309    #[doc = "`InitiateSolver()` overload"]
310    fn initiate_solver(self) -> () {
311        unsafe {
312            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313            {
314                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
315                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
316                    panic!(
317                        "unity: virtual slot {}
318 out of range (vtable len {}
319) on the runtime class behind {}
320 (method `{}
321`)",
322                        4usize,
323                        __vt.len(),
324                        <VRIK as ::unity::ClassIdentity>::NAME,
325                        "InitiateSolver",
326                    )
327                });
328                let __inner: extern "C" fn(VRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
329                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
330                __inner(__receiver, __mi)
331            }
332        }
333    }
334    #[doc = "`UpdateSolver()` overload"]
335    fn update_solver(self) -> () {
336        unsafe {
337            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
338            {
339                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
340                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
341                    panic!(
342                        "unity: virtual slot {}
343 out of range (vtable len {}
344) on the runtime class behind {}
345 (method `{}
346`)",
347                        5usize,
348                        __vt.len(),
349                        <VRIK as ::unity::ClassIdentity>::NAME,
350                        "UpdateSolver",
351                    )
352                });
353                let __inner: extern "C" fn(VRIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
354                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
355                __inner(__receiver, __mi)
356            }
357        }
358    }
359    #[doc = "`.ctor()` overload"]
360    fn ctor(self) -> () {
361        unsafe {
362            let __receiver = <VRIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363            ::unity::il2cpp_call!((::unity::module_base()+0x26a1a20usize)as*mut u8,();
364(VRIK)__receiver)
365        }
366    }
367}
368
369#[cfg(feature = "root_motion-final_ik-vrik")]
370impl<__T: IVRIK> IVRIKMethods for __T {}
371
372#[cfg(feature = "root_motion-final_ik-vrik")]
373impl VRIK {
374    pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
376    }
377
378    pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
380    }
381
382    pub fn open_setup_tutorial_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
384    }
385
386    pub fn auto_detect_references_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
388    }
389
390    pub fn guess_hand_orientations_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
392    }
393
394    pub fn get_ik_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
396    }
397
398    pub fn initiate_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
400    }
401
402    pub fn update_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
404    }
405
406    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
408    }
409}
410
411#[cfg(feature = "root_motion-final_ik-vrik")]
412impl VRIK {
413    #[doc = "Direct (non-virtual) call to `VRIK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
414    pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
415        let __mi = Self::open_user_manual_method_info();
416        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
417        __inner(this.into(), ::core::option::Option::None)
418    }
419
420    #[doc = "Direct (non-virtual) call to `VRIK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
421    pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
422        let __mi = Self::open_script_reference_method_info();
423        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
424        __inner(this.into(), ::core::option::Option::None)
425    }
426
427    #[doc = "Direct (non-virtual) call to `VRIK`'s own `GetIKSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
428    pub unsafe fn get_ik_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root_motion::final_ik::iksolver::IKSolver {
429        let __mi = Self::get_ik_solver_method_info();
430        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root_motion::final_ik::iksolver::IKSolver =
431            ::core::mem::transmute(__mi.method_ptr);
432        __inner(this.into(), ::core::option::Option::None)
433    }
434
435    #[doc = "Direct (non-virtual) call to `VRIK`'s own `InitiateSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
436    pub unsafe fn initiate_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
437        let __mi = Self::initiate_solver_method_info();
438        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
439        __inner(this.into(), ::core::option::Option::None)
440    }
441
442    #[doc = "Direct (non-virtual) call to `VRIK`'s own `UpdateSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
443    pub unsafe fn update_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
444        let __mi = Self::update_solver_method_info();
445        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
446        __inner(this.into(), ::core::option::Option::None)
447    }
448}
449
450#[cfg(feature = "root_motion-final_ik-vrik")]
451impl VRIK {
452    #[doc = "`.ctor()` — no args"]
453    pub fn new() -> Self {
454        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
455            panic!(
456                "{}
457::{}
458 failed to instantiate",
459                ::core::stringify!(VRIK),
460                ::core::stringify!(new),
461            )
462        });
463        <Self as IVRIKMethods>::ctor(this);
464        this
465    }
466}
467
468#[cfg(feature = "root_motion-final_ik-vrik")]
469#[doc(hidden)]
470pub mod prelude {
471    pub use super::{IVRIKMethods, IVRIK_References, IVRIK_ReferencesMethods, VRIK_References, IVRIK, VRIK};
472    #[cfg(feature = "root_motion-final_ik-ik")]
473    pub use crate::root_motion::final_ik::ik::IIKMethods;
474    #[cfg(feature = "root_motion-solvermanager")]
475    pub use crate::root_motion::solvermanager::ISolverManagerMethods;
476    #[cfg(feature = "system-object")]
477    pub use crate::system::object::IObjectMethods;
478    #[cfg(feature = "unity_engine-behaviour")]
479    pub use crate::unity_engine::behaviour::IBehaviourMethods;
480    #[cfg(feature = "unity_engine-component")]
481    pub use crate::unity_engine::component::IComponentMethods;
482    #[cfg(feature = "unity_engine-monobehaviour")]
483    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
484    #[cfg(feature = "unity_engine-object_2")]
485    pub use crate::unity_engine::object_2::IObject_2Methods;
486    pub use crate::{
487        root_motion::{
488            final_ik::ik::{IIK, IK},
489            solvermanager::ISolverManager,
490        },
491        system::object::IObject,
492        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
493    };
494}