Skip to main content

engage/generated/combat/
characterikaim.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characterikaim-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/combat/characterikaim/CharacterIKAim.md"))]
19    #[::unity::class(namespace = "Combat", name = "CharacterIKAim")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct CharacterIKAim {
22        #[offset(24)]
23        #[rename(name = "_cp")]
24        pub cp: crate::combat::character::Character,
25        #[offset(32)]
26        #[rename(name = "aimIK")]
27        pub aim_ik: crate::root_motion::final_ik::aimik::AimIK,
28        #[offset(48)]
29        #[rename(name = "AnimAimDir")]
30        pub anim_aim_dir: crate::unity_engine::vector3::Vector3,
31        #[offset(60)]
32        #[rename(name = "CurrentAimDir")]
33        pub current_aim_dir: crate::unity_engine::vector3::Vector3,
34    }
35}
36
37#[cfg(feature = "combat-characterikaim-types")]
38pub use __types::*;
39
40#[cfg(feature = "combat-characterikaim")]
41pub trait ICharacterIKAimMethods: ICharacterIKAim {
42    #[doc = "`get_CP()` overload"]
43    fn get_cp(self) -> crate::combat::character::Character {
44        unsafe {
45            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46            ::unity::il2cpp_call!((::unity::module_base()+0x27e3ec0usize)as*mut u8,crate::combat::character::Character;
47(CharacterIKAim)__receiver)
48        }
49    }
50    #[doc = "`get_Parabola()` overload"]
51    fn get_parabola(self) -> crate::combat::parabola::Parabola {
52        unsafe {
53            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x27e3f80usize)as*mut u8,crate::combat::parabola::Parabola;
55(CharacterIKAim)__receiver)
56        }
57    }
58    #[doc = "`set_Parabola(crate::combat::parabola::Parabola)` overload"]
59    fn set_parabola(self, value: impl ::core::convert::Into<crate::combat::parabola::Parabola>) -> () {
60        unsafe {
61            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x27e3f90usize)as*mut u8,();
63(CharacterIKAim)__receiver,(crate::combat::parabola::Parabola)::core::convert::Into::into(value))
64        }
65    }
66    #[doc = "`OnDisable()` overload"]
67    fn on_disable(self) -> () {
68        unsafe {
69            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x27e3fa0usize)as*mut u8,();
71(CharacterIKAim)__receiver)
72        }
73    }
74    #[doc = "`OnEnable()` overload"]
75    fn on_enable(self) -> () {
76        unsafe {
77            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x27e4050usize)as*mut u8,();
79(CharacterIKAim)__receiver)
80        }
81    }
82    #[doc = "`Start()` overload"]
83    fn start(self) -> () {
84        unsafe {
85            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x27e4100usize)as*mut u8,();
87(CharacterIKAim)__receiver)
88        }
89    }
90    #[doc = "`MyStart()` overload"]
91    fn my_start(self) -> () {
92        unsafe {
93            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x27e41f0usize)as*mut u8,();
95(CharacterIKAim)__receiver)
96        }
97    }
98    #[doc = "`MyLateUpdate()` overload"]
99    fn my_late_update(self) -> () {
100        unsafe {
101            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x27e4550usize)as*mut u8,();
103(CharacterIKAim)__receiver)
104        }
105    }
106    #[doc = "`AimOn()` overload"]
107    fn aim_on(self) -> () {
108        unsafe {
109            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x27e4670usize)as*mut u8,();
111(CharacterIKAim)__receiver)
112        }
113    }
114    #[doc = "`AimOff()` overload"]
115    fn aim_off(self) -> () {
116        unsafe {
117            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x27e4960usize)as*mut u8,();
119(CharacterIKAim)__receiver)
120        }
121    }
122    #[doc = "`Skip()` overload"]
123    fn skip(self) -> () {
124        unsafe {
125            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x27e4980usize)as*mut u8,();
127(CharacterIKAim)__receiver)
128        }
129    }
130    #[doc = "`Aim(f32, f32)` overload"]
131    fn aim(self, end_weight: impl ::core::convert::Into<f32>, end_time: impl ::core::convert::Into<f32>) -> () {
132        unsafe {
133            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x27e4780usize)as*mut u8,();
135(CharacterIKAim)__receiver,(f32)::core::convert::Into::into(end_weight),(f32)::core::convert::Into::into(end_time))
136        }
137    }
138    #[doc = "`.ctor()` overload"]
139    fn ctor(self) -> () {
140        unsafe {
141            let __receiver = <CharacterIKAim as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x27e49c0usize)as*mut u8,();
143(CharacterIKAim)__receiver)
144        }
145    }
146}
147
148#[cfg(feature = "combat-characterikaim")]
149impl<__T: ICharacterIKAim> ICharacterIKAimMethods for __T {}
150
151#[cfg(feature = "combat-characterikaim")]
152impl CharacterIKAim {
153    pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155    }
156
157    pub fn get_parabola_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159    }
160
161    pub fn set_parabola_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163    }
164
165    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
167    }
168
169    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
171    }
172
173    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
175    }
176
177    pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
179    }
180
181    pub fn my_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
183    }
184
185    pub fn aim_on_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
187    }
188
189    pub fn aim_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
191    }
192
193    pub fn skip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
195    }
196
197    pub fn aim_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
199    }
200
201    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
203    }
204}
205
206#[cfg(feature = "combat-characterikaim")]
207impl CharacterIKAim {
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!(CharacterIKAim),
216                ::core::stringify!(new),
217            )
218        });
219        <Self as ICharacterIKAimMethods>::ctor(this);
220        this
221    }
222}
223
224#[cfg(feature = "combat-characterikaim")]
225#[doc(hidden)]
226pub mod prelude {
227    pub use super::{CharacterIKAim, ICharacterIKAim, ICharacterIKAimMethods};
228    #[cfg(feature = "system-object")]
229    pub use crate::system::object::IObjectMethods;
230    #[cfg(feature = "unity_engine-behaviour")]
231    pub use crate::unity_engine::behaviour::IBehaviourMethods;
232    #[cfg(feature = "unity_engine-component")]
233    pub use crate::unity_engine::component::IComponentMethods;
234    #[cfg(feature = "unity_engine-monobehaviour")]
235    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
236    #[cfg(feature = "unity_engine-object_2")]
237    pub use crate::unity_engine::object_2::IObject_2Methods;
238    pub use crate::{
239        system::object::IObject,
240        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
241    };
242}