engage/generated/root_motion/final_ik/
grounder.rs1#[cfg(feature = "root_motion-final_ik-grounder-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 delegate::{Delegate, IDelegate},
11 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12 object::{IObject, Object},
13 },
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/grounder/Grounder_GrounderDelegate.md"))]
23 #[::unity::class(namespace = "RootMotion.FinalIK", name = "Grounder.GrounderDelegate")]
24 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25 pub struct Grounder_GrounderDelegate {}
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/grounder/Grounder.md"))]
28 #[::unity::class(namespace = "RootMotion.FinalIK", name = "Grounder")]
29 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
30 pub struct Grounder {
31 #[offset(24)]
32 #[rename(name = "weight")]
33 pub weight: f32,
34 #[offset(32)]
35 #[rename(name = "solver")]
36 pub solver: crate::root_motion::final_ik::grounding::Grounding,
37 #[offset(40)]
38 #[rename(name = "OnPreGrounder")]
39 pub on_pre_grounder: crate::root_motion::final_ik::grounder::Grounder_GrounderDelegate,
40 #[offset(48)]
41 #[rename(name = "OnPostGrounder")]
42 pub on_post_grounder: crate::root_motion::final_ik::grounder::Grounder_GrounderDelegate,
43 }
44}
45
46#[cfg(feature = "root_motion-final_ik-grounder-types")]
47pub use __types::*;
48
49#[cfg(feature = "root_motion-final_ik-grounder")]
50pub trait IGrounder_GrounderDelegateMethods: IGrounder_GrounderDelegate {
51 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
52 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
53 unsafe {
54 let __receiver =
55 <Grounder_GrounderDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x1cdb500usize)as*mut u8,();
57(Grounder_GrounderDelegate)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
58 }
59 }
60 #[doc = "`Invoke()` overload"]
61 fn invoke(self) -> () {
62 unsafe {
63 let __receiver =
64 <Grounder_GrounderDelegate as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 {
66 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
67 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
68 panic!(
69 "unity: virtual slot {}
70 out of range (vtable len {}
71) on the runtime class behind {}
72 (method `{}
73`)",
74 13usize,
75 __vt.len(),
76 <Grounder_GrounderDelegate as ::unity::ClassIdentity>::NAME,
77 "Invoke",
78 )
79 });
80 let __inner: extern "C" fn(Grounder_GrounderDelegate, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
81 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
82 __inner(__receiver, __mi)
83 }
84 }
85 }
86}
87
88#[cfg(feature = "root_motion-final_ik-grounder")]
89impl<__T: IGrounder_GrounderDelegate> IGrounder_GrounderDelegateMethods for __T {}
90
91#[cfg(feature = "root_motion-final_ik-grounder")]
92impl Grounder_GrounderDelegate {
93 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
95 }
96
97 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
99 }
100}
101
102#[cfg(feature = "root_motion-final_ik-grounder")]
103impl Grounder_GrounderDelegate {
104 #[doc = "Direct (non-virtual) call to `Grounder_GrounderDelegate`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
105 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
106 let __mi = Self::invoke_method_info();
107 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
108 __inner(this.into(), ::core::option::Option::None)
109 }
110}
111
112#[cfg(feature = "root_motion-final_ik-grounder")]
113impl Grounder_GrounderDelegate {
114 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
115 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
116 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
117 panic!(
118 "{}
119::{}
120 failed to instantiate",
121 ::core::stringify!(Grounder_GrounderDelegate),
122 ::core::stringify!(new),
123 )
124 });
125 <Self as IGrounder_GrounderDelegateMethods>::ctor(this, object, method);
126 this
127 }
128}
129
130#[cfg(feature = "root_motion-final_ik-grounder")]
131pub trait IGrounderMethods: IGrounder {
132 #[doc = "`ResetPosition()` overload"]
133 fn reset_position(self) -> () {
134 unsafe {
135 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 {
137 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
139 panic!(
140 "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145 4usize,
146 __vt.len(),
147 <Grounder as ::unity::ClassIdentity>::NAME,
148 "ResetPosition",
149 )
150 });
151 let __inner: extern "C" fn(Grounder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
152 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153 __inner(__receiver, __mi)
154 }
155 }
156 }
157 #[doc = "`get_initiated()` overload"]
158 fn get_initiated(self) -> bool {
159 unsafe {
160 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x2970d10usize)as*mut u8,bool;
162(Grounder)__receiver)
163 }
164 }
165 #[doc = "`set_initiated(bool)` overload"]
166 fn set_initiated(self, value: impl ::core::convert::Into<bool>) -> () {
167 unsafe {
168 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169 ::unity::il2cpp_call!((::unity::module_base()+0x2970d20usize)as*mut u8,();
170(Grounder)__receiver,(bool)::core::convert::Into::into(value))
171 }
172 }
173 #[doc = "`GetSpineOffsetTarget()` overload"]
174 fn get_spine_offset_target(self) -> crate::unity_engine::vector3::Vector3 {
175 unsafe {
176 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177 ::unity::il2cpp_call!((::unity::module_base()+0x2970d30usize)as*mut u8,crate::unity_engine::vector3::Vector3;
178(Grounder)__receiver)
179 }
180 }
181 #[doc = "`LogWarning(::unity::Il2CppString)` overload"]
182 fn log_warning(self, message: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
183 unsafe {
184 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185 ::unity::il2cpp_call!((::unity::module_base()+0x2970ed0usize)as*mut u8,();
186(Grounder)__receiver,(::unity::Il2CppString)::core::convert::Into::into(message))
187 }
188 }
189 #[doc = "`GetLegSpineBendVector(crate::root_motion::final_ik::grounding::Grounding_Leg)` overload"]
190 fn get_leg_spine_bend_vector(
191 self,
192 leg: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding_Leg>,
193 ) -> crate::unity_engine::vector3::Vector3 {
194 unsafe {
195 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x2970de0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
197(Grounder)__receiver,(crate::root_motion::final_ik::grounding::Grounding_Leg)::core::convert::Into::into(leg))
198 }
199 }
200 #[doc = "`GetLegSpineTangent(crate::root_motion::final_ik::grounding::Grounding_Leg)` overload"]
201 fn get_leg_spine_tangent(
202 self,
203 leg: impl ::core::convert::Into<crate::root_motion::final_ik::grounding::Grounding_Leg>,
204 ) -> crate::unity_engine::vector3::Vector3 {
205 unsafe {
206 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x2970f10usize)as*mut u8,crate::unity_engine::vector3::Vector3;
208(Grounder)__receiver,(crate::root_motion::final_ik::grounding::Grounding_Leg)::core::convert::Into::into(leg))
209 }
210 }
211 #[doc = "`OpenUserManual()` overload"]
212 fn open_user_manual(self) -> () {
213 unsafe {
214 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 {
216 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
217 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
218 panic!(
219 "unity: virtual slot {}
220 out of range (vtable len {}
221) on the runtime class behind {}
222 (method `{}
223`)",
224 5usize,
225 __vt.len(),
226 <Grounder as ::unity::ClassIdentity>::NAME,
227 "OpenUserManual",
228 )
229 });
230 let __inner: extern "C" fn(Grounder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
231 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
232 __inner(__receiver, __mi)
233 }
234 }
235 }
236 #[doc = "`OpenScriptReference()` overload"]
237 fn open_script_reference(self) -> () {
238 unsafe {
239 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240 {
241 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
242 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
243 panic!(
244 "unity: virtual slot {}
245 out of range (vtable len {}
246) on the runtime class behind {}
247 (method `{}
248`)",
249 6usize,
250 __vt.len(),
251 <Grounder as ::unity::ClassIdentity>::NAME,
252 "OpenScriptReference",
253 )
254 });
255 let __inner: extern "C" fn(Grounder, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
256 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
257 __inner(__receiver, __mi)
258 }
259 }
260 }
261 #[doc = "`.ctor()` overload"]
262 fn ctor(self) -> () {
263 unsafe {
264 let __receiver = <Grounder as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265 ::unity::il2cpp_call!((::unity::module_base()+0x2971020usize)as*mut u8,();
266(Grounder)__receiver)
267 }
268 }
269}
270
271#[cfg(feature = "root_motion-final_ik-grounder")]
272impl<__T: IGrounder> IGrounderMethods for __T {}
273
274#[cfg(feature = "root_motion-final_ik-grounder")]
275impl Grounder {
276 pub fn reset_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
278 }
279
280 pub fn get_initiated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
282 }
283
284 pub fn set_initiated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
286 }
287
288 pub fn get_spine_offset_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
290 }
291
292 pub fn log_warning_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
294 }
295
296 pub fn get_leg_spine_bend_vector_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
298 }
299
300 pub fn get_leg_spine_tangent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
302 }
303
304 pub fn open_user_manual_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
306 }
307
308 pub fn open_script_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
310 }
311
312 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
314 }
315}
316
317#[cfg(feature = "root_motion-final_ik-grounder")]
318impl Grounder {
319 #[doc = "Direct (non-virtual) call to `Grounder`'s own `ResetPosition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320 pub unsafe fn reset_position(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
321 let __mi = Self::reset_position_method_info();
322 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
323 __inner(this.into(), ::core::option::Option::None)
324 }
325
326 #[doc = "Direct (non-virtual) call to `Grounder`'s own `OpenUserManual`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
327 pub unsafe fn open_user_manual(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
328 let __mi = Self::open_user_manual_method_info();
329 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
330 __inner(this.into(), ::core::option::Option::None)
331 }
332
333 #[doc = "Direct (non-virtual) call to `Grounder`'s own `OpenScriptReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
334 pub unsafe fn open_script_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
335 let __mi = Self::open_script_reference_method_info();
336 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
337 __inner(this.into(), ::core::option::Option::None)
338 }
339}
340
341#[cfg(feature = "root_motion-final_ik-grounder")]
342impl Grounder {
343 #[doc = "`.ctor()` — no args"]
344 pub fn new() -> Self {
345 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
346 panic!(
347 "{}
348::{}
349 failed to instantiate",
350 ::core::stringify!(Grounder),
351 ::core::stringify!(new),
352 )
353 });
354 <Self as IGrounderMethods>::ctor(this);
355 this
356 }
357}
358
359#[cfg(feature = "root_motion-final_ik-grounder")]
360#[doc(hidden)]
361pub mod prelude {
362 pub use super::{
363 Grounder, Grounder_GrounderDelegate, IGrounder, IGrounderMethods, IGrounder_GrounderDelegate, IGrounder_GrounderDelegateMethods,
364 };
365 #[cfg(feature = "system-delegate")]
366 pub use crate::system::delegate::IDelegateMethods;
367 #[cfg(feature = "system-multicastdelegate")]
368 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
369 #[cfg(feature = "system-object")]
370 pub use crate::system::object::IObjectMethods;
371 #[cfg(feature = "unity_engine-behaviour")]
372 pub use crate::unity_engine::behaviour::IBehaviourMethods;
373 #[cfg(feature = "unity_engine-component")]
374 pub use crate::unity_engine::component::IComponentMethods;
375 #[cfg(feature = "unity_engine-monobehaviour")]
376 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
377 #[cfg(feature = "unity_engine-object_2")]
378 pub use crate::unity_engine::object_2::IObject_2Methods;
379 pub use crate::{
380 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
381 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
382 };
383}