engage/generated/root_motion/final_ik/
ik.rs1#[cfg(feature = "root_motion-final_ik-ik-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/ik/IK.md"))]
20 #[::unity::class(namespace = "RootMotion.FinalIK", name = "IK")]
21 #[parent(crate::root_motion::solvermanager::SolverManager)]
22 pub struct IK {}
23}
24
25#[cfg(feature = "root_motion-final_ik-ik-types")]
26pub use __types::*;
27
28#[cfg(feature = "root_motion-final_ik-ik")]
29pub trait IIKMethods: IIK {
30 #[doc = "`GetIKSolver()` overload"]
31 fn get_ik_solver(self) -> crate::root_motion::final_ik::iksolver::IKSolver {
32 unsafe {
33 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
34 {
35 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
36 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
37 panic!(
38 "unity: virtual slot {}
39 out of range (vtable len {}
40) on the runtime class behind {}
41 (method `{}
42`)",
43 7usize,
44 __vt.len(),
45 <IK as ::unity::ClassIdentity>::NAME,
46 "GetIKSolver",
47 )
48 });
49 let __inner: extern "C" fn(IK, ::unity::OptionalMethod) -> crate::root_motion::final_ik::iksolver::IKSolver =
50 ::core::mem::transmute(__vi.method_ptr);
51 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
52 __inner(__receiver, __mi)
53 }
54 }
55 }
56 #[doc = "`UpdateSolver()` overload"]
57 fn update_solver(self) -> () {
58 unsafe {
59 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 {
61 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
62 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
63 panic!(
64 "unity: virtual slot {}
65 out of range (vtable len {}
66) on the runtime class behind {}
67 (method `{}
68`)",
69 5usize,
70 __vt.len(),
71 <IK as ::unity::ClassIdentity>::NAME,
72 "UpdateSolver",
73 )
74 });
75 let __inner: extern "C" fn(IK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
76 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77 __inner(__receiver, __mi)
78 }
79 }
80 }
81 #[doc = "`InitiateSolver()` overload"]
82 fn initiate_solver(self) -> () {
83 unsafe {
84 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 {
86 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
88 panic!(
89 "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94 4usize,
95 __vt.len(),
96 <IK as ::unity::ClassIdentity>::NAME,
97 "InitiateSolver",
98 )
99 });
100 let __inner: extern "C" fn(IK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
101 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102 __inner(__receiver, __mi)
103 }
104 }
105 }
106 #[doc = "`FixTransforms()` overload"]
107 fn fix_transforms(self) -> () {
108 unsafe {
109 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 {
111 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
112 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
113 panic!(
114 "unity: virtual slot {}
115 out of range (vtable len {}
116) on the runtime class behind {}
117 (method `{}
118`)",
119 6usize,
120 __vt.len(),
121 <IK as ::unity::ClassIdentity>::NAME,
122 "FixTransforms",
123 )
124 });
125 let __inner: extern "C" fn(IK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
126 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
127 __inner(__receiver, __mi)
128 }
129 }
130 }
131 #[doc = "`OpenUserManual()` overload"]
132 fn open_user_manual(self) -> () {
133 unsafe {
134 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 {
136 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
137 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
138 panic!(
139 "unity: virtual slot {}
140 out of range (vtable len {}
141) on the runtime class behind {}
142 (method `{}
143`)",
144 8usize,
145 __vt.len(),
146 <IK as ::unity::ClassIdentity>::NAME,
147 "OpenUserManual",
148 )
149 });
150 let __inner: extern "C" fn(IK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
151 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
152 __inner(__receiver, __mi)
153 }
154 }
155 }
156 #[doc = "`OpenScriptReference()` overload"]
157 fn open_script_reference(self) -> () {
158 unsafe {
159 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 {
161 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
163 panic!(
164 "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169 9usize,
170 __vt.len(),
171 <IK as ::unity::ClassIdentity>::NAME,
172 "OpenScriptReference",
173 )
174 });
175 let __inner: extern "C" fn(IK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
176 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177 __inner(__receiver, __mi)
178 }
179 }
180 }
181 #[doc = "`.ctor()` overload"]
182 fn ctor(self) -> () {
183 unsafe {
184 let __receiver = <IK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x2a77080usize)as*mut u8,();
186(IK)__receiver)
187 }
188 }
189}
190
191#[cfg(feature = "root_motion-final_ik-ik")]
192impl<__T: IIK> IIKMethods for __T {}
193
194#[cfg(feature = "root_motion-final_ik-ik")]
195impl IK {
196 pub fn get_ik_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
198 }
199
200 pub fn update_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
202 }
203
204 pub fn initiate_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
206 }
207
208 pub fn fix_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
210 }
211
212 pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
214 }
215
216 pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
218 }
219
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
222 }
223}
224
225#[cfg(feature = "root_motion-final_ik-ik")]
226impl IK {
227 #[doc = "Direct (non-virtual) call to `IK`'s own `GetIKSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
228 pub unsafe fn get_ik_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root_motion::final_ik::iksolver::IKSolver {
229 let __mi = Self::get_ik_solver_method_info();
230 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root_motion::final_ik::iksolver::IKSolver =
231 ::core::mem::transmute(__mi.method_ptr);
232 __inner(this.into(), ::core::option::Option::None)
233 }
234
235 #[doc = "Direct (non-virtual) call to `IK`'s own `UpdateSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236 pub unsafe fn update_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
237 let __mi = Self::update_solver_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 `IK`'s own `InitiateSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
243 pub unsafe fn initiate_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
244 let __mi = Self::initiate_solver_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 #[doc = "Direct (non-virtual) call to `IK`'s own `FixTransforms`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250 pub unsafe fn fix_transforms(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
251 let __mi = Self::fix_transforms_method_info();
252 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
253 __inner(this.into(), ::core::option::Option::None)
254 }
255
256 #[doc = "Direct (non-virtual) call to `IK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257 pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
258 let __mi = Self::open_user_manual_method_info();
259 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
260 __inner(this.into(), ::core::option::Option::None)
261 }
262
263 #[doc = "Direct (non-virtual) call to `IK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
264 pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
265 let __mi = Self::open_script_reference_method_info();
266 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
267 __inner(this.into(), ::core::option::Option::None)
268 }
269}
270
271#[cfg(feature = "root_motion-final_ik-ik")]
272impl IK {
273 #[doc = "`.ctor()` — no args"]
274 pub fn new() -> Self {
275 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
276 panic!(
277 "{}
278::{}
279 failed to instantiate",
280 ::core::stringify!(IK),
281 ::core::stringify!(new),
282 )
283 });
284 <Self as IIKMethods>::ctor(this);
285 this
286 }
287}
288
289#[cfg(feature = "root_motion-final_ik-ik")]
290#[doc(hidden)]
291pub mod prelude {
292 pub use super::{IIKMethods, IIK, IK};
293 #[cfg(feature = "root_motion-solvermanager")]
294 pub use crate::root_motion::solvermanager::ISolverManagerMethods;
295 #[cfg(feature = "system-object")]
296 pub use crate::system::object::IObjectMethods;
297 #[cfg(feature = "unity_engine-behaviour")]
298 pub use crate::unity_engine::behaviour::IBehaviourMethods;
299 #[cfg(feature = "unity_engine-component")]
300 pub use crate::unity_engine::component::IComponentMethods;
301 #[cfg(feature = "unity_engine-monobehaviour")]
302 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
303 #[cfg(feature = "unity_engine-object_2")]
304 pub use crate::unity_engine::object_2::IObject_2Methods;
305 pub use crate::{
306 root_motion::solvermanager::ISolverManager,
307 system::object::IObject,
308 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
309 };
310}