Skip to main content

engage/generated/root_motion/final_ik/
aimposer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root_motion-final_ik-aimposer-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/aimposer/AimPoser_Pose.md"))]
19    #[::unity::class(namespace = "RootMotion.FinalIK", name = "AimPoser.Pose")]
20    #[parent(crate::system::object::Object)]
21    pub struct AimPoser_Pose {
22        #[offset(16)]
23        #[rename(name = "visualize")]
24        pub visualize: bool,
25        #[offset(24)]
26        #[rename(name = "name")]
27        pub name: ::unity::Il2CppString,
28        #[offset(32)]
29        #[rename(name = "direction")]
30        pub direction: crate::unity_engine::vector3::Vector3,
31        #[offset(44)]
32        #[rename(name = "yaw")]
33        pub yaw: f32,
34        #[offset(48)]
35        #[rename(name = "pitch")]
36        pub pitch: f32,
37        #[offset(52)]
38        #[rename(name = "angleBuffer")]
39        pub angle_buffer_field: f32,
40    }
41
42    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root_motion/final_ik/aimposer/AimPoser.md"))]
43    #[::unity::class(namespace = "RootMotion.FinalIK", name = "AimPoser")]
44    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
45    pub struct AimPoser {
46        #[offset(24)]
47        #[rename(name = "angleBuffer")]
48        pub angle_buffer: f32,
49        #[offset(32)]
50        #[rename(name = "poses")]
51        pub poses: ::unity::Array<crate::root_motion::final_ik::aimposer::AimPoser_Pose>,
52    }
53}
54
55#[cfg(feature = "root_motion-final_ik-aimposer-types")]
56pub use __types::*;
57
58#[cfg(feature = "root_motion-final_ik-aimposer")]
59pub trait IAimPoser_PoseMethods: IAimPoser_Pose {
60    #[doc = "`IsInDirection(crate::unity_engine::vector3::Vector3)` overload"]
61    fn is_in_direction(self, d: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> bool {
62        unsafe {
63            let __receiver = <AimPoser_Pose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x1b9ad00usize)as*mut u8,bool;
65(AimPoser_Pose)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(d))
66        }
67    }
68    #[doc = "`SetAngleBuffer(f32)` overload"]
69    fn set_angle_buffer(self, value: impl ::core::convert::Into<f32>) -> () {
70        unsafe {
71            let __receiver = <AimPoser_Pose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x1b9ae90usize)as*mut u8,();
73(AimPoser_Pose)__receiver,(f32)::core::convert::Into::into(value))
74        }
75    }
76    #[doc = "`.ctor()` overload"]
77    fn ctor(self) -> () {
78        unsafe {
79            let __receiver = <AimPoser_Pose as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x1b9aea0usize)as*mut u8,();
81(AimPoser_Pose)__receiver)
82        }
83    }
84}
85
86#[cfg(feature = "root_motion-final_ik-aimposer")]
87impl<__T: IAimPoser_Pose> IAimPoser_PoseMethods for __T {}
88
89#[cfg(feature = "root_motion-final_ik-aimposer")]
90impl AimPoser_Pose {
91    pub fn is_in_direction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
93    }
94
95    pub fn set_angle_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
97    }
98
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
101    }
102}
103
104#[cfg(feature = "root_motion-final_ik-aimposer")]
105impl AimPoser_Pose {
106    #[doc = "`.ctor()` — no args"]
107    pub fn new() -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(AimPoser_Pose),
114                ::core::stringify!(new),
115            )
116        });
117        <Self as IAimPoser_PoseMethods>::ctor(this);
118        this
119    }
120}
121
122#[cfg(feature = "root_motion-final_ik-aimposer")]
123pub trait IAimPoserMethods: IAimPoser {
124    #[doc = "`GetPose(crate::unity_engine::vector3::Vector3)` overload"]
125    fn get_pose(
126        self,
127        local_direction: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
128    ) -> crate::root_motion::final_ik::aimposer::AimPoser_Pose {
129        unsafe {
130            let __receiver = <AimPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x2bcb540usize)as*mut u8,crate::root_motion::final_ik::aimposer::AimPoser_Pose;
132(AimPoser)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(local_direction))
133        }
134    }
135    #[doc = "`SetPoseActive(crate::root_motion::final_ik::aimposer::AimPoser_Pose)` overload"]
136    fn set_pose_active(self, pose: impl ::core::convert::Into<crate::root_motion::final_ik::aimposer::AimPoser_Pose>) -> () {
137        unsafe {
138            let __receiver = <AimPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x2bcb620usize)as*mut u8,();
140(AimPoser)__receiver,(crate::root_motion::final_ik::aimposer::AimPoser_Pose)::core::convert::Into::into(pose))
141        }
142    }
143    #[doc = "`.ctor()` overload"]
144    fn ctor(self) -> () {
145        unsafe {
146            let __receiver = <AimPoser as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x2bcb6a0usize)as*mut u8,();
148(AimPoser)__receiver)
149        }
150    }
151}
152
153#[cfg(feature = "root_motion-final_ik-aimposer")]
154impl<__T: IAimPoser> IAimPoserMethods for __T {}
155
156#[cfg(feature = "root_motion-final_ik-aimposer")]
157impl AimPoser {
158    pub fn get_pose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
160    }
161
162    pub fn set_pose_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
164    }
165
166    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
168    }
169}
170
171#[cfg(feature = "root_motion-final_ik-aimposer")]
172impl AimPoser {
173    #[doc = "`.ctor()` — no args"]
174    pub fn new() -> Self {
175        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
176            panic!(
177                "{}
178::{}
179 failed to instantiate",
180                ::core::stringify!(AimPoser),
181                ::core::stringify!(new),
182            )
183        });
184        <Self as IAimPoserMethods>::ctor(this);
185        this
186    }
187}
188
189#[cfg(feature = "root_motion-final_ik-aimposer")]
190#[doc(hidden)]
191pub mod prelude {
192    pub use super::{AimPoser, AimPoser_Pose, IAimPoser, IAimPoserMethods, IAimPoser_Pose, IAimPoser_PoseMethods};
193    #[cfg(feature = "system-object")]
194    pub use crate::system::object::IObjectMethods;
195    #[cfg(feature = "unity_engine-behaviour")]
196    pub use crate::unity_engine::behaviour::IBehaviourMethods;
197    #[cfg(feature = "unity_engine-component")]
198    pub use crate::unity_engine::component::IComponentMethods;
199    #[cfg(feature = "unity_engine-monobehaviour")]
200    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
201    #[cfg(feature = "unity_engine-object_2")]
202    pub use crate::unity_engine::object_2::IObject_2Methods;
203    pub use crate::{
204        system::object::IObject,
205        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
206    };
207}