Skip to main content

engage/generated/app/
itemrefineexchangedata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemrefineexchangedata-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/itemrefineexchangedata/ItemRefineExchangeData.md"))]
18    #[::unity::class(namespace = "App", name = "ItemRefineExchangeData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::itemrefineexchangedata::ItemRefineExchangeData>)]
20    pub struct ItemRefineExchangeData {}
21}
22
23#[cfg(feature = "app-itemrefineexchangedata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-itemrefineexchangedata")]
27impl ItemRefineExchangeData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2049d80usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-itemrefineexchangedata")]
38pub trait IItemRefineExchangeDataMethods: IItemRefineExchangeData {
39    #[doc = "`get_Operation()` overload"]
40    fn get_operation(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver =
43                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44            ::unity::il2cpp_call!((::unity::module_base()+0x2049e30usize)as*mut u8, ::unity::Il2CppString;
45(ItemRefineExchangeData)__receiver)
46        }
47    }
48    #[doc = "`set_Operation(::unity::Il2CppString)` overload"]
49    fn set_operation(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
50        unsafe {
51            let __receiver =
52                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x2049e40usize)as*mut u8,();
54(ItemRefineExchangeData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
55        }
56    }
57    #[doc = "`get_Name()` overload"]
58    fn get_name(self) -> ::unity::Il2CppString {
59        unsafe {
60            let __receiver =
61                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x2049e50usize)as*mut u8, ::unity::Il2CppString;
63(ItemRefineExchangeData)__receiver)
64        }
65    }
66    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
67    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
68        unsafe {
69            let __receiver =
70                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x2049e60usize)as*mut u8,();
72(ItemRefineExchangeData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
73        }
74    }
75    #[doc = "`get_Icon()` overload"]
76    fn get_icon(self) -> ::unity::Il2CppString {
77        unsafe {
78            let __receiver =
79                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x2049e70usize)as*mut u8, ::unity::Il2CppString;
81(ItemRefineExchangeData)__receiver)
82        }
83    }
84    #[doc = "`set_Icon(::unity::Il2CppString)` overload"]
85    fn set_icon(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
86        unsafe {
87            let __receiver =
88                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x2049e80usize)as*mut u8,();
90(ItemRefineExchangeData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
91        }
92    }
93    #[doc = "`get_ToIron()` overload"]
94    fn get_to_iron(self) -> u16 {
95        unsafe {
96            let __receiver =
97                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            ::unity::il2cpp_call!((::unity::module_base()+0x2049e90usize)as*mut u8,u16;
99(ItemRefineExchangeData)__receiver)
100        }
101    }
102    #[doc = "`set_ToIron(u16)` overload"]
103    fn set_to_iron(self, value: impl ::core::convert::Into<u16>) -> () {
104        unsafe {
105            let __receiver =
106                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x2049ea0usize)as*mut u8,();
108(ItemRefineExchangeData)__receiver,(u16)::core::convert::Into::into(value))
109        }
110    }
111    #[doc = "`get_ToSteel()` overload"]
112    fn get_to_steel(self) -> u16 {
113        unsafe {
114            let __receiver =
115                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x2049eb0usize)as*mut u8,u16;
117(ItemRefineExchangeData)__receiver)
118        }
119    }
120    #[doc = "`set_ToSteel(u16)` overload"]
121    fn set_to_steel(self, value: impl ::core::convert::Into<u16>) -> () {
122        unsafe {
123            let __receiver =
124                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x2049ec0usize)as*mut u8,();
126(ItemRefineExchangeData)__receiver,(u16)::core::convert::Into::into(value))
127        }
128    }
129    #[doc = "`get_ToSilver()` overload"]
130    fn get_to_silver(self) -> u16 {
131        unsafe {
132            let __receiver =
133                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2049ed0usize)as*mut u8,u16;
135(ItemRefineExchangeData)__receiver)
136        }
137    }
138    #[doc = "`set_ToSilver(u16)` overload"]
139    fn set_to_silver(self, value: impl ::core::convert::Into<u16>) -> () {
140        unsafe {
141            let __receiver =
142                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x2049ee0usize)as*mut u8,();
144(ItemRefineExchangeData)__receiver,(u16)::core::convert::Into::into(value))
145        }
146    }
147    #[doc = "`get_ForIron()` overload"]
148    fn get_for_iron(self) -> u16 {
149        unsafe {
150            let __receiver =
151                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152            ::unity::il2cpp_call!((::unity::module_base()+0x2049ef0usize)as*mut u8,u16;
153(ItemRefineExchangeData)__receiver)
154        }
155    }
156    #[doc = "`set_ForIron(u16)` overload"]
157    fn set_for_iron(self, value: impl ::core::convert::Into<u16>) -> () {
158        unsafe {
159            let __receiver =
160                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2049f00usize)as*mut u8,();
162(ItemRefineExchangeData)__receiver,(u16)::core::convert::Into::into(value))
163        }
164    }
165    #[doc = "`get_ForSteel()` overload"]
166    fn get_for_steel(self) -> u16 {
167        unsafe {
168            let __receiver =
169                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2049f10usize)as*mut u8,u16;
171(ItemRefineExchangeData)__receiver)
172        }
173    }
174    #[doc = "`set_ForSteel(u16)` overload"]
175    fn set_for_steel(self, value: impl ::core::convert::Into<u16>) -> () {
176        unsafe {
177            let __receiver =
178                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x2049f20usize)as*mut u8,();
180(ItemRefineExchangeData)__receiver,(u16)::core::convert::Into::into(value))
181        }
182    }
183    #[doc = "`get_ForSilver()` overload"]
184    fn get_for_silver(self) -> u16 {
185        unsafe {
186            let __receiver =
187                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            ::unity::il2cpp_call!((::unity::module_base()+0x2049f30usize)as*mut u8,u16;
189(ItemRefineExchangeData)__receiver)
190        }
191    }
192    #[doc = "`set_ForSilver(u16)` overload"]
193    fn set_for_silver(self, value: impl ::core::convert::Into<u16>) -> () {
194        unsafe {
195            let __receiver =
196                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x2049f40usize)as*mut u8,();
198(ItemRefineExchangeData)__receiver,(u16)::core::convert::Into::into(value))
199        }
200    }
201    #[doc = "`GetDebugName()` overload"]
202    fn get_debug_name(self) -> ::unity::Il2CppString {
203        unsafe {
204            let __receiver =
205                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            {
207                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
208                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
209                    panic!(
210                        "unity: virtual slot {}
211 out of range (vtable len {}
212) on the runtime class behind {}
213 (method `{}
214`)",
215                        8usize,
216                        __vt.len(),
217                        <ItemRefineExchangeData as ::unity::ClassIdentity>::NAME,
218                        "GetDebugName",
219                    )
220                });
221                let __inner: extern "C" fn(ItemRefineExchangeData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
222                    ::core::mem::transmute(__vi.method_ptr);
223                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
224                __inner(__receiver, __mi)
225            }
226        }
227    }
228    #[doc = "`GetExchangeCost(::unity::Il2CppString, *muti32, *muti32)` overload"]
229    fn get_exchange_cost(self, material_id: impl ::core::convert::Into<::unity::Il2CppString>) -> (i32, i32) {
230        unsafe {
231            let __receiver =
232                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
234            let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
235            ::unity::il2cpp_call!((::unity::module_base()+0x2049f60usize)as*mut u8,();
236(ItemRefineExchangeData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(material_id),(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr());
237            (__out_0.assume_init(), __out_1.assume_init())
238        }
239    }
240    #[doc = "`GetExchangeCostTo(::unity::Il2CppString)` overload"]
241    fn get_exchange_cost_to(self, material_id: impl ::core::convert::Into<::unity::Il2CppString>) -> u16 {
242        unsafe {
243            let __receiver =
244                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x2049fd0usize)as*mut u8,u16;
246(ItemRefineExchangeData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(material_id))
247        }
248    }
249    #[doc = "`GetExchangeCostFor(::unity::Il2CppString)` overload"]
250    fn get_exchange_cost_for(self, material_id: impl ::core::convert::Into<::unity::Il2CppString>) -> u16 {
251        unsafe {
252            let __receiver =
253                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            ::unity::il2cpp_call!((::unity::module_base()+0x204a0e0usize)as*mut u8,u16;
255(ItemRefineExchangeData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(material_id))
256        }
257    }
258    #[doc = "`.ctor()` overload"]
259    fn ctor(self) -> () {
260        unsafe {
261            let __receiver =
262                <ItemRefineExchangeData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263            ::unity::il2cpp_call!((::unity::module_base()+0x204a1f0usize)as*mut u8,();
264(ItemRefineExchangeData)__receiver)
265        }
266    }
267}
268
269#[cfg(feature = "app-itemrefineexchangedata")]
270impl<__T: IItemRefineExchangeData> IItemRefineExchangeDataMethods for __T {}
271
272#[cfg(feature = "app-itemrefineexchangedata")]
273impl ItemRefineExchangeData {
274    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
276    }
277
278    pub fn get_operation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
280    }
281
282    pub fn set_operation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
284    }
285
286    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
288    }
289
290    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
292    }
293
294    pub fn get_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
296    }
297
298    pub fn set_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
300    }
301
302    pub fn get_to_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
304    }
305
306    pub fn set_to_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
308    }
309
310    pub fn get_to_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
312    }
313
314    pub fn set_to_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
316    }
317
318    pub fn get_to_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
320    }
321
322    pub fn set_to_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
324    }
325
326    pub fn get_for_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
328    }
329
330    pub fn set_for_iron_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
332    }
333
334    pub fn get_for_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
336    }
337
338    pub fn set_for_steel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
340    }
341
342    pub fn get_for_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
344    }
345
346    pub fn set_for_silver_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
348    }
349
350    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
352    }
353
354    pub fn get_exchange_cost_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
356    }
357
358    pub fn get_exchange_cost_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
360    }
361
362    pub fn get_exchange_cost_for_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
364    }
365
366    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
368    }
369}
370
371#[cfg(feature = "app-itemrefineexchangedata")]
372impl ItemRefineExchangeData {
373    #[doc = "Direct (non-virtual) call to `ItemRefineExchangeData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
375        let __mi = Self::get_debug_name_method_info();
376        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
377        __inner(this.into(), ::core::option::Option::None)
378    }
379}
380
381#[cfg(feature = "app-itemrefineexchangedata")]
382impl ItemRefineExchangeData {
383    #[doc = "`.ctor()` — no args"]
384    pub fn new() -> Self {
385        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
386            panic!(
387                "{}
388::{}
389 failed to instantiate",
390                ::core::stringify!(ItemRefineExchangeData),
391                ::core::stringify!(new),
392            )
393        });
394        <Self as IItemRefineExchangeDataMethods>::ctor(this);
395        this
396    }
397}
398
399#[cfg(feature = "app-itemrefineexchangedata")]
400#[doc(hidden)]
401pub mod prelude {
402    pub use super::{IItemRefineExchangeData, IItemRefineExchangeDataMethods, ItemRefineExchangeData};
403    #[cfg(feature = "app-structbase")]
404    pub use crate::app::structbase::IStructBaseMethods;
405    #[cfg(feature = "app-structdata_1")]
406    pub use crate::app::structdata_1::IStructData_1Methods;
407    #[cfg(feature = "app-structtemplate_1")]
408    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
409    #[cfg(feature = "system-object")]
410    pub use crate::system::object::IObjectMethods;
411    pub use crate::{
412        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
413        system::object::IObject,
414    };
415}