1#[cfg(feature = "combat-cameracontrollerbehind-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 combat::basecameracontroller::{BaseCameraController, IBaseCameraController},
10 system::object::{IObject, Object},
11 unity_engine::{
12 behaviour::{Behaviour, IBehaviour},
13 component::{Component, IComponent},
14 monobehaviour::{IMonoBehaviour, MonoBehaviour},
15 object_2::{IObject_2, Object_2},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/cameracontrollerbehind/CameraControllerBehind.md"))]
20 #[::unity::class(namespace = "Combat", name = "CameraControllerBehind")]
21 #[parent(crate::combat::basecameracontroller::BaseCameraController)]
22 pub struct CameraControllerBehind {
23 #[offset(168)]
24 #[rename(name = "Distance")]
25 pub distance: f32,
26 #[offset(172)]
27 #[rename(name = "CameraHeight")]
28 pub camera_height: f32,
29 #[offset(176)]
30 #[rename(name = "CameraLookUp")]
31 pub camera_look_up: f32,
32 #[offset(180)]
33 #[rename(name = "DistanceRate")]
34 pub distance_rate: f32,
35 #[offset(184)]
36 #[rename(name = "SidePlayer")]
37 pub side_player: bool,
38 #[offset(188)]
39 #[rename(name = "NearUnitSize")]
40 pub near_unit_size: f32,
41 #[offset(192)]
42 #[rename(name = "FarUnitSize")]
43 pub far_unit_size: f32,
44 #[offset(196)]
45 #[rename(name = "CameraUpThreshold")]
46 pub camera_up_threshold: f32,
47 #[offset(200)]
48 #[rename(name = "m_BaseDegree")]
49 pub m_base_degree: f32,
50 #[offset(204)]
51 #[rename(name = "m_LastDegree")]
52 pub m_last_degree: f32,
53 #[offset(208)]
54 #[rename(name = "m_LastLookHeight")]
55 pub m_last_look_height: f32,
56 #[offset(212)]
57 #[rename(name = "m_DoCameraLookUp")]
58 pub m_do_camera_look_up: bool,
59 #[offset(213)]
60 #[rename(name = "isValid")]
61 pub is_valid: bool,
62 #[offset(214)]
63 #[rename(name = "m_IsInverse")]
64 pub m_is_inverse: bool,
65 #[offset(215)]
66 #[rename(name = "m_IsSideRev")]
67 pub m_is_side_rev: bool,
68 }
69}
70
71#[cfg(feature = "combat-cameracontrollerbehind-types")]
72pub use __types::*;
73
74#[cfg(feature = "combat-cameracontrollerbehind")]
75pub trait ICameraControllerBehindMethods: ICameraControllerBehind {
76 #[doc = "`get_WidthOnCamera()` overload"]
77 fn get_width_on_camera(self) -> f32 {
78 unsafe {
79 let __receiver =
80 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x2996330usize)as*mut u8,f32;
82(CameraControllerBehind)__receiver)
83 }
84 }
85 #[doc = "`set_WidthOnCamera(f32)` overload"]
86 fn set_width_on_camera(self, value: impl ::core::convert::Into<f32>) -> () {
87 unsafe {
88 let __receiver =
89 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x2996340usize)as*mut u8,();
91(CameraControllerBehind)__receiver,(f32)::core::convert::Into::into(value))
92 }
93 }
94 #[doc = "`get_NearSide()` overload"]
95 fn get_near_side(self) -> i32 {
96 unsafe {
97 let __receiver =
98 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x2996350usize)as*mut u8,i32;
100(CameraControllerBehind)__receiver)
101 }
102 }
103 #[doc = "`Start()` overload"]
104 fn start(self) -> () {
105 unsafe {
106 let __receiver =
107 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2996370usize)as*mut u8,();
109(CameraControllerBehind)__receiver)
110 }
111 }
112 #[doc = "`Initilize()` overload"]
113 fn initilize(self) -> () {
114 unsafe {
115 let __receiver =
116 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x2996440usize)as*mut u8,();
118(CameraControllerBehind)__receiver)
119 }
120 }
121 #[doc = "`CheckUsable(bool)` overload"]
122 fn check_usable(self, is_routine: impl ::core::convert::Into<bool>) -> () {
123 unsafe {
124 let __receiver =
125 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 {
127 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
129 panic!(
130 "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135 9usize,
136 __vt.len(),
137 <CameraControllerBehind as ::unity::ClassIdentity>::NAME,
138 "CheckUsable",
139 )
140 });
141 let __inner: extern "C" fn(CameraControllerBehind, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
142 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143 __inner(__receiver, ::core::convert::Into::into(is_routine), __mi)
144 }
145 }
146 }
147 #[doc = "`Activate()` overload"]
148 fn activate(self) -> () {
149 unsafe {
150 let __receiver =
151 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 {
153 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
154 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
155 panic!(
156 "unity: virtual slot {}
157 out of range (vtable len {}
158) on the runtime class behind {}
159 (method `{}
160`)",
161 10usize,
162 __vt.len(),
163 <CameraControllerBehind as ::unity::ClassIdentity>::NAME,
164 "Activate",
165 )
166 });
167 let __inner: extern "C" fn(CameraControllerBehind, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
168 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169 __inner(__receiver, __mi)
170 }
171 }
172 }
173 #[doc = "`Stabilize()` overload"]
174 fn stabilize(self) -> () {
175 unsafe {
176 let __receiver =
177 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 {
179 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
181 panic!(
182 "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187 8usize,
188 __vt.len(),
189 <CameraControllerBehind as ::unity::ClassIdentity>::NAME,
190 "Stabilize",
191 )
192 });
193 let __inner: extern "C" fn(CameraControllerBehind, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
194 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195 __inner(__receiver, __mi)
196 }
197 }
198 }
199 #[doc = "`SetInverse(bool, bool)` overload"]
200 fn set_inverse(self, inv_side: impl ::core::convert::Into<bool>, inv_camera: impl ::core::convert::Into<bool>) -> () {
201 unsafe {
202 let __receiver =
203 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 {
205 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
206 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
207 panic!(
208 "unity: virtual slot {}
209 out of range (vtable len {}
210) on the runtime class behind {}
211 (method `{}
212`)",
213 6usize,
214 __vt.len(),
215 <CameraControllerBehind as ::unity::ClassIdentity>::NAME,
216 "SetInverse",
217 )
218 });
219 let __inner: extern "C" fn(CameraControllerBehind, bool, bool, ::unity::OptionalMethod) -> () =
220 ::core::mem::transmute(__vi.method_ptr);
221 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
222 __inner(
223 __receiver,
224 ::core::convert::Into::into(inv_side),
225 ::core::convert::Into::into(inv_camera),
226 __mi,
227 )
228 }
229 }
230 }
231 #[doc = "`GetCameraTargets()` overload"]
232 fn get_camera_targets(self) -> ::unity::Array<i32> {
233 unsafe {
234 let __receiver =
235 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 {
237 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
238 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
239 panic!(
240 "unity: virtual slot {}
241 out of range (vtable len {}
242) on the runtime class behind {}
243 (method `{}
244`)",
245 12usize,
246 __vt.len(),
247 <CameraControllerBehind as ::unity::ClassIdentity>::NAME,
248 "GetCameraTargets",
249 )
250 });
251 let __inner: extern "C" fn(CameraControllerBehind, ::unity::OptionalMethod) -> ::unity::Array<i32> =
252 ::core::mem::transmute(__vi.method_ptr);
253 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
254 __inner(__receiver, __mi)
255 }
256 }
257 }
258 #[doc = "`IsDive()` overload"]
259 fn is_dive(self) -> bool {
260 unsafe {
261 let __receiver =
262 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 ::unity::il2cpp_call!((::unity::module_base()+0x2996e20usize)as*mut u8,bool;
264(CameraControllerBehind)__receiver)
265 }
266 }
267 #[doc = "`IsDragon()` overload"]
268 fn is_dragon(self) -> bool {
269 unsafe {
270 let __receiver =
271 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272 ::unity::il2cpp_call!((::unity::module_base()+0x2996ec0usize)as*mut u8,bool;
273(CameraControllerBehind)__receiver)
274 }
275 }
276 #[doc = "`.ctor()` overload"]
277 fn ctor(self) -> () {
278 unsafe {
279 let __receiver =
280 <CameraControllerBehind as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 ::unity::il2cpp_call!((::unity::module_base()+0x2997380usize)as*mut u8,();
282(CameraControllerBehind)__receiver)
283 }
284 }
285}
286
287#[cfg(feature = "combat-cameracontrollerbehind")]
288impl<__T: ICameraControllerBehind> ICameraControllerBehindMethods for __T {}
289
290#[cfg(feature = "combat-cameracontrollerbehind")]
291impl CameraControllerBehind {
292 pub fn get_width_on_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
294 }
295
296 pub fn set_width_on_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
298 }
299
300 pub fn get_near_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
302 }
303
304 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
306 }
307
308 pub fn initilize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
310 }
311
312 pub fn check_usable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
314 }
315
316 pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
318 }
319
320 pub fn stabilize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
322 }
323
324 pub fn set_inverse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
326 }
327
328 pub fn get_camera_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
330 }
331
332 pub fn is_dive_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
334 }
335
336 pub fn is_dragon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
338 }
339
340 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
342 }
343}
344
345#[cfg(feature = "combat-cameracontrollerbehind")]
346impl CameraControllerBehind {
347 #[doc = "Direct (non-virtual) call to `CameraControllerBehind`'s own `CheckUsable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
348 pub unsafe fn check_usable(this: impl ::core::convert::Into<::unity::IlInstance>, is_routine: bool) -> () {
349 let __mi = Self::check_usable_method_info();
350 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
351 __inner(this.into(), is_routine, ::core::option::Option::None)
352 }
353
354 #[doc = "Direct (non-virtual) call to `CameraControllerBehind`'s own `Activate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
355 pub unsafe fn activate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
356 let __mi = Self::activate_method_info();
357 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
358 __inner(this.into(), ::core::option::Option::None)
359 }
360
361 #[doc = "Direct (non-virtual) call to `CameraControllerBehind`'s own `Stabilize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
362 pub unsafe fn stabilize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
363 let __mi = Self::stabilize_method_info();
364 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
365 __inner(this.into(), ::core::option::Option::None)
366 }
367
368 #[doc = "Direct (non-virtual) call to `CameraControllerBehind`'s own `SetInverse`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
369 pub unsafe fn set_inverse(this: impl ::core::convert::Into<::unity::IlInstance>, inv_side: bool, inv_camera: bool) -> () {
370 let __mi = Self::set_inverse_method_info();
371 let __inner: extern "C" fn(::unity::IlInstance, bool, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
372 __inner(this.into(), inv_side, inv_camera, ::core::option::Option::None)
373 }
374
375 #[doc = "Direct (non-virtual) call to `CameraControllerBehind`'s own `GetCameraTargets`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
376 pub unsafe fn get_camera_targets(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<i32> {
377 let __mi = Self::get_camera_targets_method_info();
378 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<i32> = ::core::mem::transmute(__mi.method_ptr);
379 __inner(this.into(), ::core::option::Option::None)
380 }
381}
382
383#[cfg(feature = "combat-cameracontrollerbehind")]
384impl CameraControllerBehind {
385 #[doc = "`.ctor()` — no args"]
386 pub fn new() -> Self {
387 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
388 panic!(
389 "{}
390::{}
391 failed to instantiate",
392 ::core::stringify!(CameraControllerBehind),
393 ::core::stringify!(new),
394 )
395 });
396 <Self as ICameraControllerBehindMethods>::ctor(this);
397 this
398 }
399}
400
401#[cfg(feature = "combat-cameracontrollerbehind")]
402#[doc(hidden)]
403pub mod prelude {
404 pub use super::{CameraControllerBehind, ICameraControllerBehind, ICameraControllerBehindMethods};
405 #[cfg(feature = "combat-basecameracontroller")]
406 pub use crate::combat::basecameracontroller::IBaseCameraControllerMethods;
407 #[cfg(feature = "system-object")]
408 pub use crate::system::object::IObjectMethods;
409 #[cfg(feature = "unity_engine-behaviour")]
410 pub use crate::unity_engine::behaviour::IBehaviourMethods;
411 #[cfg(feature = "unity_engine-component")]
412 pub use crate::unity_engine::component::IComponentMethods;
413 #[cfg(feature = "unity_engine-monobehaviour")]
414 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
415 #[cfg(feature = "unity_engine-object_2")]
416 pub use crate::unity_engine::object_2::IObject_2Methods;
417 pub use crate::{
418 combat::basecameracontroller::IBaseCameraController,
419 system::object::IObject,
420 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
421 };
422}