Skip to main content

engage/generated/app/
gyromnager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gyromnager-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/gyromnager/GyroMnager_DeviceType.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct GyroMnager_DeviceType {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for GyroMnager_DeviceType {
21        const NAME: &'static str = "GyroMnager.DeviceType";
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 GyroMnager_DeviceType {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl GyroMnager_DeviceType {
35        pub fn joy_left() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn joy_right() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn max() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn handheld() -> Self {
48            Self { value: 0 }
49        }
50
51        pub fn full_key() -> Self {
52            Self { value: 0 }
53        }
54    }
55
56    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gyromnager/GyroMnager.md"))]
57    #[::unity::class(namespace = "App", name = "GyroMnager")]
58    #[parent(crate::system::object::Object)]
59    pub struct GyroMnager {
60        #[offset(16)]
61        #[rename(name = "m_IsSampling")]
62        pub m_is_sampling: bool,
63        #[offset(24)]
64        #[rename(name = "m_HandleList")]
65        pub m_handle_list: ::unity::Array<crate::nn::hid::sixaxissensorhandle::SixAxisSensorHandle>,
66        #[offset(32)]
67        #[rename(name = "m_HandleCoount")]
68        pub m_handle_coount: i32,
69        #[offset(40)]
70        #[rename(name = "m_StateList")]
71        pub m_state_list: ::unity::Array<crate::nn::hid::sixaxissensorstate::SixAxisSensorState>,
72    }
73}
74
75#[cfg(feature = "app-gyromnager-types")]
76pub use __types::*;
77
78#[cfg(feature = "app-gyromnager")]
79pub trait IGyroMnagerMethods: IGyroMnager {
80    #[doc = "`get_PadStyle()` overload"]
81    fn get_pad_style(self) -> crate::nn::hid::npadstyle::NpadStyle {
82        unsafe {
83            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x2978610usize)as*mut u8,crate::nn::hid::npadstyle::NpadStyle;
85(GyroMnager)__receiver)
86        }
87    }
88    #[doc = "`set_PadStyle(crate::nn::hid::npadstyle::NpadStyle)` overload"]
89    fn set_pad_style(self, value: impl ::core::convert::Into<crate::nn::hid::npadstyle::NpadStyle>) -> () {
90        unsafe {
91            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            ::unity::il2cpp_call!((::unity::module_base()+0x2978620usize)as*mut u8,();
93(GyroMnager)__receiver,(crate::nn::hid::npadstyle::NpadStyle)::core::convert::Into::into(value))
94        }
95    }
96    #[doc = "`.ctor()` overload"]
97    fn ctor(self) -> () {
98        unsafe {
99            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x2978630usize)as*mut u8,();
101(GyroMnager)__receiver)
102        }
103    }
104    #[doc = "`SetupPad(crate::nn::hid::npadid::NpadId, crate::nn::hid::npadstyle::NpadStyle)` overload"]
105    fn setup_pad(
106        self,
107        npad_id: impl ::core::convert::Into<crate::nn::hid::npadid::NpadId>,
108        npad_style: impl ::core::convert::Into<crate::nn::hid::npadstyle::NpadStyle>,
109    ) -> () {
110        unsafe {
111            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x2978730usize)as*mut u8,();
113(GyroMnager)__receiver,(crate::nn::hid::npadid::NpadId)::core::convert::Into::into(npad_id),(crate::nn::hid::npadstyle::NpadStyle)::core::convert::Into::into(npad_style))
114        }
115    }
116    #[doc = "`StartSampling()` overload"]
117    fn start_sampling(self) -> () {
118        unsafe {
119            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x29788a0usize)as*mut u8,();
121(GyroMnager)__receiver)
122        }
123    }
124    #[doc = "`StopSampling()` overload"]
125    fn stop_sampling(self) -> () {
126        unsafe {
127            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x2978830usize)as*mut u8,();
129(GyroMnager)__receiver)
130        }
131    }
132    #[doc = "`Update()` overload"]
133    fn update(self) -> () {
134        unsafe {
135            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2978910usize)as*mut u8,();
137(GyroMnager)__receiver)
138        }
139    }
140    #[doc = "`GetState(crate::app::gyromnager::GyroMnager_DeviceType)` overload"]
141    fn get_state(
142        self,
143        r#type: impl ::core::convert::Into<crate::app::gyromnager::GyroMnager_DeviceType>,
144    ) -> crate::nn::hid::sixaxissensorstate::SixAxisSensorState {
145        unsafe {
146            let __receiver = <GyroMnager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x29789c0usize)as*mut u8,crate::nn::hid::sixaxissensorstate::SixAxisSensorState;
148(GyroMnager)__receiver,(crate::app::gyromnager::GyroMnager_DeviceType)::core::convert::Into::into(r#type))
149        }
150    }
151}
152
153#[cfg(feature = "app-gyromnager")]
154impl<__T: IGyroMnager> IGyroMnagerMethods for __T {}
155
156#[cfg(feature = "app-gyromnager")]
157impl GyroMnager {
158    pub fn get_pad_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
160    }
161
162    pub fn set_pad_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
164    }
165
166    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
168    }
169
170    pub fn setup_pad_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
172    }
173
174    pub fn start_sampling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
176    }
177
178    pub fn stop_sampling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
180    }
181
182    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
184    }
185
186    pub fn get_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
188    }
189}
190
191#[cfg(feature = "app-gyromnager")]
192impl GyroMnager {
193    #[doc = "`.ctor()` — no args"]
194    pub fn new() -> Self {
195        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
196            panic!(
197                "{}
198::{}
199 failed to instantiate",
200                ::core::stringify!(GyroMnager),
201                ::core::stringify!(new),
202            )
203        });
204        <Self as IGyroMnagerMethods>::ctor(this);
205        this
206    }
207}
208
209#[cfg(feature = "app-gyromnager")]
210#[doc(hidden)]
211pub mod prelude {
212    pub use super::{GyroMnager, GyroMnager_DeviceType, IGyroMnager, IGyroMnagerMethods};
213    #[cfg(feature = "system-object")]
214    pub use crate::system::object::IObjectMethods;
215    #[cfg(feature = "system-enum")]
216    pub use crate::system::r#enum::IEnumMethods;
217    #[cfg(feature = "system-valuetype")]
218    pub use crate::system::valuetype::IValueTypeMethods;
219    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
220}