engage/generated/app/
belongdata.rs1#[cfg(feature = "app-belongdata-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/belongdata/BelongData.md"))]
18 #[::unity::class(namespace = "App", name = "BelongData")]
19 #[parent(crate::app::structdata_1::StructData_1<crate::app::belongdata::BelongData>)]
20 pub struct BelongData {}
21}
22
23#[cfg(feature = "app-belongdata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-belongdata")]
27impl BelongData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x1e95080usize)as*mut u8,();
32 )
33 }
34 }
35}
36
37#[cfg(feature = "app-belongdata")]
38pub trait IBelongDataMethods: IBelongData {
39 #[doc = "`get_Bid()` overload"]
40 fn get_bid(self) -> ::unity::Il2CppString {
41 unsafe {
42 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x1e95130usize)as*mut u8, ::unity::Il2CppString;
44(BelongData)__receiver)
45 }
46 }
47 #[doc = "`set_Bid(::unity::Il2CppString)` overload"]
48 fn set_bid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49 unsafe {
50 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x1e95140usize)as*mut u8,();
52(BelongData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53 }
54 }
55 #[doc = "`get_Name()` overload"]
56 fn get_name(self) -> ::unity::Il2CppString {
57 unsafe {
58 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x1e95150usize)as*mut u8, ::unity::Il2CppString;
60(BelongData)__receiver)
61 }
62 }
63 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
64 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65 unsafe {
66 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x1e95160usize)as*mut u8,();
68(BelongData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_DefeatAchieve()` overload"]
72 fn get_defeat_achieve(self) -> crate::app::achievedata::AchieveData_Kinds {
73 unsafe {
74 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x1e95170usize)as*mut u8,crate::app::achievedata::AchieveData_Kinds;
76(BelongData)__receiver)
77 }
78 }
79 #[doc = "`set_DefeatAchieve(crate::app::achievedata::AchieveData_Kinds)` overload"]
80 fn set_defeat_achieve(self, value: impl ::core::convert::Into<crate::app::achievedata::AchieveData_Kinds>) -> () {
81 unsafe {
82 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x1e95180usize)as*mut u8,();
84(BelongData)__receiver,(crate::app::achievedata::AchieveData_Kinds)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`GetDebugName()` overload"]
88 fn get_debug_name(self) -> ::unity::Il2CppString {
89 unsafe {
90 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 8usize,
101 __vt.len(),
102 <BelongData as ::unity::ClassIdentity>::NAME,
103 "GetDebugName",
104 )
105 });
106 let __inner: extern "C" fn(BelongData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
107 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108 __inner(__receiver, __mi)
109 }
110 }
111 }
112 #[doc = "`.ctor()` overload"]
113 fn ctor(self) -> () {
114 unsafe {
115 let __receiver = <BelongData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x1e951a0usize)as*mut u8,();
117(BelongData)__receiver)
118 }
119 }
120}
121
122#[cfg(feature = "app-belongdata")]
123impl<__T: IBelongData> IBelongDataMethods for __T {}
124
125#[cfg(feature = "app-belongdata")]
126impl BelongData {
127 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129 }
130
131 pub fn get_bid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn set_bid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138
139 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
141 }
142
143 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
145 }
146
147 pub fn get_defeat_achieve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
149 }
150
151 pub fn set_defeat_achieve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
153 }
154
155 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
157 }
158
159 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
161 }
162}
163
164#[cfg(feature = "app-belongdata")]
165impl BelongData {
166 #[doc = "Direct (non-virtual) call to `BelongData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
167 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
168 let __mi = Self::get_debug_name_method_info();
169 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
170 __inner(this.into(), ::core::option::Option::None)
171 }
172}
173
174#[cfg(feature = "app-belongdata")]
175impl BelongData {
176 #[doc = "`.ctor()` — no args"]
177 pub fn new() -> Self {
178 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
179 panic!(
180 "{}
181::{}
182 failed to instantiate",
183 ::core::stringify!(BelongData),
184 ::core::stringify!(new),
185 )
186 });
187 <Self as IBelongDataMethods>::ctor(this);
188 this
189 }
190}
191
192#[cfg(feature = "app-belongdata")]
193#[doc(hidden)]
194pub mod prelude {
195 pub use super::{BelongData, IBelongData, IBelongDataMethods};
196 #[cfg(feature = "app-structbase")]
197 pub use crate::app::structbase::IStructBaseMethods;
198 #[cfg(feature = "app-structdata_1")]
199 pub use crate::app::structdata_1::IStructData_1Methods;
200 #[cfg(feature = "app-structtemplate_1")]
201 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
202 #[cfg(feature = "system-object")]
203 pub use crate::system::object::IObjectMethods;
204 pub use crate::{
205 app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
206 system::object::IObject,
207 };
208}