Skip to main content

engage/generated/app/
profilecardcommentdata.rs

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