engage/generated/app/
cinemachinecustomaxis.rs1#[cfg(feature = "app-cinemachinecustomaxis-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/cinemachinecustomaxis/CinemachineCustomAxis.md"))]
19 #[::unity::class(namespace = "App", name = "CinemachineCustomAxis")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CinemachineCustomAxis {
22 #[offset(24)]
23 #[rename(name = "xInversion")]
24 pub x_inversion: bool,
25 #[offset(25)]
26 #[rename(name = "yInversion")]
27 pub y_inversion: bool,
28 #[offset(40)]
29 #[rename(name = "Fov_Top")]
30 pub fov_top: f32,
31 #[offset(44)]
32 #[rename(name = "Fov_Middle")]
33 pub fov_middle: f32,
34 #[offset(48)]
35 #[rename(name = "Fov_Bottom")]
36 pub fov_bottom: f32,
37 #[offset(52)]
38 #[rename(name = "Allowance")]
39 pub allowance: f32,
40 }
41}
42
43#[cfg(feature = "app-cinemachinecustomaxis-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-cinemachinecustomaxis")]
47pub trait ICinemachineCustomAxisMethods: ICinemachineCustomAxis {
48 #[doc = "`Start()` overload"]
49 fn start(self) -> () {
50 unsafe {
51 let __receiver = <CinemachineCustomAxis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x1ea10f0usize)as*mut u8,();
53(CinemachineCustomAxis)__receiver)
54 }
55 }
56 #[doc = "`GetAxisCustom(::unity::Il2CppString)` overload"]
57 fn get_axis_custom(self, axis_name: impl ::core::convert::Into<::unity::Il2CppString>) -> f32 {
58 unsafe {
59 let __receiver = <CinemachineCustomAxis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x1ea11b0usize)as*mut u8,f32;
61(CinemachineCustomAxis)__receiver,(::unity::Il2CppString)::core::convert::Into::into(axis_name))
62 }
63 }
64 #[doc = "`Update()` overload"]
65 fn update(self) -> () {
66 unsafe {
67 let __receiver = <CinemachineCustomAxis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x1ea1940usize)as*mut u8,();
69(CinemachineCustomAxis)__receiver)
70 }
71 }
72 #[doc = "`.ctor()` overload"]
73 fn ctor(self) -> () {
74 unsafe {
75 let __receiver = <CinemachineCustomAxis as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x1ea1a60usize)as*mut u8,();
77(CinemachineCustomAxis)__receiver)
78 }
79 }
80}
81
82#[cfg(feature = "app-cinemachinecustomaxis")]
83impl<__T: ICinemachineCustomAxis> ICinemachineCustomAxisMethods for __T {}
84
85#[cfg(feature = "app-cinemachinecustomaxis")]
86impl CinemachineCustomAxis {
87 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
88 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
89 }
90
91 pub fn get_axis_custom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
92 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
93 }
94
95 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
96 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
97 }
98
99 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
101 }
102}
103
104#[cfg(feature = "app-cinemachinecustomaxis")]
105impl CinemachineCustomAxis {
106 #[doc = "`.ctor()` — no args"]
107 pub fn new() -> Self {
108 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109 panic!(
110 "{}
111::{}
112 failed to instantiate",
113 ::core::stringify!(CinemachineCustomAxis),
114 ::core::stringify!(new),
115 )
116 });
117 <Self as ICinemachineCustomAxisMethods>::ctor(this);
118 this
119 }
120}
121
122#[cfg(feature = "app-cinemachinecustomaxis")]
123#[doc(hidden)]
124pub mod prelude {
125 pub use super::{CinemachineCustomAxis, ICinemachineCustomAxis, ICinemachineCustomAxisMethods};
126 #[cfg(feature = "system-object")]
127 pub use crate::system::object::IObjectMethods;
128 #[cfg(feature = "unity_engine-behaviour")]
129 pub use crate::unity_engine::behaviour::IBehaviourMethods;
130 #[cfg(feature = "unity_engine-component")]
131 pub use crate::unity_engine::component::IComponentMethods;
132 #[cfg(feature = "unity_engine-monobehaviour")]
133 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
134 #[cfg(feature = "unity_engine-object_2")]
135 pub use crate::unity_engine::object_2::IObject_2Methods;
136 pub use crate::{
137 system::object::IObject,
138 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
139 };
140}