Skip to main content

engage/generated/app/
mascotaccdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotaccdata-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/mascotaccdata/MascotAccData_PartsType.md"))]
22    #[repr(C)]
23    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24    pub struct MascotAccData_PartsType {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for MascotAccData_PartsType {
28        const NAME: &'static str = "MascotAccData.PartsType";
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 MascotAccData_PartsType {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl MascotAccData_PartsType {
42        pub fn head() -> Self {
43            Self { value: 0 }
44        }
45
46        pub fn tail() -> Self {
47            Self { value: 1 }
48        }
49
50        pub fn num() -> Self {
51            Self { value: 2 }
52        }
53    }
54
55    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/mascotaccdata/MascotAccData.md"))]
56    #[::unity::class(namespace = "App", name = "MascotAccData")]
57    #[parent(crate::app::structdata_1::StructData_1<crate::app::mascotaccdata::MascotAccData>)]
58    pub struct MascotAccData {}
59}
60
61#[cfg(feature = "app-mascotaccdata-types")]
62pub use __types::*;
63
64#[cfg(feature = "app-mascotaccdata")]
65impl MascotAccData {
66    #[doc = "`Load()` overload"]
67    pub fn load() -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2031880usize)as*mut u8,();
70            )
71        }
72    }
73}
74
75#[cfg(feature = "app-mascotaccdata")]
76pub trait IMascotAccDataMethods: IMascotAccData {
77    #[doc = "`get_Aid()` overload"]
78    fn get_aid(self) -> ::unity::Il2CppString {
79        unsafe {
80            let __receiver = <MascotAccData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x2031930usize)as*mut u8, ::unity::Il2CppString;
82(MascotAccData)__receiver)
83        }
84    }
85    #[doc = "`set_Aid(::unity::Il2CppString)` overload"]
86    fn set_aid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
87        unsafe {
88            let __receiver = <MascotAccData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x2031940usize)as*mut u8,();
90(MascotAccData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
91        }
92    }
93    #[doc = "`get_Type()` overload"]
94    fn get_type(self) -> crate::app::mascotaccdata::MascotAccData_PartsType {
95        unsafe {
96            let __receiver = <MascotAccData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x2031950usize)as*mut u8,crate::app::mascotaccdata::MascotAccData_PartsType;
98(MascotAccData)__receiver)
99        }
100    }
101    #[doc = "`set_Type(crate::app::mascotaccdata::MascotAccData_PartsType)` overload"]
102    fn set_type(self, value: impl ::core::convert::Into<crate::app::mascotaccdata::MascotAccData_PartsType>) -> () {
103        unsafe {
104            let __receiver = <MascotAccData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x2031960usize)as*mut u8,();
106(MascotAccData)__receiver,(crate::app::mascotaccdata::MascotAccData_PartsType)::core::convert::Into::into(value))
107        }
108    }
109    #[doc = "`GetDebugName()` overload"]
110    fn get_debug_name(self) -> ::unity::Il2CppString {
111        unsafe {
112            let __receiver = <MascotAccData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            {
114                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
115                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
116                    panic!(
117                        "unity: virtual slot {}
118 out of range (vtable len {}
119) on the runtime class behind {}
120 (method `{}
121`)",
122                        8usize,
123                        __vt.len(),
124                        <MascotAccData as ::unity::ClassIdentity>::NAME,
125                        "GetDebugName",
126                    )
127                });
128                let __inner: extern "C" fn(MascotAccData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
129                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130                __inner(__receiver, __mi)
131            }
132        }
133    }
134    #[doc = "`.ctor()` overload"]
135    fn ctor(self) -> () {
136        unsafe {
137            let __receiver = <MascotAccData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x2031980usize)as*mut u8,();
139(MascotAccData)__receiver)
140        }
141    }
142}
143
144#[cfg(feature = "app-mascotaccdata")]
145impl<__T: IMascotAccData> IMascotAccDataMethods for __T {}
146
147#[cfg(feature = "app-mascotaccdata")]
148impl MascotAccData {
149    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
151    }
152
153    pub fn get_aid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
155    }
156
157    pub fn set_aid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
159    }
160
161    pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
163    }
164
165    pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
167    }
168
169    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
171    }
172
173    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
175    }
176}
177
178#[cfg(feature = "app-mascotaccdata")]
179impl MascotAccData {
180    #[doc = "Direct (non-virtual) call to `MascotAccData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
181    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
182        let __mi = Self::get_debug_name_method_info();
183        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
184        __inner(this.into(), ::core::option::Option::None)
185    }
186}
187
188#[cfg(feature = "app-mascotaccdata")]
189impl MascotAccData {
190    #[doc = "`.ctor()` — no args"]
191    pub fn new() -> Self {
192        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
193            panic!(
194                "{}
195::{}
196 failed to instantiate",
197                ::core::stringify!(MascotAccData),
198                ::core::stringify!(new),
199            )
200        });
201        <Self as IMascotAccDataMethods>::ctor(this);
202        this
203    }
204}
205
206#[cfg(feature = "app-mascotaccdata")]
207#[doc(hidden)]
208pub mod prelude {
209    pub use super::{IMascotAccData, IMascotAccDataMethods, MascotAccData, MascotAccData_PartsType};
210    #[cfg(feature = "app-structbase")]
211    pub use crate::app::structbase::IStructBaseMethods;
212    #[cfg(feature = "app-structdata_1")]
213    pub use crate::app::structdata_1::IStructData_1Methods;
214    #[cfg(feature = "app-structtemplate_1")]
215    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
216    #[cfg(feature = "system-object")]
217    pub use crate::system::object::IObjectMethods;
218    #[cfg(feature = "system-enum")]
219    pub use crate::system::r#enum::IEnumMethods;
220    #[cfg(feature = "system-valuetype")]
221    pub use crate::system::valuetype::IValueTypeMethods;
222    pub use crate::{
223        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
224        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
225    };
226}