1#[cfg(feature = "app-eventcharacterlookatcontroller-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/app/eventcharacterlookatcontroller/EventCharacterLookAtController.md"))]
19 #[::unity::class(namespace = "App", name = "EventCharacterLookAtController")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct EventCharacterLookAtController {
22 #[static_field]
23 #[rename(name = "CurrentTargetNameOfEye")]
24 pub current_target_name_of_eye: ::unity::Il2CppString,
25 #[static_field]
26 #[rename(name = "CurrentTargetNameOfHead")]
27 pub current_target_name_of_head: ::unity::Il2CppString,
28 #[static_field]
29 #[rename(name = "WeightMin")]
30 pub weight_min: f32,
31 #[offset(24)]
32 #[rename(name = "m_character")]
33 pub m_character: crate::combat::character::Character,
34 #[offset(32)]
35 #[rename(name = "m_characterJoint")]
36 pub m_character_joint: crate::combat::characterjoint::CharacterJoint,
37 #[offset(40)]
38 #[rename(name = "m_currentTargetOfEye")]
39 pub m_current_target_of_eye: crate::unity_engine::gameobject::GameObject,
40 #[offset(48)]
41 #[rename(name = "m_currentTargetOfHead")]
42 pub m_current_target_of_head: crate::unity_engine::gameobject::GameObject,
43 #[offset(56)]
44 #[rename(name = "m_currentTargetPosOfEye")]
45 pub m_current_target_pos_of_eye: crate::app::eventcharacterlookatcontroller::EventCharacterLookAtController_PositionFader,
46 #[offset(64)]
47 #[rename(name = "m_currentTargetPosOfHead")]
48 pub m_current_target_pos_of_head: crate::app::eventcharacterlookatcontroller::EventCharacterLookAtController_PositionFader,
49 #[offset(72)]
50 #[rename(name = "m_weightOfEye")]
51 pub m_weight_of_eye: crate::app::weightfader::WeightFader,
52 #[offset(80)]
53 #[rename(name = "m_weightOfHead")]
54 pub m_weight_of_head: crate::app::weightfader::WeightFader,
55 #[offset(88)]
56 #[rename(name = "m_ikEye")]
57 pub m_ik_eye: crate::root_motion::final_ik::lookatik::LookAtIK,
58 #[offset(96)]
59 #[rename(name = "m_ikHead")]
60 pub m_ik_head: crate::root_motion::final_ik::lookatik::LookAtIK,
61 }
62
63 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/eventcharacterlookatcontroller/EventCharacterLookAtController_PositionFader.md"))]
64 #[::unity::class(namespace = "App", name = "EventCharacterLookAtController.PositionFader")]
65 #[parent(crate::system::object::Object)]
66 pub struct EventCharacterLookAtController_PositionFader {
67 #[offset(16)]
68 #[rename(name = "m_pos")]
69 pub m_pos: crate::unity_engine::vector3::Vector3,
70 #[offset(28)]
71 #[rename(name = "m_posFrom")]
72 pub m_pos_from: crate::unity_engine::vector3::Vector3,
73 #[offset(40)]
74 #[rename(name = "m_posTo")]
75 pub m_pos_to: crate::unity_engine::vector3::Vector3,
76 #[offset(52)]
77 #[rename(name = "m_time")]
78 pub m_time: f32,
79 #[offset(56)]
80 #[rename(name = "m_duration")]
81 pub m_duration: f32,
82 }
83}
84
85#[cfg(feature = "app-eventcharacterlookatcontroller-types")]
86pub use __types::*;
87
88#[cfg(feature = "app-eventcharacterlookatcontroller")]
89pub trait IEventCharacterLookAtControllerMethods: IEventCharacterLookAtController {
90 #[doc = "`.ctor()` overload"]
91 fn ctor(self) -> () {
92 unsafe {
93 let __receiver =
94 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x24d1fa0usize)as*mut u8,();
96(EventCharacterLookAtController)__receiver)
97 }
98 }
99 #[doc = "`Init(crate::combat::character::Character, ::unity::Il2CppString)` overload"]
100 fn init(
101 self,
102 character: impl ::core::convert::Into<crate::combat::character::Character>,
103 pid: impl ::core::convert::Into<::unity::Il2CppString>,
104 ) -> () {
105 unsafe {
106 let __receiver =
107 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x24d1fb0usize)as*mut u8,();
109(EventCharacterLookAtController)__receiver,(crate::combat::character::Character)::core::convert::Into::into(character),(::unity::Il2CppString)::core::convert::Into::into(pid))
110 }
111 }
112 #[doc = "`Update()` overload"]
113 fn update(self) -> () {
114 unsafe {
115 let __receiver =
116 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x24d2600usize)as*mut u8,();
118(EventCharacterLookAtController)__receiver)
119 }
120 }
121 #[doc = "`Reset(f32)` overload"]
122 fn reset(self, msec: impl ::core::convert::Into<f32>) -> () {
123 unsafe {
124 let __receiver =
125 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x24d2580usize)as*mut u8,();
127(EventCharacterLookAtController)__receiver,(f32)::core::convert::Into::into(msec))
128 }
129 }
130 #[doc = "`SetTargetObjectOfEye(crate::unity_engine::gameobject::GameObject, f32)` overload"]
131 fn set_target_object_of_eye(
132 self,
133 target: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
134 msec: impl ::core::convert::Into<f32>,
135 ) -> () {
136 unsafe {
137 let __receiver =
138 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x24d27d0usize)as*mut u8,();
140(EventCharacterLookAtController)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(target),(f32)::core::convert::Into::into(msec))
141 }
142 }
143 #[doc = "`SetTargetObjectOfHead(crate::unity_engine::gameobject::GameObject, f32)` overload"]
144 fn set_target_object_of_head(
145 self,
146 target: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
147 msec: impl ::core::convert::Into<f32>,
148 ) -> () {
149 unsafe {
150 let __receiver =
151 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 ::unity::il2cpp_call!((::unity::module_base()+0x24d28b0usize)as*mut u8,();
153(EventCharacterLookAtController)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(target),(f32)::core::convert::Into::into(msec))
154 }
155 }
156 #[doc = "`CalcDefaultTargetPos()` overload"]
157 fn calc_default_target_pos(self) -> crate::unity_engine::vector3::Vector3 {
158 unsafe {
159 let __receiver =
160 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x24d29d0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
162(EventCharacterLookAtController)__receiver)
163 }
164 }
165 #[doc = "`SetWeightOfEye(f32, f32)` overload"]
166 fn set_weight_of_eye(self, weight: impl ::core::convert::Into<f32>, msec: impl ::core::convert::Into<f32>) -> () {
167 unsafe {
168 let __receiver =
169 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x24d2990usize)as*mut u8,();
171(EventCharacterLookAtController)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(msec))
172 }
173 }
174 #[doc = "`SetWeightOfHead(f32, f32)` overload"]
175 fn set_weight_of_head(self, weight: impl ::core::convert::Into<f32>, msec: impl ::core::convert::Into<f32>) -> () {
176 unsafe {
177 let __receiver =
178 <EventCharacterLookAtController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x24d29b0usize)as*mut u8,();
180(EventCharacterLookAtController)__receiver,(f32)::core::convert::Into::into(weight),(f32)::core::convert::Into::into(msec))
181 }
182 }
183}
184
185#[cfg(feature = "app-eventcharacterlookatcontroller")]
186impl<__T: IEventCharacterLookAtController> IEventCharacterLookAtControllerMethods for __T {}
187
188#[cfg(feature = "app-eventcharacterlookatcontroller")]
189impl EventCharacterLookAtController {
190 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
192 }
193
194 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
196 }
197
198 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
200 }
201
202 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
204 }
205
206 pub fn set_target_object_of_eye_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
208 }
209
210 pub fn set_target_object_of_head_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
212 }
213
214 pub fn calc_default_target_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
216 }
217
218 pub fn set_weight_of_eye_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
220 }
221
222 pub fn set_weight_of_head_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
224 }
225}
226
227#[cfg(feature = "app-eventcharacterlookatcontroller")]
228impl EventCharacterLookAtController {
229 #[doc = "`.ctor()` — no args"]
230 pub fn new() -> Self {
231 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
232 panic!(
233 "{}
234::{}
235 failed to instantiate",
236 ::core::stringify!(EventCharacterLookAtController),
237 ::core::stringify!(new),
238 )
239 });
240 <Self as IEventCharacterLookAtControllerMethods>::ctor(this);
241 this
242 }
243}
244
245#[cfg(feature = "app-eventcharacterlookatcontroller")]
246pub trait IEventCharacterLookAtController_PositionFaderMethods: IEventCharacterLookAtController_PositionFader {
247 #[doc = "`.ctor()` overload"]
248 fn ctor(self) -> () {
249 unsafe {
250 let __receiver = <EventCharacterLookAtController_PositionFader as ::unity::FromIlInstance>::from_il_instance(
251 <Self as ::unity::SystemObject>::as_instance(self),
252 );
253 ::unity::il2cpp_call!((::unity::module_base()+0x1e55320usize)as*mut u8,();
254(EventCharacterLookAtController_PositionFader)__receiver)
255 }
256 }
257 #[doc = "`Reset()` overload"]
258 fn reset(self) -> () {
259 unsafe {
260 let __receiver = <EventCharacterLookAtController_PositionFader as ::unity::FromIlInstance>::from_il_instance(
261 <Self as ::unity::SystemObject>::as_instance(self),
262 );
263 ::unity::il2cpp_call!((::unity::module_base()+0x1e55360usize)as*mut u8,();
264(EventCharacterLookAtController_PositionFader)__receiver)
265 }
266 }
267 #[doc = "`Get()` overload"]
268 fn get(self) -> crate::unity_engine::vector3::Vector3 {
269 unsafe {
270 let __receiver = <EventCharacterLookAtController_PositionFader as ::unity::FromIlInstance>::from_il_instance(
271 <Self as ::unity::SystemObject>::as_instance(self),
272 );
273 ::unity::il2cpp_call!((::unity::module_base()+0x1e55380usize)as*mut u8,crate::unity_engine::vector3::Vector3;
274(EventCharacterLookAtController_PositionFader)__receiver)
275 }
276 }
277 #[doc = "`Set(crate::unity_engine::vector3::Vector3, f32)` overload"]
278 fn set(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>, msec: impl ::core::convert::Into<f32>) -> () {
279 unsafe {
280 let __receiver = <EventCharacterLookAtController_PositionFader as ::unity::FromIlInstance>::from_il_instance(
281 <Self as ::unity::SystemObject>::as_instance(self),
282 );
283 ::unity::il2cpp_call!((::unity::module_base()+0x1e55390usize)as*mut u8,();
284(EventCharacterLookAtController_PositionFader)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos),(f32)::core::convert::Into::into(msec))
285 }
286 }
287 #[doc = "`Tick()` overload"]
288 fn tick(self) -> crate::unity_engine::vector3::Vector3 {
289 unsafe {
290 let __receiver = <EventCharacterLookAtController_PositionFader as ::unity::FromIlInstance>::from_il_instance(
291 <Self as ::unity::SystemObject>::as_instance(self),
292 );
293 ::unity::il2cpp_call!((::unity::module_base()+0x1e553e0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
294(EventCharacterLookAtController_PositionFader)__receiver)
295 }
296 }
297}
298
299#[cfg(feature = "app-eventcharacterlookatcontroller")]
300impl<__T: IEventCharacterLookAtController_PositionFader> IEventCharacterLookAtController_PositionFaderMethods for __T {}
301
302#[cfg(feature = "app-eventcharacterlookatcontroller")]
303impl EventCharacterLookAtController_PositionFader {
304 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
306 }
307
308 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
310 }
311
312 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
314 }
315
316 pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
318 }
319
320 pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
322 }
323}
324
325#[cfg(feature = "app-eventcharacterlookatcontroller")]
326impl EventCharacterLookAtController_PositionFader {
327 #[doc = "`.ctor()` — no args"]
328 pub fn new() -> Self {
329 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
330 panic!(
331 "{}
332::{}
333 failed to instantiate",
334 ::core::stringify!(EventCharacterLookAtController_PositionFader),
335 ::core::stringify!(new),
336 )
337 });
338 <Self as IEventCharacterLookAtController_PositionFaderMethods>::ctor(this);
339 this
340 }
341}
342
343#[cfg(feature = "app-eventcharacterlookatcontroller")]
344#[doc(hidden)]
345pub mod prelude {
346 pub use super::{
347 EventCharacterLookAtController, EventCharacterLookAtController_PositionFader, IEventCharacterLookAtController,
348 IEventCharacterLookAtControllerMethods, IEventCharacterLookAtController_PositionFader, IEventCharacterLookAtController_PositionFaderMethods,
349 };
350 #[cfg(feature = "system-object")]
351 pub use crate::system::object::IObjectMethods;
352 #[cfg(feature = "unity_engine-behaviour")]
353 pub use crate::unity_engine::behaviour::IBehaviourMethods;
354 #[cfg(feature = "unity_engine-component")]
355 pub use crate::unity_engine::component::IComponentMethods;
356 #[cfg(feature = "unity_engine-monobehaviour")]
357 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
358 #[cfg(feature = "unity_engine-object_2")]
359 pub use crate::unity_engine::object_2::IObject_2Methods;
360 pub use crate::{
361 system::object::IObject,
362 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
363 };
364}