Skip to main content

engage/generated/unity_engine/rendering/
freecamera.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-freecamera-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/unity_engine/rendering/freecamera/FreeCamera.md"))]
19    #[::unity::class(namespace = "UnityEngine.Rendering", name = "FreeCamera")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct FreeCamera {
22        #[offset(24)]
23        #[rename(name = "m_LookSpeedController")]
24        pub m_look_speed_controller: f32,
25        #[offset(28)]
26        #[rename(name = "m_LookSpeedMouse")]
27        pub m_look_speed_mouse: f32,
28        #[offset(32)]
29        #[rename(name = "m_MoveSpeed")]
30        pub m_move_speed: f32,
31        #[offset(36)]
32        #[rename(name = "m_MoveSpeedIncrement")]
33        pub m_move_speed_increment: f32,
34        #[offset(40)]
35        #[rename(name = "m_Turbo")]
36        pub m_turbo: f32,
37        #[static_field]
38        #[rename(name = "kMouseX")]
39        pub k_mouse_x: ::unity::Il2CppString,
40        #[static_field]
41        #[rename(name = "kMouseY")]
42        pub k_mouse_y: ::unity::Il2CppString,
43        #[static_field]
44        #[rename(name = "kRightStickX")]
45        pub k_right_stick_x: ::unity::Il2CppString,
46        #[static_field]
47        #[rename(name = "kRightStickY")]
48        pub k_right_stick_y: ::unity::Il2CppString,
49        #[static_field]
50        #[rename(name = "kVertical")]
51        pub k_vertical: ::unity::Il2CppString,
52        #[static_field]
53        #[rename(name = "kHorizontal")]
54        pub k_horizontal: ::unity::Il2CppString,
55        #[static_field]
56        #[rename(name = "kYAxis")]
57        pub k_y_axis: ::unity::Il2CppString,
58        #[static_field]
59        #[rename(name = "kSpeedAxis")]
60        pub k_speed_axis: ::unity::Il2CppString,
61        #[offset(44)]
62        #[rename(name = "inputRotateAxisX")]
63        pub input_rotate_axis_x: f32,
64        #[offset(48)]
65        #[rename(name = "inputRotateAxisY")]
66        pub input_rotate_axis_y: f32,
67        #[offset(52)]
68        #[rename(name = "inputChangeSpeed")]
69        pub input_change_speed: f32,
70        #[offset(56)]
71        #[rename(name = "inputVertical")]
72        pub input_vertical: f32,
73        #[offset(60)]
74        #[rename(name = "inputHorizontal")]
75        pub input_horizontal: f32,
76        #[offset(64)]
77        #[rename(name = "inputYAxis")]
78        pub input_y_axis: f32,
79        #[offset(68)]
80        #[rename(name = "leftShiftBoost")]
81        pub left_shift_boost: bool,
82        #[offset(69)]
83        #[rename(name = "leftShift")]
84        pub left_shift: bool,
85        #[offset(70)]
86        #[rename(name = "fire1")]
87        pub fire1: bool,
88    }
89}
90
91#[cfg(feature = "unity_engine-rendering-freecamera-types")]
92pub use __types::*;
93
94#[cfg(feature = "unity_engine-rendering-freecamera")]
95impl FreeCamera {
96    #[doc = "`.cctor()` overload"]
97    pub fn cctor() -> () {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x30aa3a0usize)as*mut u8,();
100            )
101        }
102    }
103}
104
105#[cfg(feature = "unity_engine-rendering-freecamera")]
106pub trait IFreeCameraMethods: IFreeCamera {
107    #[doc = "`OnEnable()` overload"]
108    fn on_enable(self) -> () {
109        unsafe {
110            let __receiver = <FreeCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x30a9df0usize)as*mut u8,();
112(FreeCamera)__receiver)
113        }
114    }
115    #[doc = "`RegisterInputs()` overload"]
116    fn register_inputs(self) -> () {
117        unsafe {
118            let __receiver = <FreeCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119            ::unity::il2cpp_call!((::unity::module_base()+0x30a9e00usize)as*mut u8,();
120(FreeCamera)__receiver)
121        }
122    }
123    #[doc = "`UpdateInputs()` overload"]
124    fn update_inputs(self) -> () {
125        unsafe {
126            let __receiver = <FreeCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x30a9e10usize)as*mut u8,();
128(FreeCamera)__receiver)
129        }
130    }
131    #[doc = "`Update()` overload"]
132    fn update(self) -> () {
133        unsafe {
134            let __receiver = <FreeCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x30aa010usize)as*mut u8,();
136(FreeCamera)__receiver)
137        }
138    }
139    #[doc = "`.ctor()` overload"]
140    fn ctor(self) -> () {
141        unsafe {
142            let __receiver = <FreeCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x30aa370usize)as*mut u8,();
144(FreeCamera)__receiver)
145        }
146    }
147}
148
149#[cfg(feature = "unity_engine-rendering-freecamera")]
150impl<__T: IFreeCamera> IFreeCameraMethods for __T {}
151
152#[cfg(feature = "unity_engine-rendering-freecamera")]
153impl FreeCamera {
154    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn register_inputs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161
162    pub fn update_inputs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164    }
165
166    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168    }
169
170    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172    }
173
174    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176    }
177}
178
179#[cfg(feature = "unity_engine-rendering-freecamera")]
180impl FreeCamera {
181    #[doc = "`.ctor()` — no args"]
182    pub fn new() -> Self {
183        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
184            panic!(
185                "{}
186::{}
187 failed to instantiate",
188                ::core::stringify!(FreeCamera),
189                ::core::stringify!(new),
190            )
191        });
192        <Self as IFreeCameraMethods>::ctor(this);
193        this
194    }
195}
196
197#[cfg(feature = "unity_engine-rendering-freecamera")]
198#[doc(hidden)]
199pub mod prelude {
200    pub use super::{FreeCamera, IFreeCamera, IFreeCameraMethods};
201    #[cfg(feature = "system-object")]
202    pub use crate::system::object::IObjectMethods;
203    #[cfg(feature = "unity_engine-behaviour")]
204    pub use crate::unity_engine::behaviour::IBehaviourMethods;
205    #[cfg(feature = "unity_engine-component")]
206    pub use crate::unity_engine::component::IComponentMethods;
207    #[cfg(feature = "unity_engine-monobehaviour")]
208    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
209    #[cfg(feature = "unity_engine-object_2")]
210    pub use crate::unity_engine::object_2::IObject_2Methods;
211    pub use crate::{
212        system::object::IObject,
213        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
214    };
215}