1#[cfg(feature = "combat-cameracontrollerdie-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/cameracontrollerdie/CameraControllerDie.md"))]
20 #[::unity::class(namespace = "Combat", name = "CameraControllerDie")]
21 #[parent(crate::combat::basecameracontroller::BaseCameraController)]
22 pub struct CameraControllerDie {
23 #[offset(168)]
24 #[rename(name = "HeightFixer")]
25 pub height_fixer: f32,
26 #[offset(172)]
27 #[rename(name = "LookDownMax")]
28 pub look_down_max: f32,
29 #[offset(176)]
30 #[rename(name = "Distance")]
31 pub distance: f32,
32 #[offset(180)]
33 #[rename(name = "BaseDegree")]
34 pub base_degree: f32,
35 #[offset(184)]
36 #[rename(name = "StartCameraDownTime")]
37 pub start_camera_down_time: f32,
38 #[offset(188)]
39 #[rename(name = "StartRotateTime")]
40 pub start_rotate_time: f32,
41 #[offset(192)]
42 #[rename(name = "m_IsBeforeDead")]
43 pub m_is_before_dead: bool,
44 #[offset(196)]
45 #[rename(name = "m_Degree")]
46 pub m_degree: f32,
47 #[offset(200)]
48 #[rename(name = "m_DeadTime")]
49 pub m_dead_time: f32,
50 #[offset(204)]
51 #[rename(name = "m_DeadHeight")]
52 pub m_dead_height: f32,
53 #[offset(208)]
54 #[rename(name = "m_IsEnemy")]
55 pub m_is_enemy: bool,
56 #[offset(209)]
57 #[rename(name = "m_IsInverse")]
58 pub m_is_inverse: bool,
59 #[offset(210)]
60 #[rename(name = "m_IsStandingDie")]
61 pub m_is_standing_die: bool,
62 #[offset(212)]
63 #[rename(name = "m_LookDown")]
64 pub m_look_down: f32,
65 #[offset(216)]
66 #[rename(name = "m_IsEngageAtk")]
67 pub m_is_engage_atk: bool,
68 #[offset(220)]
69 #[rename(name = "LookDownTime")]
70 pub look_down_time: f32,
71 #[offset(224)]
72 #[rename(name = "m_ForwardVec")]
73 pub m_forward_vec: crate::unity_engine::vector3::Vector3,
74 }
75}
76
77#[cfg(feature = "combat-cameracontrollerdie-types")]
78pub use __types::*;
79
80#[cfg(feature = "combat-cameracontrollerdie")]
81pub trait ICameraControllerDieMethods: ICameraControllerDie {
82 #[doc = "`Start()` overload"]
83 fn start(self) -> () {
84 unsafe {
85 let __receiver = <CameraControllerDie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x25b0780usize)as*mut u8,();
87(CameraControllerDie)__receiver)
88 }
89 }
90 #[doc = "`SetInverse(bool, bool)` overload"]
91 fn set_inverse(self, inv_side: impl ::core::convert::Into<bool>, inv_camera: impl ::core::convert::Into<bool>) -> () {
92 unsafe {
93 let __receiver = <CameraControllerDie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 {
95 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
97 panic!(
98 "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103 6usize,
104 __vt.len(),
105 <CameraControllerDie as ::unity::ClassIdentity>::NAME,
106 "SetInverse",
107 )
108 });
109 let __inner: extern "C" fn(CameraControllerDie, bool, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
110 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111 __inner(
112 __receiver,
113 ::core::convert::Into::into(inv_side),
114 ::core::convert::Into::into(inv_camera),
115 __mi,
116 )
117 }
118 }
119 }
120 #[doc = "`Activate()` overload"]
121 fn activate(self) -> () {
122 unsafe {
123 let __receiver = <CameraControllerDie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 {
125 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
126 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
127 panic!(
128 "unity: virtual slot {}
129 out of range (vtable len {}
130) on the runtime class behind {}
131 (method `{}
132`)",
133 10usize,
134 __vt.len(),
135 <CameraControllerDie as ::unity::ClassIdentity>::NAME,
136 "Activate",
137 )
138 });
139 let __inner: extern "C" fn(CameraControllerDie, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
140 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141 __inner(__receiver, __mi)
142 }
143 }
144 }
145 #[doc = "`GetCameraTargets()` overload"]
146 fn get_camera_targets(self) -> ::unity::Array<i32> {
147 unsafe {
148 let __receiver = <CameraControllerDie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 {
150 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
151 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
152 panic!(
153 "unity: virtual slot {}
154 out of range (vtable len {}
155) on the runtime class behind {}
156 (method `{}
157`)",
158 12usize,
159 __vt.len(),
160 <CameraControllerDie as ::unity::ClassIdentity>::NAME,
161 "GetCameraTargets",
162 )
163 });
164 let __inner: extern "C" fn(CameraControllerDie, ::unity::OptionalMethod) -> ::unity::Array<i32> =
165 ::core::mem::transmute(__vi.method_ptr);
166 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167 __inner(__receiver, __mi)
168 }
169 }
170 }
171 #[doc = "`.ctor()` overload"]
172 fn ctor(self) -> () {
173 unsafe {
174 let __receiver = <CameraControllerDie as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x25b0d90usize)as*mut u8,();
176(CameraControllerDie)__receiver)
177 }
178 }
179}
180
181#[cfg(feature = "combat-cameracontrollerdie")]
182impl<__T: ICameraControllerDie> ICameraControllerDieMethods for __T {}
183
184#[cfg(feature = "combat-cameracontrollerdie")]
185impl CameraControllerDie {
186 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
188 }
189
190 pub fn set_inverse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
192 }
193
194 pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
196 }
197
198 pub fn get_camera_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
200 }
201
202 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
204 }
205}
206
207#[cfg(feature = "combat-cameracontrollerdie")]
208impl CameraControllerDie {
209 #[doc = "Direct (non-virtual) call to `CameraControllerDie`'s own `SetInverse`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
210 pub unsafe fn set_inverse(this: impl ::core::convert::Into<::unity::IlInstance>, inv_side: bool, inv_camera: bool) -> () {
211 let __mi = Self::set_inverse_method_info();
212 let __inner: extern "C" fn(::unity::IlInstance, bool, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
213 __inner(this.into(), inv_side, inv_camera, ::core::option::Option::None)
214 }
215
216 #[doc = "Direct (non-virtual) call to `CameraControllerDie`'s own `Activate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
217 pub unsafe fn activate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
218 let __mi = Self::activate_method_info();
219 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
220 __inner(this.into(), ::core::option::Option::None)
221 }
222
223 #[doc = "Direct (non-virtual) call to `CameraControllerDie`'s own `GetCameraTargets`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
224 pub unsafe fn get_camera_targets(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<i32> {
225 let __mi = Self::get_camera_targets_method_info();
226 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<i32> = ::core::mem::transmute(__mi.method_ptr);
227 __inner(this.into(), ::core::option::Option::None)
228 }
229}
230
231#[cfg(feature = "combat-cameracontrollerdie")]
232impl CameraControllerDie {
233 #[doc = "`.ctor()` — no args"]
234 pub fn new() -> Self {
235 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
236 panic!(
237 "{}
238::{}
239 failed to instantiate",
240 ::core::stringify!(CameraControllerDie),
241 ::core::stringify!(new),
242 )
243 });
244 <Self as ICameraControllerDieMethods>::ctor(this);
245 this
246 }
247}
248
249#[cfg(feature = "combat-cameracontrollerdie")]
250#[doc(hidden)]
251pub mod prelude {
252 pub use super::{CameraControllerDie, ICameraControllerDie, ICameraControllerDieMethods};
253 #[cfg(feature = "combat-basecameracontroller")]
254 pub use crate::combat::basecameracontroller::IBaseCameraControllerMethods;
255 #[cfg(feature = "system-object")]
256 pub use crate::system::object::IObjectMethods;
257 #[cfg(feature = "unity_engine-behaviour")]
258 pub use crate::unity_engine::behaviour::IBehaviourMethods;
259 #[cfg(feature = "unity_engine-component")]
260 pub use crate::unity_engine::component::IComponentMethods;
261 #[cfg(feature = "unity_engine-monobehaviour")]
262 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
263 #[cfg(feature = "unity_engine-object_2")]
264 pub use crate::unity_engine::object_2::IObject_2Methods;
265 pub use crate::{
266 combat::basecameracontroller::IBaseCameraController,
267 system::object::IObject,
268 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
269 };
270}