engage/generated/root_motion/
solvermanager.rs1#[cfg(feature = "root_motion-solvermanager-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/solvermanager/SolverManager.md"))]
19 #[::unity::class(namespace = "RootMotion", name = "SolverManager")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct SolverManager {
22 #[offset(24)]
23 #[rename(name = "fixTransforms")]
24 pub fix_transforms_field: bool,
25 #[offset(32)]
26 #[rename(name = "animator")]
27 pub animator: crate::unity_engine::animator::Animator,
28 #[offset(40)]
29 #[rename(name = "legacy")]
30 pub legacy: crate::unity_engine::animation::Animation,
31 #[offset(48)]
32 #[rename(name = "updateFrame")]
33 pub update_frame: bool,
34 #[offset(49)]
35 #[rename(name = "componentInitiated")]
36 pub component_initiated: bool,
37 #[offset(50)]
38 #[rename(name = "skipSolverUpdate")]
39 pub skip_solver_update: bool,
40 }
41}
42
43#[cfg(feature = "root_motion-solvermanager-types")]
44pub use __types::*;
45
46#[cfg(feature = "root_motion-solvermanager")]
47pub trait ISolverManagerMethods: ISolverManager {
48 #[doc = "`Disable()` overload"]
49 fn disable(self) -> () {
50 unsafe {
51 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x1fe3070usize)as*mut u8,();
53(SolverManager)__receiver)
54 }
55 }
56 #[doc = "`InitiateSolver()` overload"]
57 fn initiate_solver(self) -> () {
58 unsafe {
59 let __receiver = <SolverManager 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(4usize).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 4usize,
70 __vt.len(),
71 <SolverManager as ::unity::ClassIdentity>::NAME,
72 "InitiateSolver",
73 )
74 });
75 let __inner: extern "C" fn(SolverManager, ::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 = "`UpdateSolver()` overload"]
82 fn update_solver(self) -> () {
83 unsafe {
84 let __receiver = <SolverManager 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(5usize).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 5usize,
95 __vt.len(),
96 <SolverManager as ::unity::ClassIdentity>::NAME,
97 "UpdateSolver",
98 )
99 });
100 let __inner: extern "C" fn(SolverManager, ::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 = <SolverManager 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 <SolverManager as ::unity::ClassIdentity>::NAME,
122 "FixTransforms",
123 )
124 });
125 let __inner: extern "C" fn(SolverManager, ::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 = "`OnDisable()` overload"]
132 fn on_disable(self) -> () {
133 unsafe {
134 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x1fe30b0usize)as*mut u8,();
136(SolverManager)__receiver)
137 }
138 }
139 #[doc = "`Start()` overload"]
140 fn start(self) -> () {
141 unsafe {
142 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x1fe3180usize)as*mut u8,();
144(SolverManager)__receiver)
145 }
146 }
147 #[doc = "`get_animatePhysics()` overload"]
148 fn get_animate_physics(self) -> bool {
149 unsafe {
150 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x1fe31e0usize)as*mut u8,bool;
152(SolverManager)__receiver)
153 }
154 }
155 #[doc = "`Initiate()` overload"]
156 fn initiate(self) -> () {
157 unsafe {
158 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x1fe3120usize)as*mut u8,();
160(SolverManager)__receiver)
161 }
162 }
163 #[doc = "`Update()` overload"]
164 fn update(self) -> () {
165 unsafe {
166 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x1fe34e0usize)as*mut u8,();
168(SolverManager)__receiver)
169 }
170 }
171 #[doc = "`FindAnimatorRecursive(crate::unity_engine::transform::Transform, bool)` overload"]
172 fn find_animator_recursive(
173 self,
174 t: impl ::core::convert::Into<crate::unity_engine::transform::Transform>,
175 find_in_children: impl ::core::convert::Into<bool>,
176 ) -> () {
177 unsafe {
178 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x1fe32d0usize)as*mut u8,();
180(SolverManager)__receiver,(crate::unity_engine::transform::Transform)::core::convert::Into::into(t),(bool)::core::convert::Into::into(find_in_children))
181 }
182 }
183 #[doc = "`get_isAnimated()` overload"]
184 fn get_is_animated(self) -> bool {
185 unsafe {
186 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187 ::unity::il2cpp_call!((::unity::module_base()+0x1fe3530usize)as*mut u8,bool;
188(SolverManager)__receiver)
189 }
190 }
191 #[doc = "`FixedUpdate()` overload"]
192 fn fixed_update(self) -> () {
193 unsafe {
194 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x1fe35f0usize)as*mut u8,();
196(SolverManager)__receiver)
197 }
198 }
199 #[doc = "`LateUpdate()` overload"]
200 fn late_update(self) -> () {
201 unsafe {
202 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x1fe3650usize)as*mut u8,();
204(SolverManager)__receiver)
205 }
206 }
207 #[doc = "`UpdateSolverExternal()` overload"]
208 fn update_solver_external(self) -> () {
209 unsafe {
210 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x1fe36b0usize)as*mut u8,();
212(SolverManager)__receiver)
213 }
214 }
215 #[doc = "`.ctor()` overload"]
216 fn ctor(self) -> () {
217 unsafe {
218 let __receiver = <SolverManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219 ::unity::il2cpp_call!((::unity::module_base()+0x1fe3700usize)as*mut u8,();
220(SolverManager)__receiver)
221 }
222 }
223}
224
225#[cfg(feature = "root_motion-solvermanager")]
226impl<__T: ISolverManager> ISolverManagerMethods for __T {}
227
228#[cfg(feature = "root_motion-solvermanager")]
229impl SolverManager {
230 pub fn disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
232 }
233
234 pub fn initiate_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
236 }
237
238 pub fn update_solver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
240 }
241
242 pub fn fix_transforms_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
244 }
245
246 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
248 }
249
250 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
252 }
253
254 pub fn get_animate_physics_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
256 }
257
258 pub fn initiate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
260 }
261
262 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
264 }
265
266 pub fn find_animator_recursive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
268 }
269
270 pub fn get_is_animated_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
272 }
273
274 pub fn fixed_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
276 }
277
278 pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
280 }
281
282 pub fn update_solver_external_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
284 }
285
286 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
288 }
289}
290
291#[cfg(feature = "root_motion-solvermanager")]
292impl SolverManager {
293 #[doc = "Direct (non-virtual) call to `SolverManager`'s own `InitiateSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
294 pub unsafe fn initiate_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
295 let __mi = Self::initiate_solver_method_info();
296 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
297 __inner(this.into(), ::core::option::Option::None)
298 }
299
300 #[doc = "Direct (non-virtual) call to `SolverManager`'s own `UpdateSolver`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301 pub unsafe fn update_solver(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
302 let __mi = Self::update_solver_method_info();
303 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
304 __inner(this.into(), ::core::option::Option::None)
305 }
306
307 #[doc = "Direct (non-virtual) call to `SolverManager`'s own `FixTransforms`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308 pub unsafe fn fix_transforms(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
309 let __mi = Self::fix_transforms_method_info();
310 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
311 __inner(this.into(), ::core::option::Option::None)
312 }
313}
314
315#[cfg(feature = "root_motion-solvermanager")]
316impl SolverManager {
317 #[doc = "`.ctor()` — no args"]
318 pub fn new() -> Self {
319 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
320 panic!(
321 "{}
322::{}
323 failed to instantiate",
324 ::core::stringify!(SolverManager),
325 ::core::stringify!(new),
326 )
327 });
328 <Self as ISolverManagerMethods>::ctor(this);
329 this
330 }
331}
332
333#[cfg(feature = "root_motion-solvermanager")]
334#[doc(hidden)]
335pub mod prelude {
336 pub use super::{ISolverManager, ISolverManagerMethods, SolverManager};
337 #[cfg(feature = "system-object")]
338 pub use crate::system::object::IObjectMethods;
339 #[cfg(feature = "unity_engine-behaviour")]
340 pub use crate::unity_engine::behaviour::IBehaviourMethods;
341 #[cfg(feature = "unity_engine-component")]
342 pub use crate::unity_engine::component::IComponentMethods;
343 #[cfg(feature = "unity_engine-monobehaviour")]
344 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
345 #[cfg(feature = "unity_engine-object_2")]
346 pub use crate::unity_engine::object_2::IObject_2Methods;
347 pub use crate::{
348 system::object::IObject,
349 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
350 };
351}