1#[cfg(feature = "combat-cameracontrollersolo-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/cameracontrollersolo/CameraControllerSolo.md"))]
20 #[::unity::class(namespace = "Combat", name = "CameraControllerSolo")]
21 #[parent(crate::combat::basecameracontroller::BaseCameraController)]
22 pub struct CameraControllerSolo {
23 #[offset(168)]
24 #[rename(name = "Distance")]
25 pub distance: f32,
26 #[offset(172)]
27 #[rename(name = "TargetSide")]
28 pub target_side: i32,
29 #[offset(176)]
30 #[rename(name = "FollowJoint")]
31 pub follow_joint: crate::combat::camerapositiondata::CameraPositionData_TargetJoint,
32 #[offset(180)]
33 #[rename(name = "FollowVector")]
34 pub follow_vector: crate::unity_engine::vector3::Vector3,
35 #[offset(192)]
36 #[rename(name = "FollowVectorBigDragonLeg")]
37 pub follow_vector_big_dragon_leg: crate::unity_engine::vector3::Vector3,
38 #[offset(204)]
39 #[rename(name = "FollowVectorBigDragonFly")]
40 pub follow_vector_big_dragon_fly: crate::unity_engine::vector3::Vector3,
41 #[offset(216)]
42 #[rename(name = "LookAtJoint")]
43 pub look_at_joint: crate::combat::camerapositiondata::CameraPositionData_TargetJoint,
44 #[offset(220)]
45 #[rename(name = "LookAtVector")]
46 pub look_at_vector: crate::unity_engine::vector3::Vector3,
47 #[offset(232)]
48 #[rename(name = "LookAtVectorBigDragonLeg")]
49 pub look_at_vector_big_dragon_leg: crate::unity_engine::vector3::Vector3,
50 #[offset(244)]
51 #[rename(name = "LookAtVectorBigDragonFly")]
52 pub look_at_vector_big_dragon_fly: crate::unity_engine::vector3::Vector3,
53 #[offset(256)]
54 #[rename(name = "LookCenterAndLookAt")]
55 pub look_center_and_look_at: bool,
56 #[offset(257)]
57 #[rename(name = "UnusableCheck")]
58 pub unusable_check: bool,
59 #[offset(258)]
60 #[rename(name = "m_IsCameraInverse")]
61 pub m_is_camera_inverse: bool,
62 #[offset(259)]
63 #[rename(name = "m_IsSideInverse")]
64 pub m_is_side_inverse: bool,
65 }
66}
67
68#[cfg(feature = "combat-cameracontrollersolo-types")]
69pub use __types::*;
70
71#[cfg(feature = "combat-cameracontrollersolo")]
72pub trait ICameraControllerSoloMethods: ICameraControllerSolo {
73 #[doc = "`get_CameraTarget()` overload"]
74 fn get_camera_target(self) -> i32 {
75 unsafe {
76 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 ::unity::il2cpp_call!((::unity::module_base()+0x25b3000usize)as*mut u8,i32;
78(CameraControllerSolo)__receiver)
79 }
80 }
81 #[doc = "`GetCombatVector(crate::unity_engine::vector3::Vector3)` overload"]
82 fn get_combat_vector(self, vec: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
83 unsafe {
84 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 ::unity::il2cpp_call!((::unity::module_base()+0x25b37c0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
86(CameraControllerSolo)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(vec))
87 }
88 }
89 #[doc = "`CheckUsable(bool)` overload"]
90 fn check_usable(self, is_routine: impl ::core::convert::Into<bool>) -> () {
91 unsafe {
92 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93 {
94 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
95 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
96 panic!(
97 "unity: virtual slot {}
98 out of range (vtable len {}
99) on the runtime class behind {}
100 (method `{}
101`)",
102 9usize,
103 __vt.len(),
104 <CameraControllerSolo as ::unity::ClassIdentity>::NAME,
105 "CheckUsable",
106 )
107 });
108 let __inner: extern "C" fn(CameraControllerSolo, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
109 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110 __inner(__receiver, ::core::convert::Into::into(is_routine), __mi)
111 }
112 }
113 }
114 #[doc = "`SetInverse(bool, bool)` overload"]
115 fn set_inverse(self, inv_side: impl ::core::convert::Into<bool>, inv_camera: impl ::core::convert::Into<bool>) -> () {
116 unsafe {
117 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 {
119 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
121 panic!(
122 "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127 6usize,
128 __vt.len(),
129 <CameraControllerSolo as ::unity::ClassIdentity>::NAME,
130 "SetInverse",
131 )
132 });
133 let __inner: extern "C" fn(CameraControllerSolo, bool, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
134 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135 __inner(
136 __receiver,
137 ::core::convert::Into::into(inv_side),
138 ::core::convert::Into::into(inv_camera),
139 __mi,
140 )
141 }
142 }
143 }
144 #[doc = "`Activate()` overload"]
145 fn activate(self) -> () {
146 unsafe {
147 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 {
149 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
150 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
151 panic!(
152 "unity: virtual slot {}
153 out of range (vtable len {}
154) on the runtime class behind {}
155 (method `{}
156`)",
157 10usize,
158 __vt.len(),
159 <CameraControllerSolo as ::unity::ClassIdentity>::NAME,
160 "Activate",
161 )
162 });
163 let __inner: extern "C" fn(CameraControllerSolo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
164 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
165 __inner(__receiver, __mi)
166 }
167 }
168 }
169 #[doc = "`Deactivate()` overload"]
170 fn deactivate(self) -> () {
171 unsafe {
172 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 {
174 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
175 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
176 panic!(
177 "unity: virtual slot {}
178 out of range (vtable len {}
179) on the runtime class behind {}
180 (method `{}
181`)",
182 11usize,
183 __vt.len(),
184 <CameraControllerSolo as ::unity::ClassIdentity>::NAME,
185 "Deactivate",
186 )
187 });
188 let __inner: extern "C" fn(CameraControllerSolo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
189 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
190 __inner(__receiver, __mi)
191 }
192 }
193 }
194 #[doc = "`GetCameraTargets()` overload"]
195 fn get_camera_targets(self) -> ::unity::Array<i32> {
196 unsafe {
197 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 {
199 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
200 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
201 panic!(
202 "unity: virtual slot {}
203 out of range (vtable len {}
204) on the runtime class behind {}
205 (method `{}
206`)",
207 12usize,
208 __vt.len(),
209 <CameraControllerSolo as ::unity::ClassIdentity>::NAME,
210 "GetCameraTargets",
211 )
212 });
213 let __inner: extern "C" fn(CameraControllerSolo, ::unity::OptionalMethod) -> ::unity::Array<i32> =
214 ::core::mem::transmute(__vi.method_ptr);
215 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
216 __inner(__receiver, __mi)
217 }
218 }
219 }
220 #[doc = "`.ctor()` overload"]
221 fn ctor(self) -> () {
222 unsafe {
223 let __receiver = <CameraControllerSolo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x25b3c80usize)as*mut u8,();
225(CameraControllerSolo)__receiver)
226 }
227 }
228}
229
230#[cfg(feature = "combat-cameracontrollersolo")]
231impl<__T: ICameraControllerSolo> ICameraControllerSoloMethods for __T {}
232
233#[cfg(feature = "combat-cameracontrollersolo")]
234impl CameraControllerSolo {
235 pub fn get_camera_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
237 }
238
239 pub fn get_combat_vector_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
241 }
242
243 pub fn check_usable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
245 }
246
247 pub fn set_inverse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
249 }
250
251 pub fn activate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
253 }
254
255 pub fn deactivate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
257 }
258
259 pub fn get_camera_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
261 }
262
263 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
265 }
266}
267
268#[cfg(feature = "combat-cameracontrollersolo")]
269impl CameraControllerSolo {
270 #[doc = "Direct (non-virtual) call to `CameraControllerSolo`'s own `CheckUsable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
271 pub unsafe fn check_usable(this: impl ::core::convert::Into<::unity::IlInstance>, is_routine: bool) -> () {
272 let __mi = Self::check_usable_method_info();
273 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
274 __inner(this.into(), is_routine, ::core::option::Option::None)
275 }
276
277 #[doc = "Direct (non-virtual) call to `CameraControllerSolo`'s own `SetInverse`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
278 pub unsafe fn set_inverse(this: impl ::core::convert::Into<::unity::IlInstance>, inv_side: bool, inv_camera: bool) -> () {
279 let __mi = Self::set_inverse_method_info();
280 let __inner: extern "C" fn(::unity::IlInstance, bool, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
281 __inner(this.into(), inv_side, inv_camera, ::core::option::Option::None)
282 }
283
284 #[doc = "Direct (non-virtual) call to `CameraControllerSolo`'s own `Activate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
285 pub unsafe fn activate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
286 let __mi = Self::activate_method_info();
287 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
288 __inner(this.into(), ::core::option::Option::None)
289 }
290
291 #[doc = "Direct (non-virtual) call to `CameraControllerSolo`'s own `Deactivate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
292 pub unsafe fn deactivate(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
293 let __mi = Self::deactivate_method_info();
294 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
295 __inner(this.into(), ::core::option::Option::None)
296 }
297
298 #[doc = "Direct (non-virtual) call to `CameraControllerSolo`'s own `GetCameraTargets`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299 pub unsafe fn get_camera_targets(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<i32> {
300 let __mi = Self::get_camera_targets_method_info();
301 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<i32> = ::core::mem::transmute(__mi.method_ptr);
302 __inner(this.into(), ::core::option::Option::None)
303 }
304}
305
306#[cfg(feature = "combat-cameracontrollersolo")]
307impl CameraControllerSolo {
308 #[doc = "`.ctor()` — no args"]
309 pub fn new() -> Self {
310 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
311 panic!(
312 "{}
313::{}
314 failed to instantiate",
315 ::core::stringify!(CameraControllerSolo),
316 ::core::stringify!(new),
317 )
318 });
319 <Self as ICameraControllerSoloMethods>::ctor(this);
320 this
321 }
322}
323
324#[cfg(feature = "combat-cameracontrollersolo")]
325#[doc(hidden)]
326pub mod prelude {
327 pub use super::{CameraControllerSolo, ICameraControllerSolo, ICameraControllerSoloMethods};
328 #[cfg(feature = "combat-basecameracontroller")]
329 pub use crate::combat::basecameracontroller::IBaseCameraControllerMethods;
330 #[cfg(feature = "system-object")]
331 pub use crate::system::object::IObjectMethods;
332 #[cfg(feature = "unity_engine-behaviour")]
333 pub use crate::unity_engine::behaviour::IBehaviourMethods;
334 #[cfg(feature = "unity_engine-component")]
335 pub use crate::unity_engine::component::IComponentMethods;
336 #[cfg(feature = "unity_engine-monobehaviour")]
337 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
338 #[cfg(feature = "unity_engine-object_2")]
339 pub use crate::unity_engine::object_2::IObject_2Methods;
340 pub use crate::{
341 combat::basecameracontroller::IBaseCameraController,
342 system::object::IObject,
343 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
344 };
345}