engage/generated/root_motion/final_ik/
handposer.rs1#[cfg(feature = "root_motion-final_ik-handposer-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/handposer/HandPoser.md"))]
23 #[::unity::class(namespace = "RootMotion.FinalIK", name = "HandPoser")]
24 #[parent(crate::root_motion::final_ik::poser::Poser)]
25 pub struct HandPoser {
26 #[offset(80)]
27 #[rename(name = "children")]
28 pub children: ::unity::Array<crate::unity_engine::transform::Transform>,
29 #[offset(88)]
30 #[rename(name = "_poseRoot")]
31 pub pose_root: crate::unity_engine::transform::Transform,
32 #[offset(96)]
33 #[rename(name = "poseChildren")]
34 pub pose_children: ::unity::Array<crate::unity_engine::transform::Transform>,
35 #[offset(104)]
36 #[rename(name = "defaultLocalPositions")]
37 pub default_local_positions: ::unity::Array<crate::unity_engine::vector3::Vector3>,
38 #[offset(112)]
39 #[rename(name = "defaultLocalRotations")]
40 pub default_local_rotations: ::unity::Array<crate::unity_engine::quaternion::Quaternion>,
41 }
42}
43
44#[cfg(feature = "root_motion-final_ik-handposer-types")]
45pub use __types::*;
46
47#[cfg(feature = "root_motion-final_ik-handposer")]
48pub trait IHandPoserMethods: IHandPoser {
49 #[doc = "`AutoMapping()` overload"]
50 fn auto_mapping(self) -> () {
51 unsafe {
52 let __receiver = <HandPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53 {
54 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
56 panic!(
57 "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62 7usize,
63 __vt.len(),
64 <HandPoser as ::unity::ClassIdentity>::NAME,
65 "AutoMapping",
66 )
67 });
68 let __inner: extern "C" fn(HandPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
69 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
70 __inner(__receiver, __mi)
71 }
72 }
73 }
74 #[doc = "`InitiatePoser()` overload"]
75 fn initiate_poser(self) -> () {
76 unsafe {
77 let __receiver = <HandPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 8usize,
88 __vt.len(),
89 <HandPoser as ::unity::ClassIdentity>::NAME,
90 "InitiatePoser",
91 )
92 });
93 let __inner: extern "C" fn(HandPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
94 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95 __inner(__receiver, __mi)
96 }
97 }
98 }
99 #[doc = "`FixPoserTransforms()` overload"]
100 fn fix_poser_transforms(self) -> () {
101 unsafe {
102 let __receiver = <HandPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 {
104 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
105 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
106 panic!(
107 "unity: virtual slot {}
108 out of range (vtable len {}
109) on the runtime class behind {}
110 (method `{}
111`)",
112 10usize,
113 __vt.len(),
114 <HandPoser as ::unity::ClassIdentity>::NAME,
115 "FixPoserTransforms",
116 )
117 });
118 let __inner: extern "C" fn(HandPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
119 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120 __inner(__receiver, __mi)
121 }
122 }
123 }
124 #[doc = "`UpdatePoser()` overload"]
125 fn update_poser(self) -> () {
126 unsafe {
127 let __receiver = <HandPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 {
129 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
130 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
131 panic!(
132 "unity: virtual slot {}
133 out of range (vtable len {}
134) on the runtime class behind {}
135 (method `{}
136`)",
137 9usize,
138 __vt.len(),
139 <HandPoser as ::unity::ClassIdentity>::NAME,
140 "UpdatePoser",
141 )
142 });
143 let __inner: extern "C" fn(HandPoser, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
144 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
145 __inner(__receiver, __mi)
146 }
147 }
148 }
149 #[doc = "`StoreDefaultState()` overload"]
150 fn store_default_state(self) -> () {
151 unsafe {
152 let __receiver = <HandPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x297b050usize)as*mut u8,();
154(HandPoser)__receiver)
155 }
156 }
157 #[doc = "`.ctor()` overload"]
158 fn ctor(self) -> () {
159 unsafe {
160 let __receiver = <HandPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x297b600usize)as*mut u8,();
162(HandPoser)__receiver)
163 }
164 }
165}
166
167#[cfg(feature = "root_motion-final_ik-handposer")]
168impl<__T: IHandPoser> IHandPoserMethods for __T {}
169
170#[cfg(feature = "root_motion-final_ik-handposer")]
171impl HandPoser {
172 pub fn auto_mapping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174 }
175
176 pub fn initiate_poser_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178 }
179
180 pub fn fix_poser_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182 }
183
184 pub fn update_poser_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186 }
187
188 pub fn store_default_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190 }
191
192 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194 }
195}
196
197#[cfg(feature = "root_motion-final_ik-handposer")]
198impl HandPoser {
199 #[doc = "Direct (non-virtual) call to `HandPoser`'s own `AutoMapping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
200 pub unsafe fn auto_mapping(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
201 let __mi = Self::auto_mapping_method_info();
202 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
203 __inner(this.into(), ::core::option::Option::None)
204 }
205
206 #[doc = "Direct (non-virtual) call to `HandPoser`'s own `InitiatePoser`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
207 pub unsafe fn initiate_poser(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
208 let __mi = Self::initiate_poser_method_info();
209 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
210 __inner(this.into(), ::core::option::Option::None)
211 }
212
213 #[doc = "Direct (non-virtual) call to `HandPoser`'s own `FixPoserTransforms`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
214 pub unsafe fn fix_poser_transforms(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
215 let __mi = Self::fix_poser_transforms_method_info();
216 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
217 __inner(this.into(), ::core::option::Option::None)
218 }
219
220 #[doc = "Direct (non-virtual) call to `HandPoser`'s own `UpdatePoser`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
221 pub unsafe fn update_poser(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
222 let __mi = Self::update_poser_method_info();
223 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
224 __inner(this.into(), ::core::option::Option::None)
225 }
226}
227
228#[cfg(feature = "root_motion-final_ik-handposer")]
229impl HandPoser {
230 #[doc = "`.ctor()` — no args"]
231 pub fn new() -> Self {
232 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
233 panic!(
234 "{}
235::{}
236 failed to instantiate",
237 ::core::stringify!(HandPoser),
238 ::core::stringify!(new),
239 )
240 });
241 <Self as IHandPoserMethods>::ctor(this);
242 this
243 }
244}
245
246#[cfg(feature = "root_motion-final_ik-handposer")]
247#[doc(hidden)]
248pub mod prelude {
249 pub use super::{HandPoser, IHandPoser, IHandPoserMethods};
250 #[cfg(feature = "root_motion-final_ik-poser")]
251 pub use crate::root_motion::final_ik::poser::IPoserMethods;
252 #[cfg(feature = "root_motion-solvermanager")]
253 pub use crate::root_motion::solvermanager::ISolverManagerMethods;
254 #[cfg(feature = "system-object")]
255 pub use crate::system::object::IObjectMethods;
256 #[cfg(feature = "unity_engine-behaviour")]
257 pub use crate::unity_engine::behaviour::IBehaviourMethods;
258 #[cfg(feature = "unity_engine-component")]
259 pub use crate::unity_engine::component::IComponentMethods;
260 #[cfg(feature = "unity_engine-monobehaviour")]
261 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
262 #[cfg(feature = "unity_engine-object_2")]
263 pub use crate::unity_engine::object_2::IObject_2Methods;
264 pub use crate::{
265 root_motion::{final_ik::poser::IPoser, solvermanager::ISolverManager},
266 system::object::IObject,
267 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
268 };
269}