engage/generated/root/
cinemachinetouchinputmapper.rs1#[cfg(feature = "root-cinemachinetouchinputmapper-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/root/cinemachinetouchinputmapper/CinemachineTouchInputMapper.md"))]
19 #[::unity::class(namespace = "", name = "CinemachineTouchInputMapper")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CinemachineTouchInputMapper {
22 #[offset(24)]
23 #[rename(name = "TouchSensitivityX")]
24 pub touch_sensitivity_x: f32,
25 #[offset(28)]
26 #[rename(name = "TouchSensitivityY")]
27 pub touch_sensitivity_y: f32,
28 #[offset(32)]
29 #[rename(name = "TouchXInputMapTo")]
30 pub touch_x_input_map_to: ::unity::Il2CppString,
31 #[offset(40)]
32 #[rename(name = "TouchYInputMapTo")]
33 pub touch_y_input_map_to: ::unity::Il2CppString,
34 }
35}
36
37#[cfg(feature = "root-cinemachinetouchinputmapper-types")]
38pub use __types::*;
39
40#[cfg(feature = "root-cinemachinetouchinputmapper")]
41pub trait ICinemachineTouchInputMapperMethods: ICinemachineTouchInputMapper {
42 #[doc = "`Start()` overload"]
43 fn start(self) -> () {
44 unsafe {
45 let __receiver =
46 <CinemachineTouchInputMapper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47 ::unity::il2cpp_call!((::unity::module_base()+0x32fea00usize)as*mut u8,();
48(CinemachineTouchInputMapper)__receiver)
49 }
50 }
51 #[doc = "`GetInputAxis(::unity::Il2CppString)` overload"]
52 fn get_input_axis(self, axis_name: impl ::core::convert::Into<::unity::Il2CppString>) -> f32 {
53 unsafe {
54 let __receiver =
55 <CinemachineTouchInputMapper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x32feaf0usize)as*mut u8,f32;
57(CinemachineTouchInputMapper)__receiver,(::unity::Il2CppString)::core::convert::Into::into(axis_name))
58 }
59 }
60 #[doc = "`.ctor()` overload"]
61 fn ctor(self) -> () {
62 unsafe {
63 let __receiver =
64 <CinemachineTouchInputMapper as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65 ::unity::il2cpp_call!((::unity::module_base()+0x32febc0usize)as*mut u8,();
66(CinemachineTouchInputMapper)__receiver)
67 }
68 }
69}
70
71#[cfg(feature = "root-cinemachinetouchinputmapper")]
72impl<__T: ICinemachineTouchInputMapper> ICinemachineTouchInputMapperMethods for __T {}
73
74#[cfg(feature = "root-cinemachinetouchinputmapper")]
75impl CinemachineTouchInputMapper {
76 pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
78 }
79
80 pub fn get_input_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
82 }
83
84 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
86 }
87}
88
89#[cfg(feature = "root-cinemachinetouchinputmapper")]
90impl CinemachineTouchInputMapper {
91 #[doc = "`.ctor()` — no args"]
92 pub fn new() -> Self {
93 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94 panic!(
95 "{}
96::{}
97 failed to instantiate",
98 ::core::stringify!(CinemachineTouchInputMapper),
99 ::core::stringify!(new),
100 )
101 });
102 <Self as ICinemachineTouchInputMapperMethods>::ctor(this);
103 this
104 }
105}
106
107#[cfg(feature = "root-cinemachinetouchinputmapper")]
108#[doc(hidden)]
109pub mod prelude {
110 pub use super::{CinemachineTouchInputMapper, ICinemachineTouchInputMapper, ICinemachineTouchInputMapperMethods};
111 #[cfg(feature = "system-object")]
112 pub use crate::system::object::IObjectMethods;
113 #[cfg(feature = "unity_engine-behaviour")]
114 pub use crate::unity_engine::behaviour::IBehaviourMethods;
115 #[cfg(feature = "unity_engine-component")]
116 pub use crate::unity_engine::component::IComponentMethods;
117 #[cfg(feature = "unity_engine-monobehaviour")]
118 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
119 #[cfg(feature = "unity_engine-object_2")]
120 pub use crate::unity_engine::object_2::IObject_2Methods;
121 pub use crate::{
122 system::object::IObject,
123 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
124 };
125}