Skip to main content

engage/generated/app/
controllersupportapplet.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-controllersupportapplet-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/controllersupportapplet/ControllerSupportApplet.md"))]
15    #[::unity::class(namespace = "App", name = "ControllerSupportApplet")]
16    #[parent(crate::system::object::Object)]
17    pub struct ControllerSupportApplet {
18        #[static_field]
19        #[rename(name = "c_appletWaitTime")]
20        pub c_applet_wait_time: f32,
21        #[offset(16)]
22        #[rename(name = "m_preOperationMode")]
23        pub m_pre_operation_mode: crate::unity_engine::switch::operation::Operation_OperationMode,
24        #[offset(32)]
25        #[rename(name = "m_npadIds")]
26        pub m_npad_ids: ::unity::Array<crate::nn::hid::npadid::NpadId>,
27        #[offset(40)]
28        #[rename(name = "m_isHandheldMode")]
29        pub m_is_handheld_mode: bool,
30        #[offset(44)]
31        #[rename(name = "m_DisableCallCount")]
32        pub m_disable_call_count: i32,
33    }
34
35    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/controllersupportapplet/ControllerSupportApplet_CallState.md"))]
36    #[repr(C)]
37    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
38    pub struct ControllerSupportApplet_CallState {
39        pub value: i32,
40    }
41    impl ::unity::ClassIdentity for ControllerSupportApplet_CallState {
42        const NAME: &'static str = "ControllerSupportApplet.CallState";
43        const NAMESPACE: &'static str = "App";
44
45        fn class() -> ::unity::Class {
46            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
47            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
48        }
49    }
50    impl ::unity::IlType for ControllerSupportApplet_CallState {
51        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
52            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
53        }
54    }
55    impl ControllerSupportApplet_CallState {
56        pub fn none() -> Self {
57            Self { value: 0 }
58        }
59
60        pub fn timer_continue() -> Self {
61            Self { value: 1 }
62        }
63
64        pub fn timer_reset() -> Self {
65            Self { value: 2 }
66        }
67
68        pub fn immediate() -> Self {
69            Self { value: 3 }
70        }
71    }
72}
73
74#[cfg(feature = "app-controllersupportapplet-types")]
75pub use __types::*;
76
77#[cfg(feature = "app-controllersupportapplet")]
78pub trait IControllerSupportAppletMethods: IControllerSupportApplet {
79    #[doc = "`SetEnableApplet(bool)` overload"]
80    fn set_enable_applet(self, is_enable: impl ::core::convert::Into<bool>) -> () {
81        unsafe {
82            let __receiver =
83                <ControllerSupportApplet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
84            ::unity::il2cpp_call!((::unity::module_base()+0x253e9c0usize)as*mut u8,();
85(ControllerSupportApplet)__receiver,(bool)::core::convert::Into::into(is_enable))
86        }
87    }
88    #[doc = "`.ctor(::unity::Array<crate::nn::hid::npadid::NpadId>)` overload"]
89    fn ctor(self, npad_id: impl ::core::convert::Into<::unity::Array<crate::nn::hid::npadid::NpadId>>) -> () {
90        unsafe {
91            let __receiver =
92                <ControllerSupportApplet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x253e9f0usize)as*mut u8,();
94(ControllerSupportApplet)__receiver,(::unity::Array<crate::nn::hid::npadid::NpadId>)::core::convert::Into::into(npad_id))
95        }
96    }
97    #[doc = "`Update()` overload"]
98    fn update(self) -> () {
99        unsafe {
100            let __receiver =
101                <ControllerSupportApplet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x253ea30usize)as*mut u8,();
103(ControllerSupportApplet)__receiver)
104        }
105    }
106    #[doc = "`UpdateConnectController()` overload"]
107    fn update_connect_controller(self) -> crate::app::controllersupportapplet::ControllerSupportApplet_CallState {
108        unsafe {
109            let __receiver =
110                <ControllerSupportApplet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            ::unity::il2cpp_call!((::unity::module_base()+0x253ec00usize)as*mut u8,crate::app::controllersupportapplet::ControllerSupportApplet_CallState;
112(ControllerSupportApplet)__receiver)
113        }
114    }
115    #[doc = "`CallControllerSupportApplet()` overload"]
116    fn call_controller_support_applet(self) -> () {
117        unsafe {
118            let __receiver =
119                <ControllerSupportApplet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            ::unity::il2cpp_call!((::unity::module_base()+0x253ee30usize)as*mut u8,();
121(ControllerSupportApplet)__receiver)
122        }
123    }
124    #[doc = "`GetNpadId()` overload"]
125    fn get_npad_id(self) -> crate::nn::hid::npadid::NpadId {
126        unsafe {
127            let __receiver =
128                <ControllerSupportApplet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x253efd0usize)as*mut u8,crate::nn::hid::npadid::NpadId;
130(ControllerSupportApplet)__receiver)
131        }
132    }
133}
134
135#[cfg(feature = "app-controllersupportapplet")]
136impl<__T: IControllerSupportApplet> IControllerSupportAppletMethods for __T {}
137
138#[cfg(feature = "app-controllersupportapplet")]
139impl ControllerSupportApplet {
140    pub fn set_enable_applet_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
142    }
143
144    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
146    }
147
148    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
150    }
151
152    pub fn update_connect_controller_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
154    }
155
156    pub fn call_controller_support_applet_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
158    }
159
160    pub fn get_npad_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
162    }
163}
164
165#[cfg(feature = "app-controllersupportapplet")]
166impl ControllerSupportApplet {
167    #[doc = "`.ctor(::unity::Array<crate::nn::hid::npadid::NpadId>)` — overload selector"]
168    pub fn new(npad_id: ::unity::Array<crate::nn::hid::npadid::NpadId>) -> Self {
169        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
170            panic!(
171                "{}
172::{}
173 failed to instantiate",
174                ::core::stringify!(ControllerSupportApplet),
175                ::core::stringify!(new),
176            )
177        });
178        <Self as IControllerSupportAppletMethods>::ctor(this, npad_id);
179        this
180    }
181}
182
183#[cfg(feature = "app-controllersupportapplet")]
184#[doc(hidden)]
185pub mod prelude {
186    pub use super::{ControllerSupportApplet, ControllerSupportApplet_CallState, IControllerSupportApplet, IControllerSupportAppletMethods};
187    #[cfg(feature = "system-object")]
188    pub use crate::system::object::IObjectMethods;
189    #[cfg(feature = "system-enum")]
190    pub use crate::system::r#enum::IEnumMethods;
191    #[cfg(feature = "system-valuetype")]
192    pub use crate::system::valuetype::IValueTypeMethods;
193    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
194}