Skip to main content

engage/generated/root_motion/final_ik/
aimcontroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-aimcontroller-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/final_ik/aimcontroller/AimController.md"))]
19    #[::unity::class(namespace = "RootMotion.FinalIK", name = "AimController")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct AimController {
22        #[offset(24)]
23        #[rename(name = "ik")]
24        pub ik: crate::root_motion::final_ik::aimik::AimIK,
25        #[offset(32)]
26        #[rename(name = "weight")]
27        pub weight: f32,
28        #[offset(40)]
29        #[rename(name = "target")]
30        pub target: crate::unity_engine::transform::Transform,
31        #[offset(48)]
32        #[rename(name = "targetSwitchSmoothTime")]
33        pub target_switch_smooth_time: f32,
34        #[offset(52)]
35        #[rename(name = "weightSmoothTime")]
36        pub weight_smooth_time: f32,
37        #[offset(56)]
38        #[rename(name = "smoothTurnTowardsTarget")]
39        pub smooth_turn_towards_target: bool,
40        #[offset(60)]
41        #[rename(name = "maxRadiansDelta")]
42        pub max_radians_delta: f32,
43        #[offset(64)]
44        #[rename(name = "maxMagnitudeDelta")]
45        pub max_magnitude_delta: f32,
46        #[offset(68)]
47        #[rename(name = "slerpSpeed")]
48        pub slerp_speed: f32,
49        #[offset(72)]
50        #[rename(name = "smoothDampTime")]
51        pub smooth_damp_time: f32,
52        #[offset(76)]
53        #[rename(name = "pivotOffsetFromRoot")]
54        pub pivot_offset_from_root: crate::unity_engine::vector3::Vector3,
55        #[offset(88)]
56        #[rename(name = "minDistance")]
57        pub min_distance: f32,
58        #[offset(92)]
59        #[rename(name = "offset")]
60        pub offset: crate::unity_engine::vector3::Vector3,
61        #[offset(104)]
62        #[rename(name = "maxRootAngle")]
63        pub max_root_angle: f32,
64        #[offset(108)]
65        #[rename(name = "turnToTarget")]
66        pub turn_to_target_field: bool,
67        #[offset(112)]
68        #[rename(name = "turnToTargetTime")]
69        pub turn_to_target_time: f32,
70        #[offset(116)]
71        #[rename(name = "useAnimatedAimDirection")]
72        pub use_animated_aim_direction: bool,
73        #[offset(120)]
74        #[rename(name = "animatedAimDirection")]
75        pub animated_aim_direction: crate::unity_engine::vector3::Vector3,
76        #[offset(136)]
77        #[rename(name = "lastTarget")]
78        pub last_target: crate::unity_engine::transform::Transform,
79        #[offset(144)]
80        #[rename(name = "switchWeight")]
81        pub switch_weight: f32,
82        #[offset(148)]
83        #[rename(name = "switchWeightV")]
84        pub switch_weight_v: f32,
85        #[offset(152)]
86        #[rename(name = "weightV")]
87        pub weight_v: f32,
88        #[offset(156)]
89        #[rename(name = "lastPosition")]
90        pub last_position: crate::unity_engine::vector3::Vector3,
91        #[offset(168)]
92        #[rename(name = "dir")]
93        pub dir: crate::unity_engine::vector3::Vector3,
94        #[offset(180)]
95        #[rename(name = "lastSmoothTowardsTarget")]
96        pub last_smooth_towards_target: bool,
97        #[offset(181)]
98        #[rename(name = "turningToTarget")]
99        pub turning_to_target: bool,
100        #[offset(184)]
101        #[rename(name = "turnToTargetMlp")]
102        pub turn_to_target_mlp: f32,
103        #[offset(188)]
104        #[rename(name = "turnToTargetMlpV")]
105        pub turn_to_target_mlp_v: f32,
106        #[offset(192)]
107        #[rename(name = "yawV")]
108        pub yaw_v: f32,
109        #[offset(196)]
110        #[rename(name = "pitchV")]
111        pub pitch_v: f32,
112        #[offset(200)]
113        #[rename(name = "dirMagV")]
114        pub dir_mag_v: f32,
115    }
116}
117
118#[cfg(feature = "root_motion-final_ik-aimcontroller-types")]
119pub use __types::*;
120
121#[cfg(feature = "root_motion-final_ik-aimcontroller")]
122pub trait IAimControllerMethods: IAimController {
123    #[doc = "`Start()` overload"]
124    fn start(self) -> () {
125        unsafe {
126            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2bca440usize)as*mut u8,();
128(AimController)__receiver)
129        }
130    }
131    #[doc = "`LateUpdate()` overload"]
132    fn late_update(self) -> () {
133        unsafe {
134            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x2bca590usize)as*mut u8,();
136(AimController)__receiver)
137        }
138    }
139    #[doc = "`get_pivot()` overload"]
140    fn get_pivot(self) -> crate::unity_engine::vector3::Vector3 {
141        unsafe {
142            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2bca510usize)as*mut u8,crate::unity_engine::vector3::Vector3;
144(AimController)__receiver)
145        }
146    }
147    #[doc = "`ApplyMinDistance()` overload"]
148    fn apply_min_distance(self) -> () {
149        unsafe {
150            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x2bcad60usize)as*mut u8,();
152(AimController)__receiver)
153        }
154    }
155    #[doc = "`RootRotation()` overload"]
156    fn root_rotation(self) -> () {
157        unsafe {
158            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x2bcae70usize)as*mut u8,();
160(AimController)__receiver)
161        }
162    }
163    #[doc = "`TurnToTarget()` overload"]
164    fn turn_to_target(self) -> crate::system::collections::ienumerator::IEnumerator {
165        unsafe {
166            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            ::unity::il2cpp_call!((::unity::module_base()+0x2bcb180usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
168(AimController)__receiver)
169        }
170    }
171    #[doc = "`.ctor()` overload"]
172    fn ctor(self) -> () {
173        unsafe {
174            let __receiver = <AimController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x2bcb200usize)as*mut u8,();
176(AimController)__receiver)
177        }
178    }
179}
180
181#[cfg(feature = "root_motion-final_ik-aimcontroller")]
182impl<__T: IAimController> IAimControllerMethods for __T {}
183
184#[cfg(feature = "root_motion-final_ik-aimcontroller")]
185impl AimController {
186    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
188    }
189
190    pub fn late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
192    }
193
194    pub fn get_pivot_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
196    }
197
198    pub fn apply_min_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
200    }
201
202    pub fn root_rotation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
204    }
205
206    pub fn turn_to_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
208    }
209
210    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
212    }
213}
214
215#[cfg(feature = "root_motion-final_ik-aimcontroller")]
216impl AimController {
217    #[doc = "`.ctor()` — no args"]
218    pub fn new() -> Self {
219        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
220            panic!(
221                "{}
222::{}
223 failed to instantiate",
224                ::core::stringify!(AimController),
225                ::core::stringify!(new),
226            )
227        });
228        <Self as IAimControllerMethods>::ctor(this);
229        this
230    }
231}
232
233#[cfg(feature = "root_motion-final_ik-aimcontroller")]
234#[doc(hidden)]
235pub mod prelude {
236    pub use super::{AimController, IAimController, IAimControllerMethods};
237    #[cfg(feature = "system-object")]
238    pub use crate::system::object::IObjectMethods;
239    #[cfg(feature = "unity_engine-behaviour")]
240    pub use crate::unity_engine::behaviour::IBehaviourMethods;
241    #[cfg(feature = "unity_engine-component")]
242    pub use crate::unity_engine::component::IComponentMethods;
243    #[cfg(feature = "unity_engine-monobehaviour")]
244    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
245    #[cfg(feature = "unity_engine-object_2")]
246    pub use crate::unity_engine::object_2::IObject_2Methods;
247    pub use crate::{
248        system::object::IObject,
249        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
250    };
251}