Skip to main content

engage/generated/app/squat/
stick.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-squat-stick-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/squat/stick/Stick_KeyDirection.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct Stick_KeyDirection {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for Stick_KeyDirection {
21        const NAME: &'static str = "Stick.KeyDirection";
22        const NAMESPACE: &'static str = "App.Squat";
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 Stick_KeyDirection {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl Stick_KeyDirection {
35        pub fn dir_up() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn dir_up_right() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn dir_right() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn dir_down_right() -> Self {
48            Self { value: 3 }
49        }
50
51        pub fn dir_down() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn dir_down_left() -> Self {
56            Self { value: 5 }
57        }
58
59        pub fn dir_left() -> Self {
60            Self { value: 6 }
61        }
62
63        pub fn dir_up_left() -> Self {
64            Self { value: 7 }
65        }
66
67        pub fn dir_count() -> Self {
68            Self { value: 8 }
69        }
70    }
71
72    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/squat/stick/Stick_RotateDir.md"))]
73    #[repr(C)]
74    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
75    pub struct Stick_RotateDir {
76        pub value: i32,
77    }
78    impl ::unity::ClassIdentity for Stick_RotateDir {
79        const NAME: &'static str = "Stick.RotateDir";
80        const NAMESPACE: &'static str = "App.Squat";
81
82        fn class() -> ::unity::Class {
83            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
84            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
85        }
86    }
87    impl ::unity::IlType for Stick_RotateDir {
88        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
89            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
90        }
91    }
92    impl Stick_RotateDir {
93        pub fn stop() -> Self {
94            Self { value: 0 }
95        }
96
97        pub fn clock_wise() -> Self {
98            Self { value: 1 }
99        }
100
101        pub fn un_clock_wise() -> Self {
102            Self { value: 2 }
103        }
104    }
105
106    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/squat/stick/Stick.md"))]
107    #[::unity::class(namespace = "App.Squat", name = "Stick")]
108    #[parent(crate::system::object::Object)]
109    pub struct Stick {
110        #[static_field]
111        #[rename(name = "cStickEnablePower")]
112        pub c_stick_enable_power: f32,
113        #[static_field]
114        #[rename(name = "cStickNeutralPower")]
115        pub c_stick_neutral_power: f32,
116        #[static_field]
117        #[rename(name = "cStickRotatePower")]
118        pub c_stick_rotate_power: f32,
119        #[static_field]
120        #[rename(name = "cRotateCountMaxSec")]
121        pub c_rotate_count_max_sec: f32,
122        #[static_field]
123        #[rename(name = "cRotationOKDir")]
124        pub c_rotation_ok_dir: f32,
125        #[offset(20)]
126        #[rename(name = "m_StickX")]
127        pub m_stick_x: f32,
128        #[offset(24)]
129        #[rename(name = "m_StickY")]
130        pub m_stick_y: f32,
131        #[offset(28)]
132        #[rename(name = "m_Power")]
133        pub m_power: f32,
134        #[offset(32)]
135        #[rename(name = "m_DirNow")]
136        pub m_dir_now: f32,
137        #[offset(36)]
138        #[rename(name = "m_DirPast")]
139        pub m_dir_past: f32,
140        #[offset(40)]
141        #[rename(name = "m_TotalRotateDir")]
142        pub m_total_rotate_dir: f32,
143        #[offset(44)]
144        #[rename(name = "m_RotCount")]
145        pub m_rot_count: i32,
146        #[offset(48)]
147        #[rename(name = "m_KeepRotCount")]
148        pub m_keep_rot_count: i32,
149        #[offset(52)]
150        #[rename(name = "m_Rot")]
151        pub m_rot: crate::app::squat::stick::Stick_RotateDir,
152        #[offset(64)]
153        #[rename(name = "m_DirLogger")]
154        pub m_dir_logger: crate::system::collections::generic::list_1::List_1<i32>,
155        #[offset(72)]
156        #[rename(name = "m_LoggerTimer")]
157        pub m_logger_timer: f32,
158    }
159}
160
161#[cfg(feature = "app-squat-stick-types")]
162pub use __types::*;
163
164#[cfg(feature = "app-squat-stick")]
165pub trait IStickMethods: IStick {
166    #[doc = "`get_IsRight()` overload"]
167    fn get_is_right(self) -> bool {
168        unsafe {
169            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2502b50usize)as*mut u8,bool;
171(Stick)__receiver)
172        }
173    }
174    #[doc = "`set_IsRight(bool)` overload"]
175    fn set_is_right(self, value: impl ::core::convert::Into<bool>) -> () {
176        unsafe {
177            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x2502b60usize)as*mut u8,();
179(Stick)__receiver,(bool)::core::convert::Into::into(value))
180        }
181    }
182    #[doc = "`get_IsNeutral()` overload"]
183    fn get_is_neutral(self) -> bool {
184        unsafe {
185            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x2502b70usize)as*mut u8,bool;
187(Stick)__receiver)
188        }
189    }
190    #[doc = "`set_IsNeutral(bool)` overload"]
191    fn set_is_neutral(self, value: impl ::core::convert::Into<bool>) -> () {
192        unsafe {
193            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194            ::unity::il2cpp_call!((::unity::module_base()+0x2502b80usize)as*mut u8,();
195(Stick)__receiver,(bool)::core::convert::Into::into(value))
196        }
197    }
198    #[doc = "`get_IsEclypse()` overload"]
199    fn get_is_eclypse(self) -> bool {
200        unsafe {
201            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x2502b90usize)as*mut u8,bool;
203(Stick)__receiver)
204        }
205    }
206    #[doc = "`set_IsEclypse(bool)` overload"]
207    fn set_is_eclypse(self, value: impl ::core::convert::Into<bool>) -> () {
208        unsafe {
209            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            ::unity::il2cpp_call!((::unity::module_base()+0x2502ba0usize)as*mut u8,();
211(Stick)__receiver,(bool)::core::convert::Into::into(value))
212        }
213    }
214    #[doc = "`get_IsWatchClockwise()` overload"]
215    fn get_is_watch_clockwise(self) -> bool {
216        unsafe {
217            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x2502bb0usize)as*mut u8,bool;
219(Stick)__receiver)
220        }
221    }
222    #[doc = "`set_IsWatchClockwise(bool)` overload"]
223    fn set_is_watch_clockwise(self, value: impl ::core::convert::Into<bool>) -> () {
224        unsafe {
225            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x2502bc0usize)as*mut u8,();
227(Stick)__receiver,(bool)::core::convert::Into::into(value))
228        }
229    }
230    #[doc = "`.ctor()` overload"]
231    fn ctor(self) -> () {
232        unsafe {
233            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x2502bd0usize)as*mut u8,();
235(Stick)__receiver)
236        }
237    }
238    #[doc = "`.ctor(bool)` overload"]
239    fn ctor_2(self, set_right: impl ::core::convert::Into<bool>) -> () {
240        unsafe {
241            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x2502c60usize)as*mut u8,();
243(Stick)__receiver,(bool)::core::convert::Into::into(set_right))
244        }
245    }
246    #[doc = "`Tick()` overload"]
247    fn tick(self) -> () {
248        unsafe {
249            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x2502d10usize)as*mut u8,();
251(Stick)__receiver)
252        }
253    }
254    #[doc = "`ResetClockwise()` overload"]
255    fn reset_clockwise(self) -> () {
256        unsafe {
257            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x2503510usize)as*mut u8,();
259(Stick)__receiver)
260        }
261    }
262    #[doc = "`TriggerRight(bool)` overload"]
263    fn trigger_right(self, check_call: impl ::core::convert::Into<bool>) -> bool {
264        unsafe {
265            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x2503590usize)as*mut u8,bool;
267(Stick)__receiver,(bool)::core::convert::Into::into(check_call))
268        }
269    }
270    #[doc = "`TriggerLeft(bool)` overload"]
271    fn trigger_left(self, check_call: impl ::core::convert::Into<bool>) -> bool {
272        unsafe {
273            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x25035d0usize)as*mut u8,bool;
275(Stick)__receiver,(bool)::core::convert::Into::into(check_call))
276        }
277    }
278    #[doc = "`TriggerUp(bool)` overload"]
279    fn trigger_up(self, check_call: impl ::core::convert::Into<bool>) -> bool {
280        unsafe {
281            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x2503610usize)as*mut u8,bool;
283(Stick)__receiver,(bool)::core::convert::Into::into(check_call))
284        }
285    }
286    #[doc = "`TriggerDown(bool)` overload"]
287    fn trigger_down(self, check_call: impl ::core::convert::Into<bool>) -> bool {
288        unsafe {
289            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            ::unity::il2cpp_call!((::unity::module_base()+0x2503650usize)as*mut u8,bool;
291(Stick)__receiver,(bool)::core::convert::Into::into(check_call))
292        }
293    }
294    #[doc = "`CheckAnyTrigger()` overload"]
295    fn check_any_trigger(self) -> bool {
296        unsafe {
297            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x2503690usize)as*mut u8,bool;
299(Stick)__receiver)
300        }
301    }
302    #[doc = "`IsClockwise()` overload"]
303    fn is_clockwise(self) -> bool {
304        unsafe {
305            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306            ::unity::il2cpp_call!((::unity::module_base()+0x2503710usize)as*mut u8,bool;
307(Stick)__receiver)
308        }
309    }
310    #[doc = "`IsUnClockwise()` overload"]
311    fn is_un_clockwise(self) -> bool {
312        unsafe {
313            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x2503730usize)as*mut u8,bool;
315(Stick)__receiver)
316        }
317    }
318    #[doc = "`IsEclypseStart()` overload"]
319    fn is_eclypse_start(self) -> bool {
320        unsafe {
321            let __receiver = <Stick as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322            ::unity::il2cpp_call!((::unity::module_base()+0x2503750usize)as*mut u8,bool;
323(Stick)__receiver)
324        }
325    }
326}
327
328#[cfg(feature = "app-squat-stick")]
329impl<__T: IStick> IStickMethods for __T {}
330
331#[cfg(feature = "app-squat-stick")]
332impl Stick {
333    pub fn get_is_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
335    }
336
337    pub fn set_is_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
339    }
340
341    pub fn get_is_neutral_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
343    }
344
345    pub fn set_is_neutral_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
347    }
348
349    pub fn get_is_eclypse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
351    }
352
353    pub fn set_is_eclypse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
355    }
356
357    pub fn get_is_watch_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
359    }
360
361    pub fn set_is_watch_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
363    }
364
365    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
367    }
368
369    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
371    }
372
373    pub fn tick_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
375    }
376
377    pub fn reset_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
379    }
380
381    pub fn trigger_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
383    }
384
385    pub fn trigger_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
387    }
388
389    pub fn trigger_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
391    }
392
393    pub fn trigger_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
395    }
396
397    pub fn check_any_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
398        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
399    }
400
401    pub fn is_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
402        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
403    }
404
405    pub fn is_un_clockwise_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
407    }
408
409    pub fn is_eclypse_start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
411    }
412}
413
414#[cfg(feature = "app-squat-stick")]
415impl Stick {
416    #[doc = "`.ctor()` — no args"]
417    pub fn new() -> Self {
418        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
419            panic!(
420                "{}
421::{}
422 failed to instantiate",
423                ::core::stringify!(Stick),
424                ::core::stringify!(new),
425            )
426        });
427        <Self as IStickMethods>::ctor(this);
428        this
429    }
430
431    #[doc = "`.ctor(bool)` — overload selector"]
432    pub fn new_2(set_right: bool) -> Self {
433        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
434            panic!(
435                "{}
436::{}
437 failed to instantiate",
438                ::core::stringify!(Stick),
439                ::core::stringify!(new_2),
440            )
441        });
442        <Self as IStickMethods>::ctor_2(this, set_right);
443        this
444    }
445}
446
447#[cfg(feature = "app-squat-stick")]
448#[doc(hidden)]
449pub mod prelude {
450    pub use super::{IStick, IStickMethods, Stick, Stick_KeyDirection, Stick_RotateDir};
451    #[cfg(feature = "system-object")]
452    pub use crate::system::object::IObjectMethods;
453    #[cfg(feature = "system-enum")]
454    pub use crate::system::r#enum::IEnumMethods;
455    #[cfg(feature = "system-valuetype")]
456    pub use crate::system::valuetype::IValueTypeMethods;
457    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
458}