Skip to main content

engage/generated/app/
profilecardthemeofeditmapdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilecardthemeofeditmapdata-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::{
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilecardthemeofeditmapdata/ProfileCardThemeOfEditMapData_Categories.md"))]
22    #[repr(C)]
23    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24    pub struct ProfileCardThemeOfEditMapData_Categories {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for ProfileCardThemeOfEditMapData_Categories {
28        const NAME: &'static str = "ProfileCardThemeOfEditMapData.Categories";
29        const NAMESPACE: &'static str = "App";
30
31        fn class() -> ::unity::Class {
32            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34        }
35    }
36    impl ::unity::IlType for ProfileCardThemeOfEditMapData_Categories {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl ProfileCardThemeOfEditMapData_Categories {
42        pub fn unit() -> Self {
43            Self { value: 0 }
44        }
45
46        pub fn map() -> Self {
47            Self { value: 1 }
48        }
49
50        pub fn object() -> Self {
51            Self { value: 2 }
52        }
53
54        pub fn conception() -> Self {
55            Self { value: 3 }
56        }
57
58        pub fn onomatopoeia() -> Self {
59            Self { value: 4 }
60        }
61
62        pub fn num() -> Self {
63            Self { value: 5 }
64        }
65    }
66
67    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/profilecardthemeofeditmapdata/ProfileCardThemeOfEditMapData.md"))]
68    #[::unity::class(namespace = "App", name = "ProfileCardThemeOfEditMapData")]
69    #[parent(crate::app::structdata_1::StructData_1<crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData>)]
70    pub struct ProfileCardThemeOfEditMapData {
71        #[static_field]
72        #[rename(name = "CategoryMid")]
73        pub category_mid: ::unity::Array<::unity::Il2CppString>,
74    }
75}
76
77#[cfg(feature = "app-profilecardthemeofeditmapdata-types")]
78pub use __types::*;
79
80#[cfg(feature = "app-profilecardthemeofeditmapdata")]
81impl ProfileCardThemeOfEditMapData {
82    #[doc = "`Load()` overload"]
83    pub fn load() -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd6e0usize)as*mut u8,();
86            )
87        }
88    }
89
90    #[doc = "`GetCategoryMid(crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories)` overload"]
91    pub fn get_category_mid(
92        category: impl ::core::convert::Into<crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories>,
93    ) -> ::unity::Il2CppString {
94        unsafe {
95            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd810usize)as*mut u8, ::unity::Il2CppString;
96(crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories)::core::convert::Into::into(category))
97        }
98    }
99
100    #[doc = "`.cctor()` overload"]
101    pub fn cctor() -> () {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd950usize)as*mut u8,();
104            )
105        }
106    }
107}
108
109#[cfg(feature = "app-profilecardthemeofeditmapdata")]
110pub trait IProfileCardThemeOfEditMapDataMethods: IProfileCardThemeOfEditMapData {
111    #[doc = "`get_Id()` overload"]
112    fn get_id(self) -> ::unity::Il2CppString {
113        unsafe {
114            let __receiver =
115                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd640usize)as*mut u8, ::unity::Il2CppString;
117(ProfileCardThemeOfEditMapData)__receiver)
118        }
119    }
120    #[doc = "`set_Id(::unity::Il2CppString)` overload"]
121    fn set_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
122        unsafe {
123            let __receiver =
124                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd650usize)as*mut u8,();
126(ProfileCardThemeOfEditMapData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
127        }
128    }
129    #[doc = "`get_Name()` overload"]
130    fn get_name(self) -> ::unity::Il2CppString {
131        unsafe {
132            let __receiver =
133                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd660usize)as*mut u8, ::unity::Il2CppString;
135(ProfileCardThemeOfEditMapData)__receiver)
136        }
137    }
138    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
139    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
140        unsafe {
141            let __receiver =
142                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd670usize)as*mut u8,();
144(ProfileCardThemeOfEditMapData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
145        }
146    }
147    #[doc = "`get_Category()` overload"]
148    fn get_category(self) -> crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories {
149        unsafe {
150            let __receiver =
151                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd680usize)as*mut u8,crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories;
153(ProfileCardThemeOfEditMapData)__receiver)
154        }
155    }
156    #[doc = "`set_Category(crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories)` overload"]
157    fn set_category(
158        self,
159        value: impl ::core::convert::Into<crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories>,
160    ) -> () {
161        unsafe {
162            let __receiver =
163                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd690usize)as*mut u8,();
165(ProfileCardThemeOfEditMapData)__receiver,(crate::app::profilecardthemeofeditmapdata::ProfileCardThemeOfEditMapData_Categories)::core::convert::Into::into(value))
166        }
167    }
168    #[doc = "`get_Condition()` overload"]
169    fn get_condition(self) -> crate::app::profilecardcondition::ProfileCardCondition {
170        unsafe {
171            let __receiver =
172                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd6a0usize)as*mut u8,crate::app::profilecardcondition::ProfileCardCondition;
174(ProfileCardThemeOfEditMapData)__receiver)
175        }
176    }
177    #[doc = "`set_Condition(crate::app::profilecardcondition::ProfileCardCondition)` overload"]
178    fn set_condition(self, value: impl ::core::convert::Into<crate::app::profilecardcondition::ProfileCardCondition>) -> () {
179        unsafe {
180            let __receiver =
181                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd6b0usize)as*mut u8,();
183(ProfileCardThemeOfEditMapData)__receiver,(crate::app::profilecardcondition::ProfileCardCondition)::core::convert::Into::into(value))
184        }
185    }
186    #[doc = "`get_Arg()` overload"]
187    fn get_arg(self) -> ::unity::Il2CppString {
188        unsafe {
189            let __receiver =
190                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd6c0usize)as*mut u8, ::unity::Il2CppString;
192(ProfileCardThemeOfEditMapData)__receiver)
193        }
194    }
195    #[doc = "`set_Arg(::unity::Il2CppString)` overload"]
196    fn set_arg(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
197        unsafe {
198            let __receiver =
199                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd6d0usize)as*mut u8,();
201(ProfileCardThemeOfEditMapData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
202        }
203    }
204    #[doc = "`GetDebugName()` overload"]
205    fn get_debug_name(self) -> ::unity::Il2CppString {
206        unsafe {
207            let __receiver =
208                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            {
210                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
211                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
212                    panic!(
213                        "unity: virtual slot {}
214 out of range (vtable len {}
215) on the runtime class behind {}
216 (method `{}
217`)",
218                        8usize,
219                        __vt.len(),
220                        <ProfileCardThemeOfEditMapData as ::unity::ClassIdentity>::NAME,
221                        "GetDebugName",
222                    )
223                });
224                let __inner: extern "C" fn(ProfileCardThemeOfEditMapData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
225                    ::core::mem::transmute(__vi.method_ptr);
226                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
227                __inner(__receiver, __mi)
228            }
229        }
230    }
231    #[doc = "`.ctor()` overload"]
232    fn ctor(self) -> () {
233        unsafe {
234            let __receiver =
235                <ProfileCardThemeOfEditMapData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236            ::unity::il2cpp_call!((::unity::module_base()+0x2bfd8d0usize)as*mut u8,();
237(ProfileCardThemeOfEditMapData)__receiver)
238        }
239    }
240}
241
242#[cfg(feature = "app-profilecardthemeofeditmapdata")]
243impl<__T: IProfileCardThemeOfEditMapData> IProfileCardThemeOfEditMapDataMethods for __T {}
244
245#[cfg(feature = "app-profilecardthemeofeditmapdata")]
246impl ProfileCardThemeOfEditMapData {
247    pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
249    }
250
251    pub fn set_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
253    }
254
255    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
257    }
258
259    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
261    }
262
263    pub fn get_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
265    }
266
267    pub fn set_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
269    }
270
271    pub fn get_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
273    }
274
275    pub fn set_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
277    }
278
279    pub fn get_arg_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
281    }
282
283    pub fn set_arg_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
285    }
286
287    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
289    }
290
291    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
293    }
294
295    pub fn get_category_mid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
297    }
298
299    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
301    }
302
303    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
305    }
306}
307
308#[cfg(feature = "app-profilecardthemeofeditmapdata")]
309impl ProfileCardThemeOfEditMapData {
310    #[doc = "Direct (non-virtual) call to `ProfileCardThemeOfEditMapData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
311    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
312        let __mi = Self::get_debug_name_method_info();
313        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
314        __inner(this.into(), ::core::option::Option::None)
315    }
316}
317
318#[cfg(feature = "app-profilecardthemeofeditmapdata")]
319impl ProfileCardThemeOfEditMapData {
320    #[doc = "`.ctor()` — no args"]
321    pub fn new() -> Self {
322        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
323            panic!(
324                "{}
325::{}
326 failed to instantiate",
327                ::core::stringify!(ProfileCardThemeOfEditMapData),
328                ::core::stringify!(new),
329            )
330        });
331        <Self as IProfileCardThemeOfEditMapDataMethods>::ctor(this);
332        this
333    }
334}
335
336#[cfg(feature = "app-profilecardthemeofeditmapdata")]
337#[doc(hidden)]
338pub mod prelude {
339    pub use super::{
340        IProfileCardThemeOfEditMapData, IProfileCardThemeOfEditMapDataMethods, ProfileCardThemeOfEditMapData,
341        ProfileCardThemeOfEditMapData_Categories,
342    };
343    #[cfg(feature = "app-structbase")]
344    pub use crate::app::structbase::IStructBaseMethods;
345    #[cfg(feature = "app-structdata_1")]
346    pub use crate::app::structdata_1::IStructData_1Methods;
347    #[cfg(feature = "app-structtemplate_1")]
348    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
349    #[cfg(feature = "system-object")]
350    pub use crate::system::object::IObjectMethods;
351    #[cfg(feature = "system-enum")]
352    pub use crate::system::r#enum::IEnumMethods;
353    #[cfg(feature = "system-valuetype")]
354    pub use crate::system::valuetype::IValueTypeMethods;
355    pub use crate::{
356        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
357        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
358    };
359}