Skip to main content

engage/generated/root_motion/final_ik/
aimik.rs

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