Skip to main content

engage/generated/app/
keyhelpcontroller.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-keyhelpcontroller-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelpcontroller/KeyHelpController_Type.md"))]
23    #[repr(C)]
24    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25    pub struct KeyHelpController_Type {
26        pub value: i32,
27    }
28    impl ::unity::ClassIdentity for KeyHelpController_Type {
29        const NAME: &'static str = "KeyHelpController.Type";
30        const NAMESPACE: &'static str = "App";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for KeyHelpController_Type {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42    impl KeyHelpController_Type {
43        pub fn a() -> Self {
44            Self { value: 0 }
45        }
46
47        pub fn b() -> Self {
48            Self { value: 1 }
49        }
50
51        pub fn x() -> Self {
52            Self { value: 2 }
53        }
54
55        pub fn y() -> Self {
56            Self { value: 3 }
57        }
58
59        pub fn l() -> Self {
60            Self { value: 4 }
61        }
62
63        pub fn r() -> Self {
64            Self { value: 5 }
65        }
66
67        pub fn lr() -> Self {
68            Self { value: 6 }
69        }
70
71        pub fn zl() -> Self {
72            Self { value: 7 }
73        }
74
75        pub fn zr() -> Self {
76            Self { value: 8 }
77        }
78
79        pub fn zlr() -> Self {
80            Self { value: 9 }
81        }
82
83        pub fn plus() -> Self {
84            Self { value: 10 }
85        }
86
87        pub fn minus() -> Self {
88            Self { value: 11 }
89        }
90
91        pub fn up() -> Self {
92            Self { value: 12 }
93        }
94
95        pub fn down() -> Self {
96            Self { value: 13 }
97        }
98
99        pub fn up_down() -> Self {
100            Self { value: 14 }
101        }
102
103        pub fn left() -> Self {
104            Self { value: 15 }
105        }
106
107        pub fn right() -> Self {
108            Self { value: 16 }
109        }
110
111        pub fn left_right() -> Self {
112            Self { value: 17 }
113        }
114
115        pub fn stick_l() -> Self {
116            Self { value: 18 }
117        }
118
119        pub fn stick_r() -> Self {
120            Self { value: 19 }
121        }
122
123        pub fn num() -> Self {
124            Self { value: 20 }
125        }
126    }
127
128    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelpcontroller/KeyHelpController.md"))]
129    #[::unity::class(namespace = "App", name = "KeyHelpController")]
130    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
131    pub struct KeyHelpController {
132        #[offset(24)]
133        #[rename(name = "m_HelpObject")]
134        pub m_help_object: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
135        #[offset(32)]
136        #[rename(name = "m_Interval")]
137        pub m_interval: f32,
138    }
139}
140
141#[cfg(feature = "app-keyhelpcontroller-types")]
142pub use __types::*;
143
144#[cfg(feature = "app-keyhelpcontroller")]
145pub trait IKeyHelpControllerMethods: IKeyHelpController {
146    #[doc = "`SetKeyHelpMessage(::unity::Il2CppString)` overload"]
147    fn set_key_help_message(self, key_help_id: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
148        unsafe {
149            let __receiver = <KeyHelpController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9540usize)as*mut u8,();
151(KeyHelpController)__receiver,(::unity::Il2CppString)::core::convert::Into::into(key_help_id))
152        }
153    }
154    #[doc = "`Hide()` overload"]
155    fn hide(self) -> () {
156        unsafe {
157            let __receiver = <KeyHelpController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9d30usize)as*mut u8,();
159(KeyHelpController)__receiver)
160        }
161    }
162    #[doc = "`SetText(crate::unity_engine::gameobject::GameObject, ::unity::Il2CppString)` overload"]
163    fn set_text(
164        self,
165        game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
166        text: impl ::core::convert::Into<::unity::Il2CppString>,
167    ) -> () {
168        unsafe {
169            let __receiver = <KeyHelpController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9c60usize)as*mut u8,();
171(KeyHelpController)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object),(::unity::Il2CppString)::core::convert::Into::into(text))
172        }
173    }
174    #[doc = "`.ctor()` overload"]
175    fn ctor(self) -> () {
176        unsafe {
177            let __receiver = <KeyHelpController as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9e30usize)as*mut u8,();
179(KeyHelpController)__receiver)
180        }
181    }
182}
183
184#[cfg(feature = "app-keyhelpcontroller")]
185impl<__T: IKeyHelpController> IKeyHelpControllerMethods for __T {}
186
187#[cfg(feature = "app-keyhelpcontroller")]
188impl KeyHelpController {
189    pub fn set_key_help_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
191    }
192
193    pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
195    }
196
197    pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
199    }
200
201    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
203    }
204}
205
206#[cfg(feature = "app-keyhelpcontroller")]
207impl KeyHelpController {
208    #[doc = "`.ctor()` — no args"]
209    pub fn new() -> Self {
210        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
211            panic!(
212                "{}
213::{}
214 failed to instantiate",
215                ::core::stringify!(KeyHelpController),
216                ::core::stringify!(new),
217            )
218        });
219        <Self as IKeyHelpControllerMethods>::ctor(this);
220        this
221    }
222}
223
224#[cfg(feature = "app-keyhelpcontroller")]
225#[doc(hidden)]
226pub mod prelude {
227    pub use super::{IKeyHelpController, IKeyHelpControllerMethods, KeyHelpController, KeyHelpController_Type};
228    #[cfg(feature = "system-object")]
229    pub use crate::system::object::IObjectMethods;
230    #[cfg(feature = "system-enum")]
231    pub use crate::system::r#enum::IEnumMethods;
232    #[cfg(feature = "system-valuetype")]
233    pub use crate::system::valuetype::IValueTypeMethods;
234    #[cfg(feature = "unity_engine-behaviour")]
235    pub use crate::unity_engine::behaviour::IBehaviourMethods;
236    #[cfg(feature = "unity_engine-component")]
237    pub use crate::unity_engine::component::IComponentMethods;
238    #[cfg(feature = "unity_engine-monobehaviour")]
239    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
240    #[cfg(feature = "unity_engine-object_2")]
241    pub use crate::unity_engine::object_2::IObject_2Methods;
242    pub use crate::{
243        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
244        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
245    };
246}