Skip to main content

engage/generated/combat/
characteriklookat.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-characteriklookat-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/characteriklookat/CharacterIKLookAt.md"))]
19    #[::unity::class(namespace = "Combat", name = "CharacterIKLookAt")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct CharacterIKLookAt {
22        #[offset(32)]
23        #[rename(name = "_cp")]
24        pub cp: crate::combat::character::Character,
25        #[offset(40)]
26        #[rename(name = "m_IKArray")]
27        pub m_ik_array: ::unity::Array<crate::root_motion::final_ik::lookatik::LookAtIK>,
28        #[offset(48)]
29        #[rename(name = "m_LookTargetGO")]
30        pub m_look_target_go: crate::unity_engine::gameobject::GameObject,
31    }
32}
33
34#[cfg(feature = "combat-characteriklookat-types")]
35pub use __types::*;
36
37#[cfg(feature = "combat-characteriklookat")]
38pub trait ICharacterIKLookAtMethods: ICharacterIKLookAt {
39    #[doc = "`get_FixedLookTargetHeight()` overload"]
40    fn get_fixed_look_target_height(self) -> bool {
41        unsafe {
42            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x27e5120usize)as*mut u8,bool;
44(CharacterIKLookAt)__receiver)
45        }
46    }
47    #[doc = "`set_FixedLookTargetHeight(bool)` overload"]
48    fn set_fixed_look_target_height(self, value: impl ::core::convert::Into<bool>) -> () {
49        unsafe {
50            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x27e5130usize)as*mut u8,();
52(CharacterIKLookAt)__receiver,(bool)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_CP()` overload"]
56    fn get_cp(self) -> crate::combat::character::Character {
57        unsafe {
58            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x27e5150usize)as*mut u8,crate::combat::character::Character;
60(CharacterIKLookAt)__receiver)
61        }
62    }
63    #[doc = "`Start()` overload"]
64    fn start(self) -> () {
65        unsafe {
66            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x27e5210usize)as*mut u8,();
68(CharacterIKLookAt)__receiver)
69        }
70    }
71    #[doc = "`MyStart()` overload"]
72    fn my_start(self) -> () {
73        unsafe {
74            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x27e52f0usize)as*mut u8,();
76(CharacterIKLookAt)__receiver)
77        }
78    }
79    #[doc = "`MyLateUpdate()` overload"]
80    fn my_late_update(self) -> () {
81        unsafe {
82            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x27e5520usize)as*mut u8,();
84(CharacterIKLookAt)__receiver)
85        }
86    }
87    #[doc = "`SetWeight(f32)` overload"]
88    fn set_weight(self, w: impl ::core::convert::Into<f32>) -> () {
89        unsafe {
90            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x27e5660usize)as*mut u8,();
92(CharacterIKLookAt)__receiver,(f32)::core::convert::Into::into(w))
93        }
94    }
95    #[doc = "`Skip()` overload"]
96    fn skip(self) -> () {
97        unsafe {
98            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x27e56c0usize)as*mut u8,();
100(CharacterIKLookAt)__receiver)
101        }
102    }
103    #[doc = "`.ctor()` overload"]
104    fn ctor(self) -> () {
105        unsafe {
106            let __receiver = <CharacterIKLookAt as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x27e57d0usize)as*mut u8,();
108(CharacterIKLookAt)__receiver)
109        }
110    }
111}
112
113#[cfg(feature = "combat-characteriklookat")]
114impl<__T: ICharacterIKLookAt> ICharacterIKLookAtMethods for __T {}
115
116#[cfg(feature = "combat-characteriklookat")]
117impl CharacterIKLookAt {
118    pub fn get_fixed_look_target_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120    }
121
122    pub fn set_fixed_look_target_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124    }
125
126    pub fn get_cp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
128    }
129
130    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
132    }
133
134    pub fn my_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
136    }
137
138    pub fn my_late_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
140    }
141
142    pub fn set_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
143        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
144    }
145
146    pub fn skip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
147        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
148    }
149
150    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
152    }
153}
154
155#[cfg(feature = "combat-characteriklookat")]
156impl CharacterIKLookAt {
157    #[doc = "`.ctor()` — no args"]
158    pub fn new() -> Self {
159        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
160            panic!(
161                "{}
162::{}
163 failed to instantiate",
164                ::core::stringify!(CharacterIKLookAt),
165                ::core::stringify!(new),
166            )
167        });
168        <Self as ICharacterIKLookAtMethods>::ctor(this);
169        this
170    }
171}
172
173#[cfg(feature = "combat-characteriklookat")]
174#[doc(hidden)]
175pub mod prelude {
176    pub use super::{CharacterIKLookAt, ICharacterIKLookAt, ICharacterIKLookAtMethods};
177    #[cfg(feature = "system-object")]
178    pub use crate::system::object::IObjectMethods;
179    #[cfg(feature = "unity_engine-behaviour")]
180    pub use crate::unity_engine::behaviour::IBehaviourMethods;
181    #[cfg(feature = "unity_engine-component")]
182    pub use crate::unity_engine::component::IComponentMethods;
183    #[cfg(feature = "unity_engine-monobehaviour")]
184    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
185    #[cfg(feature = "unity_engine-object_2")]
186    pub use crate::unity_engine::object_2::IObject_2Methods;
187    pub use crate::{
188        system::object::IObject,
189        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
190    };
191}