engage/generated/app/
godleveldata.rs1#[cfg(feature = "app-godleveldata-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/godleveldata/GodLevelData.md"))]
18 #[::unity::class(namespace = "App", name = "GodLevelData")]
19 #[parent(crate::app::structdata_1::StructData_1<crate::app::godleveldata::GodLevelData>)]
20 pub struct GodLevelData {}
21}
22
23#[cfg(feature = "app-godleveldata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-godleveldata")]
27impl GodLevelData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2333c70usize)as*mut u8,();
32 )
33 }
34 }
35
36 #[doc = "`GetMaxLevel()` overload"]
37 pub fn get_max_level() -> i32 {
38 unsafe {
39 ::unity::il2cpp_call!((::unity::module_base()+0x2333da0usize)as*mut u8,i32;
40 )
41 }
42 }
43
44 #[doc = "`GetMaxLevelData()` overload"]
45 pub fn get_max_level_data() -> crate::app::godleveldata::GodLevelData {
46 unsafe {
47 ::unity::il2cpp_call!((::unity::module_base()+0x2333e20usize)as*mut u8,crate::app::godleveldata::GodLevelData;
48 )
49 }
50 }
51}
52
53#[cfg(feature = "app-godleveldata")]
54pub trait IGodLevelDataMethods: IGodLevelData {
55 #[doc = "`get_Level()` overload"]
56 fn get_level(self) -> ::unity::Il2CppString {
57 unsafe {
58 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x2333d20usize)as*mut u8, ::unity::Il2CppString;
60(GodLevelData)__receiver)
61 }
62 }
63 #[doc = "`set_Level(::unity::Il2CppString)` overload"]
64 fn set_level(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
65 unsafe {
66 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x2333d30usize)as*mut u8,();
68(GodLevelData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_Exp()` overload"]
72 fn get_exp(self) -> i32 {
73 unsafe {
74 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x2333d40usize)as*mut u8,i32;
76(GodLevelData)__receiver)
77 }
78 }
79 #[doc = "`set_Exp(i32)` overload"]
80 fn set_exp(self, value: impl ::core::convert::Into<i32>) -> () {
81 unsafe {
82 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x2333d50usize)as*mut u8,();
84(GodLevelData)__receiver,(i32)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`get_RelianceLevel()` overload"]
88 fn get_reliance_level(self) -> ::unity::Il2CppString {
89 unsafe {
90 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x2333d60usize)as*mut u8, ::unity::Il2CppString;
92(GodLevelData)__receiver)
93 }
94 }
95 #[doc = "`set_RelianceLevel(::unity::Il2CppString)` overload"]
96 fn set_reliance_level(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
97 unsafe {
98 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x2333d70usize)as*mut u8,();
100(GodLevelData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
101 }
102 }
103 #[doc = "`get_Cost()` overload"]
104 fn get_cost(self) -> i32 {
105 unsafe {
106 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2333d80usize)as*mut u8,i32;
108(GodLevelData)__receiver)
109 }
110 }
111 #[doc = "`set_Cost(i32)` overload"]
112 fn set_cost(self, value: impl ::core::convert::Into<i32>) -> () {
113 unsafe {
114 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x2333d90usize)as*mut u8,();
116(GodLevelData)__receiver,(i32)::core::convert::Into::into(value))
117 }
118 }
119 #[doc = "`GetDebugName()` overload"]
120 fn get_debug_name(self) -> ::unity::Il2CppString {
121 unsafe {
122 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 {
124 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
125 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
126 panic!(
127 "unity: virtual slot {}
128 out of range (vtable len {}
129) on the runtime class behind {}
130 (method `{}
131`)",
132 8usize,
133 __vt.len(),
134 <GodLevelData as ::unity::ClassIdentity>::NAME,
135 "GetDebugName",
136 )
137 });
138 let __inner: extern "C" fn(GodLevelData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
139 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140 __inner(__receiver, __mi)
141 }
142 }
143 }
144 #[doc = "`.ctor()` overload"]
145 fn ctor(self) -> () {
146 unsafe {
147 let __receiver = <GodLevelData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2334050usize)as*mut u8,();
149(GodLevelData)__receiver)
150 }
151 }
152}
153
154#[cfg(feature = "app-godleveldata")]
155impl<__T: IGodLevelData> IGodLevelDataMethods for __T {}
156
157#[cfg(feature = "app-godleveldata")]
158impl GodLevelData {
159 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
161 }
162
163 pub fn get_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
165 }
166
167 pub fn set_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
169 }
170
171 pub fn get_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
173 }
174
175 pub fn set_exp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
177 }
178
179 pub fn get_reliance_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
181 }
182
183 pub fn set_reliance_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
185 }
186
187 pub fn get_cost_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
189 }
190
191 pub fn set_cost_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
193 }
194
195 pub fn get_max_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
197 }
198
199 pub fn get_max_level_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
201 }
202
203 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
205 }
206
207 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
209 }
210}
211
212#[cfg(feature = "app-godleveldata")]
213impl GodLevelData {
214 #[doc = "Direct (non-virtual) call to `GodLevelData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
216 let __mi = Self::get_debug_name_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), ::core::option::Option::None)
219 }
220}
221
222#[cfg(feature = "app-godleveldata")]
223impl GodLevelData {
224 #[doc = "`.ctor()` — no args"]
225 pub fn new() -> Self {
226 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
227 panic!(
228 "{}
229::{}
230 failed to instantiate",
231 ::core::stringify!(GodLevelData),
232 ::core::stringify!(new),
233 )
234 });
235 <Self as IGodLevelDataMethods>::ctor(this);
236 this
237 }
238}
239
240#[cfg(feature = "app-godleveldata")]
241#[doc(hidden)]
242pub mod prelude {
243 pub use super::{GodLevelData, IGodLevelData, IGodLevelDataMethods};
244 #[cfg(feature = "app-structbase")]
245 pub use crate::app::structbase::IStructBaseMethods;
246 #[cfg(feature = "app-structdata_1")]
247 pub use crate::app::structdata_1::IStructData_1Methods;
248 #[cfg(feature = "app-structtemplate_1")]
249 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
250 #[cfg(feature = "system-object")]
251 pub use crate::system::object::IObjectMethods;
252 pub use crate::{
253 app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
254 system::object::IObject,
255 };
256}