engage/generated/root_motion/final_ik/
legik.rs1#[cfg(feature = "root_motion-final_ik-legik-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/legik/LegIK.md"))]
23 #[::unity::class(namespace = "RootMotion.FinalIK", name = "LegIK")]
24 #[parent(crate::root_motion::final_ik::ik::IK)]
25 pub struct LegIK {
26 #[offset(56)]
27 #[rename(name = "solver")]
28 pub solver: crate::root_motion::final_ik::iksolverleg::IKSolverLeg,
29 }
30}
31
32#[cfg(feature = "root_motion-final_ik-legik-types")]
33pub use __types::*;
34
35#[cfg(feature = "root_motion-final_ik-legik")]
36pub trait ILegIKMethods: ILegIK {
37 #[doc = "`OpenUserManual()` overload"]
38 fn open_user_manual(self) -> () {
39 unsafe {
40 let __receiver = <LegIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 {
42 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
43 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
44 panic!(
45 "unity: virtual slot {}
46 out of range (vtable len {}
47) on the runtime class behind {}
48 (method `{}
49`)",
50 8usize,
51 __vt.len(),
52 <LegIK as ::unity::ClassIdentity>::NAME,
53 "OpenUserManual",
54 )
55 });
56 let __inner: extern "C" fn(LegIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
57 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58 __inner(__receiver, __mi)
59 }
60 }
61 }
62 #[doc = "`OpenScriptReference()` overload"]
63 fn open_script_reference(self) -> () {
64 unsafe {
65 let __receiver = <LegIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 {
67 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
69 panic!(
70 "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75 9usize,
76 __vt.len(),
77 <LegIK as ::unity::ClassIdentity>::NAME,
78 "OpenScriptReference",
79 )
80 });
81 let __inner: extern "C" fn(LegIK, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
82 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
83 __inner(__receiver, __mi)
84 }
85 }
86 }
87 #[doc = "`SupportGroup()` overload"]
88 fn support_group(self) -> () {
89 unsafe {
90 let __receiver = <LegIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x1be0ce0usize)as*mut u8,();
92(LegIK)__receiver)
93 }
94 }
95 #[doc = "`ASThread()` overload"]
96 fn as_thread(self) -> () {
97 unsafe {
98 let __receiver = <LegIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x1be0d30usize)as*mut u8,();
100(LegIK)__receiver)
101 }
102 }
103 #[doc = "`GetIKSolver()` overload"]
104 fn get_ik_solver(self) -> crate::root_motion::final_ik::iksolver::IKSolver {
105 unsafe {
106 let __receiver = <LegIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 {
108 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
110 panic!(
111 "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116 7usize,
117 __vt.len(),
118 <LegIK as ::unity::ClassIdentity>::NAME,
119 "GetIKSolver",
120 )
121 });
122 let __inner: extern "C" fn(LegIK, ::unity::OptionalMethod) -> crate::root_motion::final_ik::iksolver::IKSolver =
123 ::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 = "`.ctor()` overload"]
130 fn ctor(self) -> () {
131 unsafe {
132 let __receiver = <LegIK as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x1be0d90usize)as*mut u8,();
134(LegIK)__receiver)
135 }
136 }
137}
138
139#[cfg(feature = "root_motion-final_ik-legik")]
140impl<__T: ILegIK> ILegIKMethods for __T {}
141
142#[cfg(feature = "root_motion-final_ik-legik")]
143impl LegIK {
144 pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146 }
147
148 pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150 }
151
152 pub fn support_group_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154 }
155
156 pub fn as_thread_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158 }
159
160 pub fn get_ik_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162 }
163
164 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
166 }
167}
168
169#[cfg(feature = "root_motion-final_ik-legik")]
170impl LegIK {
171 #[doc = "Direct (non-virtual) call to `LegIK`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
172 pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
173 let __mi = Self::open_user_manual_method_info();
174 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
175 __inner(this.into(), ::core::option::Option::None)
176 }
177
178 #[doc = "Direct (non-virtual) call to `LegIK`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
179 pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
180 let __mi = Self::open_script_reference_method_info();
181 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
182 __inner(this.into(), ::core::option::Option::None)
183 }
184
185 #[doc = "Direct (non-virtual) call to `LegIK`'s own `GetIKSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
186 pub unsafe fn get_ik_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::root_motion::final_ik::iksolver::IKSolver {
187 let __mi = Self::get_ik_solver_method_info();
188 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::root_motion::final_ik::iksolver::IKSolver =
189 ::core::mem::transmute(__mi.method_ptr);
190 __inner(this.into(), ::core::option::Option::None)
191 }
192}
193
194#[cfg(feature = "root_motion-final_ik-legik")]
195impl LegIK {
196 #[doc = "`.ctor()` — no args"]
197 pub fn new() -> Self {
198 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
199 panic!(
200 "{}
201::{}
202 failed to instantiate",
203 ::core::stringify!(LegIK),
204 ::core::stringify!(new),
205 )
206 });
207 <Self as ILegIKMethods>::ctor(this);
208 this
209 }
210}
211
212#[cfg(feature = "root_motion-final_ik-legik")]
213#[doc(hidden)]
214pub mod prelude {
215 pub use super::{ILegIK, ILegIKMethods, LegIK};
216 #[cfg(feature = "root_motion-final_ik-ik")]
217 pub use crate::root_motion::final_ik::ik::IIKMethods;
218 #[cfg(feature = "root_motion-solvermanager")]
219 pub use crate::root_motion::solvermanager::ISolverManagerMethods;
220 #[cfg(feature = "system-object")]
221 pub use crate::system::object::IObjectMethods;
222 #[cfg(feature = "unity_engine-behaviour")]
223 pub use crate::unity_engine::behaviour::IBehaviourMethods;
224 #[cfg(feature = "unity_engine-component")]
225 pub use crate::unity_engine::component::IComponentMethods;
226 #[cfg(feature = "unity_engine-monobehaviour")]
227 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
228 #[cfg(feature = "unity_engine-object_2")]
229 pub use crate::unity_engine::object_2::IObject_2Methods;
230 pub use crate::{
231 root_motion::{
232 final_ik::ik::{IIK, IK},
233 solvermanager::ISolverManager,
234 },
235 system::object::IObject,
236 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
237 };
238}