engage/generated/combat/
cameracontrollerside.rs1#[cfg(feature = "combat-cameracontrollerside-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/cameracontrollerside/CameraControllerSide.md"))]
20 #[::unity::class(namespace = "Combat", name = "CameraControllerSide")]
21 #[parent(crate::combat::basecameracontroller::BaseCameraController)]
22 pub struct CameraControllerSide {
23 #[offset(168)]
24 #[rename(name = "DistanceCurve")]
25 pub distance_curve: crate::unity_engine::animationcurve::AnimationCurve,
26 #[offset(176)]
27 #[rename(name = "CameraHeight")]
28 pub camera_height: f32,
29 #[offset(180)]
30 #[rename(name = "CameraHeighWithTarget")]
31 pub camera_heigh_with_target: bool,
32 }
33}
34
35#[cfg(feature = "combat-cameracontrollerside-types")]
36pub use __types::*;
37
38#[cfg(feature = "combat-cameracontrollerside")]
39pub trait ICameraControllerSideMethods: ICameraControllerSide {
40 #[doc = "`get_MaxDistance()` overload"]
41 fn get_max_distance(self) -> f32 {
42 unsafe {
43 let __receiver = <CameraControllerSide as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x25b2b60usize)as*mut u8,f32;
45(CameraControllerSide)__receiver)
46 }
47 }
48 #[doc = "`CheckUsable(bool)` overload"]
49 fn check_usable(self, is_routine: impl ::core::convert::Into<bool>) -> () {
50 unsafe {
51 let __receiver = <CameraControllerSide as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 {
53 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
54 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
55 panic!(
56 "unity: virtual slot {}
57 out of range (vtable len {}
58) on the runtime class behind {}
59 (method `{}
60`)",
61 9usize,
62 __vt.len(),
63 <CameraControllerSide as ::unity::ClassIdentity>::NAME,
64 "CheckUsable",
65 )
66 });
67 let __inner: extern "C" fn(CameraControllerSide, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
68 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69 __inner(__receiver, ::core::convert::Into::into(is_routine), __mi)
70 }
71 }
72 }
73 #[doc = "`GetCameraTargets()` overload"]
74 fn get_camera_targets(self) -> ::unity::Array<i32> {
75 unsafe {
76 let __receiver = <CameraControllerSide as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77 {
78 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
80 panic!(
81 "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86 12usize,
87 __vt.len(),
88 <CameraControllerSide as ::unity::ClassIdentity>::NAME,
89 "GetCameraTargets",
90 )
91 });
92 let __inner: extern "C" fn(CameraControllerSide, ::unity::OptionalMethod) -> ::unity::Array<i32> =
93 ::core::mem::transmute(__vi.method_ptr);
94 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95 __inner(__receiver, __mi)
96 }
97 }
98 }
99 #[doc = "`.ctor()` overload"]
100 fn ctor(self) -> () {
101 unsafe {
102 let __receiver = <CameraControllerSide as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x25b2ff0usize)as*mut u8,();
104(CameraControllerSide)__receiver)
105 }
106 }
107}
108
109#[cfg(feature = "combat-cameracontrollerside")]
110impl<__T: ICameraControllerSide> ICameraControllerSideMethods for __T {}
111
112#[cfg(feature = "combat-cameracontrollerside")]
113impl CameraControllerSide {
114 pub fn get_max_distance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
116 }
117
118 pub fn check_usable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
120 }
121
122 pub fn get_camera_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
124 }
125
126 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
128 }
129}
130
131#[cfg(feature = "combat-cameracontrollerside")]
132impl CameraControllerSide {
133 #[doc = "Direct (non-virtual) call to `CameraControllerSide`'s own `CheckUsable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
134 pub unsafe fn check_usable(this: impl ::core::convert::Into<::unity::IlInstance>, is_routine: bool) -> () {
135 let __mi = Self::check_usable_method_info();
136 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
137 __inner(this.into(), is_routine, ::core::option::Option::None)
138 }
139
140 #[doc = "Direct (non-virtual) call to `CameraControllerSide`'s own `GetCameraTargets`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
141 pub unsafe fn get_camera_targets(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Array<i32> {
142 let __mi = Self::get_camera_targets_method_info();
143 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Array<i32> = ::core::mem::transmute(__mi.method_ptr);
144 __inner(this.into(), ::core::option::Option::None)
145 }
146}
147
148#[cfg(feature = "combat-cameracontrollerside")]
149impl CameraControllerSide {
150 #[doc = "`.ctor()` — no args"]
151 pub fn new() -> Self {
152 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
153 panic!(
154 "{}
155::{}
156 failed to instantiate",
157 ::core::stringify!(CameraControllerSide),
158 ::core::stringify!(new),
159 )
160 });
161 <Self as ICameraControllerSideMethods>::ctor(this);
162 this
163 }
164}
165
166#[cfg(feature = "combat-cameracontrollerside")]
167#[doc(hidden)]
168pub mod prelude {
169 pub use super::{CameraControllerSide, ICameraControllerSide, ICameraControllerSideMethods};
170 #[cfg(feature = "combat-basecameracontroller")]
171 pub use crate::combat::basecameracontroller::IBaseCameraControllerMethods;
172 #[cfg(feature = "system-object")]
173 pub use crate::system::object::IObjectMethods;
174 #[cfg(feature = "unity_engine-behaviour")]
175 pub use crate::unity_engine::behaviour::IBehaviourMethods;
176 #[cfg(feature = "unity_engine-component")]
177 pub use crate::unity_engine::component::IComponentMethods;
178 #[cfg(feature = "unity_engine-monobehaviour")]
179 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
180 #[cfg(feature = "unity_engine-object_2")]
181 pub use crate::unity_engine::object_2::IObject_2Methods;
182 pub use crate::{
183 combat::basecameracontroller::IBaseCameraController,
184 system::object::IObject,
185 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
186 };
187}