Skip to main content

engage/generated/app/
hubmapicondata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-hubmapicondata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_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/hubmapicondata/HubMapIconData.md"))]
18    #[::unity::class(namespace = "App", name = "HubMapIconData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::hubmapicondata::HubMapIconData>)]
20    pub struct HubMapIconData {}
21}
22
23#[cfg(feature = "app-hubmapicondata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-hubmapicondata")]
27impl HubMapIconData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x28b1970usize)as*mut u8,();
32            )
33        }
34    }
35
36    #[doc = "`TryGetByIconName(::unity::Il2CppString)` overload"]
37    pub fn try_get_by_icon_name(icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::hubmapicondata::HubMapIconData {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x28b1ab0usize)as*mut u8,crate::app::hubmapicondata::HubMapIconData;
40(::unity::Il2CppString)::core::convert::Into::into(icon_name))
41        }
42    }
43}
44
45#[cfg(feature = "app-hubmapicondata")]
46pub trait IHubMapIconDataMethods: IHubMapIconData {
47    #[doc = "`get_DisposName()` overload"]
48    fn get_dispos_name(self) -> ::unity::Il2CppString {
49        unsafe {
50            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a20usize)as*mut u8, ::unity::Il2CppString;
52(HubMapIconData)__receiver)
53        }
54    }
55    #[doc = "`set_DisposName(::unity::Il2CppString)` overload"]
56    fn set_dispos_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
57        unsafe {
58            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a30usize)as*mut u8,();
60(HubMapIconData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
61        }
62    }
63    #[doc = "`get_IconName()` overload"]
64    fn get_icon_name(self) -> ::unity::Il2CppString {
65        unsafe {
66            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a40usize)as*mut u8, ::unity::Il2CppString;
68(HubMapIconData)__receiver)
69        }
70    }
71    #[doc = "`set_IconName(::unity::Il2CppString)` overload"]
72    fn set_icon_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
73        unsafe {
74            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a50usize)as*mut u8,();
76(HubMapIconData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
77        }
78    }
79    #[doc = "`get_LargeScale()` overload"]
80    fn get_large_scale(self) -> f32 {
81        unsafe {
82            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a60usize)as*mut u8,f32;
84(HubMapIconData)__receiver)
85        }
86    }
87    #[doc = "`set_LargeScale(f32)` overload"]
88    fn set_large_scale(self, value: impl ::core::convert::Into<f32>) -> () {
89        unsafe {
90            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a70usize)as*mut u8,();
92(HubMapIconData)__receiver,(f32)::core::convert::Into::into(value))
93        }
94    }
95    #[doc = "`get_SmallScale()` overload"]
96    fn get_small_scale(self) -> f32 {
97        unsafe {
98            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a80usize)as*mut u8,f32;
100(HubMapIconData)__receiver)
101        }
102    }
103    #[doc = "`set_SmallScale(f32)` overload"]
104    fn set_small_scale(self, value: impl ::core::convert::Into<f32>) -> () {
105        unsafe {
106            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x28b1a90usize)as*mut u8,();
108(HubMapIconData)__receiver,(f32)::core::convert::Into::into(value))
109        }
110    }
111    #[doc = "`GetDebugName()` overload"]
112    fn get_debug_name(self) -> ::unity::Il2CppString {
113        unsafe {
114            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            {
116                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
118                    panic!(
119                        "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124                        8usize,
125                        __vt.len(),
126                        <HubMapIconData as ::unity::ClassIdentity>::NAME,
127                        "GetDebugName",
128                    )
129                });
130                let __inner: extern "C" fn(HubMapIconData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
131                    ::core::mem::transmute(__vi.method_ptr);
132                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133                __inner(__receiver, __mi)
134            }
135        }
136    }
137    #[doc = "`.ctor()` overload"]
138    fn ctor(self) -> () {
139        unsafe {
140            let __receiver = <HubMapIconData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x28b1bb0usize)as*mut u8,();
142(HubMapIconData)__receiver)
143        }
144    }
145}
146
147#[cfg(feature = "app-hubmapicondata")]
148impl<__T: IHubMapIconData> IHubMapIconDataMethods for __T {}
149
150#[cfg(feature = "app-hubmapicondata")]
151impl HubMapIconData {
152    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
154    }
155
156    pub fn get_dispos_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
158    }
159
160    pub fn set_dispos_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
162    }
163
164    pub fn get_icon_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
166    }
167
168    pub fn set_icon_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
170    }
171
172    pub fn get_large_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
174    }
175
176    pub fn set_large_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
178    }
179
180    pub fn get_small_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
182    }
183
184    pub fn set_small_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
186    }
187
188    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
190    }
191
192    pub fn try_get_by_icon_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
194    }
195
196    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
198    }
199}
200
201#[cfg(feature = "app-hubmapicondata")]
202impl HubMapIconData {
203    #[doc = "Direct (non-virtual) call to `HubMapIconData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
204    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
205        let __mi = Self::get_debug_name_method_info();
206        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
207        __inner(this.into(), ::core::option::Option::None)
208    }
209}
210
211#[cfg(feature = "app-hubmapicondata")]
212impl HubMapIconData {
213    #[doc = "`.ctor()` — no args"]
214    pub fn new() -> Self {
215        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
216            panic!(
217                "{}
218::{}
219 failed to instantiate",
220                ::core::stringify!(HubMapIconData),
221                ::core::stringify!(new),
222            )
223        });
224        <Self as IHubMapIconDataMethods>::ctor(this);
225        this
226    }
227}
228
229#[cfg(feature = "app-hubmapicondata")]
230#[doc(hidden)]
231pub mod prelude {
232    pub use super::{HubMapIconData, IHubMapIconData, IHubMapIconDataMethods};
233    #[cfg(feature = "app-structbase")]
234    pub use crate::app::structbase::IStructBaseMethods;
235    #[cfg(feature = "app-structdata_1")]
236    pub use crate::app::structdata_1::IStructData_1Methods;
237    #[cfg(feature = "app-structtemplate_1")]
238    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
239    #[cfg(feature = "system-object")]
240    pub use crate::system::object::IObjectMethods;
241    pub use crate::{
242        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
243        system::object::IObject,
244    };
245}