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