Skip to main content

engage/generated/root_motion/final_ik/
genericposer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-genericposer-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root_motion::{
10            final_ik::poser::{IPoser, Poser},
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/genericposer/GenericPoser.md"))]
23    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GenericPoser")]
24    #[parent(crate::root_motion::final_ik::poser::Poser)]
25    pub struct GenericPoser {
26        #[offset(80)]
27        #[rename(name = "maps")]
28        pub maps: ::unity::Array<crate::root_motion::final_ik::genericposer::GenericPoser_Map>,
29    }
30
31    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/genericposer/GenericPoser_Map.md"))]
32    #[::unity::class(namespace = "RootMotion.FinalIK", name = "GenericPoser.Map")]
33    #[parent(crate::system::object::Object)]
34    pub struct GenericPoser_Map {
35        #[offset(16)]
36        #[rename(name = "bone")]
37        pub bone: crate::unity_engine::transform::Transform,
38        #[offset(24)]
39        #[rename(name = "target")]
40        pub target: crate::unity_engine::transform::Transform,
41        #[offset(32)]
42        #[rename(name = "defaultLocalPosition")]
43        pub default_local_position: crate::unity_engine::vector3::Vector3,
44        #[offset(44)]
45        #[rename(name = "defaultLocalRotation")]
46        pub default_local_rotation: crate::unity_engine::quaternion::Quaternion,
47    }
48}
49
50#[cfg(feature = "root_motion-final_ik-genericposer-types")]
51pub use __types::*;
52
53#[cfg(feature = "root_motion-final_ik-genericposer")]
54pub trait IGenericPoserMethods: IGenericPoser {
55    #[doc = "`AutoMapping()` overload"]
56    fn auto_mapping(self) -> () {
57        unsafe {
58            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            {
60                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
62                    panic!(
63                        "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68                        7usize,
69                        __vt.len(),
70                        <GenericPoser as ::unity::ClassIdentity>::NAME,
71                        "AutoMapping",
72                    )
73                });
74                let __inner: extern "C" fn(GenericPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
75                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
76                __inner(__receiver, __mi)
77            }
78        }
79    }
80    #[doc = "`InitiatePoser()` overload"]
81    fn initiate_poser(self) -> () {
82        unsafe {
83            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            {
85                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
86                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
87                    panic!(
88                        "unity: virtual slot {}
89 out of range (vtable len {}
90) on the runtime class behind {}
91 (method `{}
92`)",
93                        8usize,
94                        __vt.len(),
95                        <GenericPoser as ::unity::ClassIdentity>::NAME,
96                        "InitiatePoser",
97                    )
98                });
99                let __inner: extern "C" fn(GenericPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
100                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101                __inner(__receiver, __mi)
102            }
103        }
104    }
105    #[doc = "`UpdatePoser()` overload"]
106    fn update_poser(self) -> () {
107        unsafe {
108            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        9usize,
119                        __vt.len(),
120                        <GenericPoser as ::unity::ClassIdentity>::NAME,
121                        "UpdatePoser",
122                    )
123                });
124                let __inner: extern "C" fn(GenericPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126                __inner(__receiver, __mi)
127            }
128        }
129    }
130    #[doc = "`FixPoserTransforms()` overload"]
131    fn fix_poser_transforms(self) -> () {
132        unsafe {
133            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            {
135                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
137                    panic!(
138                        "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143                        10usize,
144                        __vt.len(),
145                        <GenericPoser as ::unity::ClassIdentity>::NAME,
146                        "FixPoserTransforms",
147                    )
148                });
149                let __inner: extern "C" fn(GenericPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
150                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
151                __inner(__receiver, __mi)
152            }
153        }
154    }
155    #[doc = "`StoreDefaultState()` overload"]
156    fn store_default_state(self) -> () {
157        unsafe {
158            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x2521750usize)as*mut u8,();
160(GenericPoser)__receiver)
161        }
162    }
163    #[doc = "`GetTargetNamed(::unity::Il2CppString, ::unity::Array<crate::unity_engine::transform::Transform>)` overload"]
164    fn get_target_named(
165        self,
166        t_name: impl ::core::convert::Into<::unity::Il2CppString>,
167        array: impl ::core::convert::Into<::unity::Array<crate::unity_engine::transform::Transform>>,
168    ) -> crate::unity_engine::transform::Transform {
169        unsafe {
170            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x25216a0usize)as*mut u8,crate::unity_engine::transform::Transform;
172(GenericPoser)__receiver,(::unity::Il2CppString)::core::convert::Into::into(t_name),(::unity::Array<crate::unity_engine::transform::Transform>)::core::convert::Into::into(array))
173        }
174    }
175    #[doc = "`.ctor()` overload"]
176    fn ctor(self) -> () {
177        unsafe {
178            let __receiver = <GenericPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x25219b0usize)as*mut u8,();
180(GenericPoser)__receiver)
181        }
182    }
183}
184
185#[cfg(feature = "root_motion-final_ik-genericposer")]
186impl<__T: IGenericPoser> IGenericPoserMethods for __T {}
187
188#[cfg(feature = "root_motion-final_ik-genericposer")]
189impl GenericPoser {
190    pub fn auto_mapping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
192    }
193
194    pub fn initiate_poser_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
196    }
197
198    pub fn update_poser_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
200    }
201
202    pub fn fix_poser_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
204    }
205
206    pub fn store_default_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
208    }
209
210    pub fn get_target_named_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
212    }
213
214    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
216    }
217}
218
219#[cfg(feature = "root_motion-final_ik-genericposer")]
220impl GenericPoser {
221    #[doc = "Direct (non-virtual) call to `GenericPoser`'s own `AutoMapping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222    pub unsafe fn auto_mapping(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
223        let __mi = Self::auto_mapping_method_info();
224        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
225        __inner(this.into(), ::core::option::Option::None)
226    }
227
228    #[doc = "Direct (non-virtual) call to `GenericPoser`'s own `InitiatePoser`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229    pub unsafe fn initiate_poser(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
230        let __mi = Self::initiate_poser_method_info();
231        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
232        __inner(this.into(), ::core::option::Option::None)
233    }
234
235    #[doc = "Direct (non-virtual) call to `GenericPoser`'s own `UpdatePoser`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236    pub unsafe fn update_poser(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
237        let __mi = Self::update_poser_method_info();
238        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
239        __inner(this.into(), ::core::option::Option::None)
240    }
241
242    #[doc = "Direct (non-virtual) call to `GenericPoser`'s own `FixPoserTransforms`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
243    pub unsafe fn fix_poser_transforms(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
244        let __mi = Self::fix_poser_transforms_method_info();
245        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
246        __inner(this.into(), ::core::option::Option::None)
247    }
248}
249
250#[cfg(feature = "root_motion-final_ik-genericposer")]
251impl GenericPoser {
252    #[doc = "`.ctor()` — no args"]
253    pub fn new() -> Self {
254        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
255            panic!(
256                "{}
257::{}
258 failed to instantiate",
259                ::core::stringify!(GenericPoser),
260                ::core::stringify!(new),
261            )
262        });
263        <Self as IGenericPoserMethods>::ctor(this);
264        this
265    }
266}
267
268#[cfg(feature = "root_motion-final_ik-genericposer")]
269pub trait IGenericPoser_MapMethods: IGenericPoser_Map {
270    #[doc = "`.ctor(crate::unity_engine::transform::Transform, crate::unity_engine::transform::Transform)` overload"]
271    fn ctor(
272        self,
273        bone: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
274        target: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
275    ) -> () {
276        unsafe {
277            let __receiver = <GenericPoser_Map as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278            ::unity::il2cpp_call!((::unity::module_base()+0x1e70be0usize)as*mut u8,();
279(GenericPoser_Map)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(bone),(crate::unity_engine::transform::Transform)::core::convert::Into::into(target))
280        }
281    }
282    #[doc = "`StoreDefaultState()` overload"]
283    fn store_default_state(self) -> () {
284        unsafe {
285            let __receiver = <GenericPoser_Map as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286            ::unity::il2cpp_call!((::unity::module_base()+0x1e70c70usize)as*mut u8,();
287(GenericPoser_Map)__receiver)
288        }
289    }
290    #[doc = "`FixTransform()` overload"]
291    fn fix_transform(self) -> () {
292        unsafe {
293            let __receiver = <GenericPoser_Map as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294            ::unity::il2cpp_call!((::unity::module_base()+0x1e70cc0usize)as*mut u8,();
295(GenericPoser_Map)__receiver)
296        }
297    }
298    #[doc = "`Update(f32, f32)` overload"]
299    fn update(self, local_rotation_weight: impl ::core::convert::Into<f32>, local_position_weight: impl ::core::convert::Into<f32>) -> () {
300        unsafe {
301            let __receiver = <GenericPoser_Map as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
302            ::unity::il2cpp_call!((::unity::module_base()+0x1e70d00usize)as*mut u8,();
303(GenericPoser_Map)__receiver,(f32)::core::convert::Into::into(local_rotation_weight),(f32)::core::convert::Into::into(local_position_weight))
304        }
305    }
306}
307
308#[cfg(feature = "root_motion-final_ik-genericposer")]
309impl<__T: IGenericPoser_Map> IGenericPoser_MapMethods for __T {}
310
311#[cfg(feature = "root_motion-final_ik-genericposer")]
312impl GenericPoser_Map {
313    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
315    }
316
317    pub fn store_default_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
319    }
320
321    pub fn fix_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
323    }
324
325    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
327    }
328}
329
330#[cfg(feature = "root_motion-final_ik-genericposer")]
331impl GenericPoser_Map {
332    #[doc = "`.ctor(crate::unity_engine::transform::Transform, crate::unity_engine::transform::Transform)` — overload selector"]
333    pub fn new(bone: crate::unity_engine::transform::Transform, target: crate::unity_engine::transform::Transform) -> Self {
334        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
335            panic!(
336                "{}
337::{}
338 failed to instantiate",
339                ::core::stringify!(GenericPoser_Map),
340                ::core::stringify!(new),
341            )
342        });
343        <Self as IGenericPoser_MapMethods>::ctor(this, bone, target);
344        this
345    }
346}
347
348#[cfg(feature = "root_motion-final_ik-genericposer")]
349#[doc(hidden)]
350pub mod prelude {
351    pub use super::{GenericPoser, GenericPoser_Map, IGenericPoser, IGenericPoserMethods, IGenericPoser_Map, IGenericPoser_MapMethods};
352    #[cfg(feature = "root_motion-final_ik-poser")]
353    pub use crate::root_motion::final_ik::poser::IPoserMethods;
354    #[cfg(feature = "root_motion-solvermanager")]
355    pub use crate::root_motion::solvermanager::ISolverManagerMethods;
356    #[cfg(feature = "system-object")]
357    pub use crate::system::object::IObjectMethods;
358    #[cfg(feature = "unity_engine-behaviour")]
359    pub use crate::unity_engine::behaviour::IBehaviourMethods;
360    #[cfg(feature = "unity_engine-component")]
361    pub use crate::unity_engine::component::IComponentMethods;
362    #[cfg(feature = "unity_engine-monobehaviour")]
363    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
364    #[cfg(feature = "unity_engine-object_2")]
365    pub use crate::unity_engine::object_2::IObject_2Methods;
366    pub use crate::{
367        root_motion::{final_ik::poser::IPoser, solvermanager::ISolverManager},
368        system::object::IObject,
369        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
370    };
371}