Skip to main content

engage/generated/app/
gmapcinemachinecontroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gmapcinemachinecontroller-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapcinemachinecontroller/GmapCinemachineController_PointType.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct GmapCinemachineController_PointType {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for GmapCinemachineController_PointType {
21        const NAME: &'static str = "GmapCinemachineController.PointType";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for GmapCinemachineController_PointType {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl GmapCinemachineController_PointType {
35        pub fn none() -> Self {
36            Self { value: -1 }
37        }
38
39        pub fn start() -> Self {
40            Self { value: 0 }
41        }
42
43        pub fn end() -> Self {
44            Self { value: 1 }
45        }
46    }
47
48    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmapcinemachinecontroller/GmapCinemachineController.md"))]
49    #[::unity::class(namespace = "App", name = "GmapCinemachineController")]
50    #[parent(crate::system::object::Object)]
51    pub struct GmapCinemachineController {
52        #[offset(16)]
53        #[rename(name = "m_Carrier")]
54        pub m_carrier: crate::unity_engine::gameobject::GameObject,
55    }
56}
57
58#[cfg(feature = "app-gmapcinemachinecontroller-types")]
59pub use __types::*;
60
61#[cfg(feature = "app-gmapcinemachinecontroller")]
62pub trait IGmapCinemachineControllerMethods: IGmapCinemachineController {
63    #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` overload"]
64    fn ctor(self, carrier: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
65        unsafe {
66            let __receiver =
67                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x2528710usize)as*mut u8,();
69(GmapCinemachineController)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(carrier))
70        }
71    }
72    #[doc = "`SetPosition(crate::unity_engine::vector3::Vector3)` overload"]
73    fn set_position(self, pos: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
74        unsafe {
75            let __receiver =
76                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            ::unity::il2cpp_call!((::unity::module_base()+0x25287a0usize)as*mut u8,();
78(GmapCinemachineController)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(pos))
79        }
80    }
81    #[doc = "`Move(f32)` overload"]
82    fn r#move(self, speed: impl ::core::convert::Into<f32>) -> crate::unity_engine::vector3::Vector3 {
83        unsafe {
84            let __receiver =
85                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x2528830usize)as*mut u8,crate::unity_engine::vector3::Vector3;
87(GmapCinemachineController)__receiver,(f32)::core::convert::Into::into(speed))
88        }
89    }
90    #[doc = "`Set(f32)` overload"]
91    fn set(self, normalized_pos: impl ::core::convert::Into<f32>) -> crate::unity_engine::vector3::Vector3 {
92        unsafe {
93            let __receiver =
94                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x25288d0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
96(GmapCinemachineController)__receiver,(f32)::core::convert::Into::into(normalized_pos))
97        }
98    }
99    #[doc = "`IsMoveFinished(bool)` overload"]
100    fn is_move_finished(self, is_forward: impl ::core::convert::Into<bool>) -> bool {
101        unsafe {
102            let __receiver =
103                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x2528940usize)as*mut u8,bool;
105(GmapCinemachineController)__receiver,(bool)::core::convert::Into::into(is_forward))
106        }
107    }
108    #[doc = "`GetFinishedType()` overload"]
109    fn get_finished_type(self) -> crate::app::gmapcinemachinecontroller::GmapCinemachineController_PointType {
110        unsafe {
111            let __receiver =
112                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x25289b0usize)as*mut u8,crate::app::gmapcinemachinecontroller::GmapCinemachineController_PointType;
114(GmapCinemachineController)__receiver)
115        }
116    }
117    #[doc = "`Enable()` overload"]
118    fn enable(self) -> () {
119        unsafe {
120            let __receiver =
121                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            ::unity::il2cpp_call!((::unity::module_base()+0x2528a00usize)as*mut u8,();
123(GmapCinemachineController)__receiver)
124        }
125    }
126    #[doc = "`Disable()` overload"]
127    fn disable(self) -> () {
128        unsafe {
129            let __receiver =
130                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x2528a10usize)as*mut u8,();
132(GmapCinemachineController)__receiver)
133        }
134    }
135    #[doc = "`GetNormalizedPathPosition()` overload"]
136    fn get_normalized_path_position(self) -> f32 {
137        unsafe {
138            let __receiver =
139                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2528a20usize)as*mut u8,f32;
141(GmapCinemachineController)__receiver)
142        }
143    }
144    #[doc = "`get_PathPosition()` overload"]
145    fn get_path_position(self) -> f32 {
146        unsafe {
147            let __receiver =
148                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            ::unity::il2cpp_call!((::unity::module_base()+0x25288a0usize)as*mut u8,f32;
150(GmapCinemachineController)__receiver)
151        }
152    }
153    #[doc = "`set_PathPosition(f32)` overload"]
154    fn set_path_position(self, value: impl ::core::convert::Into<f32>) -> () {
155        unsafe {
156            let __receiver =
157                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x25288c0usize)as*mut u8,();
159(GmapCinemachineController)__receiver,(f32)::core::convert::Into::into(value))
160        }
161    }
162    #[doc = "`get_PathLength()` overload"]
163    fn get_path_length(self) -> f32 {
164        unsafe {
165            let __receiver =
166                <GmapCinemachineController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            ::unity::il2cpp_call!((::unity::module_base()+0x25288b0usize)as*mut u8,f32;
168(GmapCinemachineController)__receiver)
169        }
170    }
171}
172
173#[cfg(feature = "app-gmapcinemachinecontroller")]
174impl<__T: IGmapCinemachineController> IGmapCinemachineControllerMethods for __T {}
175
176#[cfg(feature = "app-gmapcinemachinecontroller")]
177impl GmapCinemachineController {
178    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
180    }
181
182    pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
184    }
185
186    pub fn move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
188    }
189
190    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
192    }
193
194    pub fn is_move_finished_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
196    }
197
198    pub fn get_finished_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
200    }
201
202    pub fn enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
204    }
205
206    pub fn disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
208    }
209
210    pub fn get_normalized_path_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
212    }
213
214    pub fn get_path_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
216    }
217
218    pub fn set_path_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
220    }
221
222    pub fn get_path_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
224    }
225}
226
227#[cfg(feature = "app-gmapcinemachinecontroller")]
228impl GmapCinemachineController {
229    #[doc = "`.ctor(crate::unity_engine::gameobject::GameObject)` — overload selector"]
230    pub fn new(carrier: crate::unity_engine::gameobject::GameObject) -> Self {
231        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
232            panic!(
233                "{}
234::{}
235 failed to instantiate",
236                ::core::stringify!(GmapCinemachineController),
237                ::core::stringify!(new),
238            )
239        });
240        <Self as IGmapCinemachineControllerMethods>::ctor(this, carrier);
241        this
242    }
243}
244
245#[cfg(feature = "app-gmapcinemachinecontroller")]
246#[doc(hidden)]
247pub mod prelude {
248    pub use super::{GmapCinemachineController, GmapCinemachineController_PointType, IGmapCinemachineController, IGmapCinemachineControllerMethods};
249    #[cfg(feature = "system-object")]
250    pub use crate::system::object::IObjectMethods;
251    #[cfg(feature = "system-enum")]
252    pub use crate::system::r#enum::IEnumMethods;
253    #[cfg(feature = "system-valuetype")]
254    pub use crate::system::valuetype::IValueTypeMethods;
255    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
256}