Skip to main content

engage/generated/app/
keyhelpdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-keyhelpdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdataarray_1::{IStructDataArray_1, StructDataArray_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::object::{IObject, Object},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/keyhelpdata/KeyHelpData.md"))]
18    #[::unity::class(namespace = "App", name = "KeyHelpData")]
19    #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::keyhelpdata::KeyHelpData>)]
20    pub struct KeyHelpData {}
21}
22
23#[cfg(feature = "app-keyhelpdata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-keyhelpdata")]
27impl KeyHelpData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9e40usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-keyhelpdata")]
38pub trait IKeyHelpDataMethods: IKeyHelpData {
39    #[doc = "`get_ButtonIndex()` overload"]
40    fn get_button_index(self) -> i8 {
41        unsafe {
42            let __receiver = <KeyHelpData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9ef0usize)as*mut u8,i8;
44(KeyHelpData)__receiver)
45        }
46    }
47    #[doc = "`set_ButtonIndex(i8)` overload"]
48    fn set_button_index(self, value: impl ::core::convert::Into<i8>) -> () {
49        unsafe {
50            let __receiver = <KeyHelpData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9f00usize)as*mut u8,();
52(KeyHelpData)__receiver,(i8)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_MID()` overload"]
56    fn get_mid(self) -> ::unity::Il2CppString {
57        unsafe {
58            let __receiver = <KeyHelpData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9f10usize)as*mut u8, ::unity::Il2CppString;
60(KeyHelpData)__receiver)
61        }
62    }
63    #[doc = "`set_MID(::unity::Il2CppString)` overload"]
64    fn set_mid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65        unsafe {
66            let __receiver = <KeyHelpData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9f20usize)as*mut u8,();
68(KeyHelpData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`.ctor()` overload"]
72    fn ctor(self) -> () {
73        unsafe {
74            let __receiver = <KeyHelpData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1bd9f30usize)as*mut u8,();
76(KeyHelpData)__receiver)
77        }
78    }
79}
80
81#[cfg(feature = "app-keyhelpdata")]
82impl<__T: IKeyHelpData> IKeyHelpDataMethods for __T {}
83
84#[cfg(feature = "app-keyhelpdata")]
85impl KeyHelpData {
86    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
87        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
88    }
89
90    pub fn get_button_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
92    }
93
94    pub fn set_button_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
96    }
97
98    pub fn get_mid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
100    }
101
102    pub fn set_mid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
104    }
105
106    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
108    }
109}
110
111#[cfg(feature = "app-keyhelpdata")]
112impl KeyHelpData {
113    #[doc = "`.ctor()` — no args"]
114    pub fn new() -> Self {
115        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116            panic!(
117                "{}
118::{}
119 failed to instantiate",
120                ::core::stringify!(KeyHelpData),
121                ::core::stringify!(new),
122            )
123        });
124        <Self as IKeyHelpDataMethods>::ctor(this);
125        this
126    }
127}
128
129#[cfg(feature = "app-keyhelpdata")]
130#[doc(hidden)]
131pub mod prelude {
132    pub use super::{IKeyHelpData, IKeyHelpDataMethods, KeyHelpData};
133    #[cfg(feature = "app-structbase")]
134    pub use crate::app::structbase::IStructBaseMethods;
135    #[cfg(feature = "app-structdataarray_1")]
136    pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
137    #[cfg(feature = "app-structtemplate_1")]
138    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
139    #[cfg(feature = "system-object")]
140    pub use crate::system::object::IObjectMethods;
141    pub use crate::{
142        app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
143        system::object::IObject,
144    };
145}