engage/generated/app/
itemrefinedata.rs1#[cfg(feature = "app-itemrefinedata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 structbase::{IStructBase, StructBase},
11 structdataarray_1::{IStructDataArray_1, StructDataArray_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/itemrefinedata/ItemRefineData.md"))]
18 #[::unity::class(namespace = "App", name = "ItemRefineData")]
19 #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::itemrefinedata::ItemRefineData>)]
20 pub struct ItemRefineData {}
21}
22
23#[cfg(feature = "app-itemrefinedata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-itemrefinedata")]
27impl ItemRefineData {
28 #[doc = "`Load()` overload"]
29 pub fn load() -> () {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x2049840usize)as*mut u8,();
32 )
33 }
34 }
35
36 #[doc = "`TryGetFromIid(::unity::Il2CppString)` overload"]
37 pub fn try_get_from_iid(
38 iid: impl ::core::convert::Into<::unity::Il2CppString>,
39 ) -> crate::system::collections::generic::list_1::List_1<crate::app::itemrefinedata::ItemRefineData> {
40 unsafe {
41 ::unity::il2cpp_call!((::unity::module_base()+0x20498f0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemrefinedata::ItemRefineData> ;
42(::unity::Il2CppString)::core::convert::Into::into(iid))
43 }
44 }
45
46 #[doc = "`TryGetFromItem(crate::app::itemdata::ItemData)` overload"]
47 pub fn try_get_from_item(
48 item: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
49 ) -> crate::system::collections::generic::list_1::List_1<crate::app::itemrefinedata::ItemRefineData> {
50 unsafe {
51 ::unity::il2cpp_call!((::unity::module_base()+0x2049a60usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemrefinedata::ItemRefineData> ;
52(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
53 }
54 }
55
56 #[doc = "`Iid2Rid(::unity::Il2CppString)` overload"]
57 pub fn iid2_rid(iid: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
58 unsafe {
59 ::unity::il2cpp_call!((::unity::module_base()+0x20499e0usize)as*mut u8, ::unity::Il2CppString;
60(::unity::Il2CppString)::core::convert::Into::into(iid))
61 }
62 }
63}
64
65#[cfg(feature = "app-itemrefinedata")]
66pub trait IItemRefineDataMethods: IItemRefineData {
67 #[doc = "`get_Iron()` overload"]
68 fn get_iron(self) -> u16 {
69 unsafe {
70 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x2049b70usize)as*mut u8,u16;
72(ItemRefineData)__receiver)
73 }
74 }
75 #[doc = "`set_Iron(u16)` overload"]
76 fn set_iron(self, value: impl ::core::convert::Into<u16>) -> () {
77 unsafe {
78 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2049b80usize)as*mut u8,();
80(ItemRefineData)__receiver,(u16)::core::convert::Into::into(value))
81 }
82 }
83 #[doc = "`get_Steel()` overload"]
84 fn get_steel(self) -> u16 {
85 unsafe {
86 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x2049b90usize)as*mut u8,u16;
88(ItemRefineData)__receiver)
89 }
90 }
91 #[doc = "`set_Steel(u16)` overload"]
92 fn set_steel(self, value: impl ::core::convert::Into<u16>) -> () {
93 unsafe {
94 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x2049ba0usize)as*mut u8,();
96(ItemRefineData)__receiver,(u16)::core::convert::Into::into(value))
97 }
98 }
99 #[doc = "`get_Silver()` overload"]
100 fn get_silver(self) -> u16 {
101 unsafe {
102 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x2049bb0usize)as*mut u8,u16;
104(ItemRefineData)__receiver)
105 }
106 }
107 #[doc = "`set_Silver(u16)` overload"]
108 fn set_silver(self, value: impl ::core::convert::Into<u16>) -> () {
109 unsafe {
110 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x2049bc0usize)as*mut u8,();
112(ItemRefineData)__receiver,(u16)::core::convert::Into::into(value))
113 }
114 }
115 #[doc = "`get_Price()` overload"]
116 fn get_price(self) -> u16 {
117 unsafe {
118 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x2049bd0usize)as*mut u8,u16;
120(ItemRefineData)__receiver)
121 }
122 }
123 #[doc = "`set_Price(u16)` overload"]
124 fn set_price(self, value: impl ::core::convert::Into<u16>) -> () {
125 unsafe {
126 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x2049be0usize)as*mut u8,();
128(ItemRefineData)__receiver,(u16)::core::convert::Into::into(value))
129 }
130 }
131 #[doc = "`get_Power()` overload"]
132 fn get_power(self) -> i8 {
133 unsafe {
134 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2049bf0usize)as*mut u8,i8;
136(ItemRefineData)__receiver)
137 }
138 }
139 #[doc = "`set_Power(i8)` overload"]
140 fn set_power(self, value: impl ::core::convert::Into<i8>) -> () {
141 unsafe {
142 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2049c00usize)as*mut u8,();
144(ItemRefineData)__receiver,(i8)::core::convert::Into::into(value))
145 }
146 }
147 #[doc = "`get_Weight()` overload"]
148 fn get_weight(self) -> i8 {
149 unsafe {
150 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2049c10usize)as*mut u8,i8;
152(ItemRefineData)__receiver)
153 }
154 }
155 #[doc = "`set_Weight(i8)` overload"]
156 fn set_weight(self, value: impl ::core::convert::Into<i8>) -> () {
157 unsafe {
158 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2049c20usize)as*mut u8,();
160(ItemRefineData)__receiver,(i8)::core::convert::Into::into(value))
161 }
162 }
163 #[doc = "`get_Hit()` overload"]
164 fn get_hit(self) -> i8 {
165 unsafe {
166 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2049c30usize)as*mut u8,i8;
168(ItemRefineData)__receiver)
169 }
170 }
171 #[doc = "`set_Hit(i8)` overload"]
172 fn set_hit(self, value: impl ::core::convert::Into<i8>) -> () {
173 unsafe {
174 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x2049c40usize)as*mut u8,();
176(ItemRefineData)__receiver,(i8)::core::convert::Into::into(value))
177 }
178 }
179 #[doc = "`get_Critical()` overload"]
180 fn get_critical(self) -> i8 {
181 unsafe {
182 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x2049c50usize)as*mut u8,i8;
184(ItemRefineData)__receiver)
185 }
186 }
187 #[doc = "`set_Critical(i8)` overload"]
188 fn set_critical(self, value: impl ::core::convert::Into<i8>) -> () {
189 unsafe {
190 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x2049c60usize)as*mut u8,();
192(ItemRefineData)__receiver,(i8)::core::convert::Into::into(value))
193 }
194 }
195 #[doc = "`GetDebugName()` overload"]
196 fn get_debug_name(self) -> ::unity::Il2CppString {
197 unsafe {
198 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 {
200 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
201 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
202 panic!(
203 "unity: virtual slot {}
204 out of range (vtable len {}
205) on the runtime class behind {}
206 (method `{}
207`)",
208 8usize,
209 __vt.len(),
210 <ItemRefineData as ::unity::ClassIdentity>::NAME,
211 "GetDebugName",
212 )
213 });
214 let __inner: extern "C" fn(ItemRefineData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
215 ::core::mem::transmute(__vi.method_ptr);
216 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
217 __inner(__receiver, __mi)
218 }
219 }
220 }
221 #[doc = "`.ctor()` overload"]
222 fn ctor(self) -> () {
223 unsafe {
224 let __receiver = <ItemRefineData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x2049d00usize)as*mut u8,();
226(ItemRefineData)__receiver)
227 }
228 }
229}
230
231#[cfg(feature = "app-itemrefinedata")]
232impl<__T: IItemRefineData> IItemRefineDataMethods for __T {}
233
234#[cfg(feature = "app-itemrefinedata")]
235impl ItemRefineData {
236 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
238 }
239
240 pub fn try_get_from_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
242 }
243
244 pub fn try_get_from_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
246 }
247
248 pub fn iid2_rid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
250 }
251
252 pub fn get_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
254 }
255
256 pub fn set_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
258 }
259
260 pub fn get_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
262 }
263
264 pub fn set_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
266 }
267
268 pub fn get_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
270 }
271
272 pub fn set_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
274 }
275
276 pub fn get_price_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
278 }
279
280 pub fn set_price_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
282 }
283
284 pub fn get_power_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
286 }
287
288 pub fn set_power_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
290 }
291
292 pub fn get_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
294 }
295
296 pub fn set_weight_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
298 }
299
300 pub fn get_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
302 }
303
304 pub fn set_hit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
306 }
307
308 pub fn get_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
310 }
311
312 pub fn set_critical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
314 }
315
316 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
318 }
319
320 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
322 }
323}
324
325#[cfg(feature = "app-itemrefinedata")]
326impl ItemRefineData {
327 #[doc = "Direct (non-virtual) call to `ItemRefineData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
329 let __mi = Self::get_debug_name_method_info();
330 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
331 __inner(this.into(), ::core::option::Option::None)
332 }
333}
334
335#[cfg(feature = "app-itemrefinedata")]
336impl ItemRefineData {
337 #[doc = "`.ctor()` — no args"]
338 pub fn new() -> Self {
339 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
340 panic!(
341 "{}
342::{}
343 failed to instantiate",
344 ::core::stringify!(ItemRefineData),
345 ::core::stringify!(new),
346 )
347 });
348 <Self as IItemRefineDataMethods>::ctor(this);
349 this
350 }
351}
352
353#[cfg(feature = "app-itemrefinedata")]
354#[doc(hidden)]
355pub mod prelude {
356 pub use super::{IItemRefineData, IItemRefineDataMethods, ItemRefineData};
357 #[cfg(feature = "app-structbase")]
358 pub use crate::app::structbase::IStructBaseMethods;
359 #[cfg(feature = "app-structdataarray_1")]
360 pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
361 #[cfg(feature = "app-structtemplate_1")]
362 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
363 #[cfg(feature = "system-object")]
364 pub use crate::system::object::IObjectMethods;
365 pub use crate::{
366 app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
367 system::object::IObject,
368 };
369}