Skip to main content

engage/generated/app/
rewarddata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-rewarddata-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/rewarddata/RewardData.md"))]
18    #[::unity::class(namespace = "App", name = "RewardData")]
19    #[parent(crate::app::structdataarray_1::StructDataArray_1<crate::app::rewarddata::RewardData>)]
20    pub struct RewardData {}
21}
22
23#[cfg(feature = "app-rewarddata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-rewarddata")]
27impl RewardData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x20189f0usize)as*mut u8,();
32            )
33        }
34    }
35
36    #[doc = "`IsCondition(::unity::Il2CppString)` overload"]
37    pub fn is_condition(condition: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x1ffb940usize)as*mut u8,bool;
40(::unity::Il2CppString)::core::convert::Into::into(condition))
41        }
42    }
43
44    #[doc = "`GetExpFormChallenge(i32, i32)` overload"]
45    pub fn get_exp_form_challenge(sortie_count: impl ::core::convert::Into<i32>, difficulty_diff: impl ::core::convert::Into<i32>) -> i32 {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2018c80usize)as*mut u8,i32;
48(i32)::core::convert::Into::into(sortie_count),(i32)::core::convert::Into::into(difficulty_diff))
49        }
50    }
51
52    #[doc = "`CalcRewardsImpl(crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::rewarddata::RewardData>, crate::app::random_2::Random_2, i32, bool)` overload"]
53    pub fn calc_rewards_impl(
54        array: impl ::core::convert::Into<crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::rewarddata::RewardData>>,
55        random: impl ::core::convert::Into<crate::app::random_2::Random_2>,
56        level: impl ::core::convert::Into<i32>,
57        is_dump: impl ::core::convert::Into<bool>,
58    ) -> crate::system::collections::generic::list_1::List_1<crate::app::rewarddata::RewardData> {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2018cf0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::rewarddata::RewardData> ;
61(crate::app::structdataarraylist_1::StructDataArrayList_1<crate::app::rewarddata::RewardData>)::core::convert::Into::into(array),(crate::app::random_2::Random_2)::core::convert::Into::into(random),(i32)::core::convert::Into::into(level),(bool)::core::convert::Into::into(is_dump))
62        }
63    }
64
65    #[doc = "`CalcRewards(::unity::Il2CppString, crate::app::random_2::Random_2, i32, bool)` overload"]
66    pub fn calc_rewards(
67        name: impl ::core::convert::Into<::unity::Il2CppString>,
68        random: impl ::core::convert::Into<crate::app::random_2::Random_2>,
69        level: impl ::core::convert::Into<i32>,
70        is_dump: impl ::core::convert::Into<bool>,
71    ) -> crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x2019160usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> ;
74(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::random_2::Random_2)::core::convert::Into::into(random),(i32)::core::convert::Into::into(level),(bool)::core::convert::Into::into(is_dump))
75        }
76    }
77
78    #[doc = "`CalcRewards(::unity::Il2CppString)` overload"]
79    pub fn calc_rewards_2(
80        name: impl ::core::convert::Into<::unity::Il2CppString>,
81    ) -> crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x20193e0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> ;
84(::unity::Il2CppString)::core::convert::Into::into(name))
85        }
86    }
87
88    #[doc = "`CalcGameClearRewards(crate::app::difficulty::Difficulty)` overload"]
89    pub fn calc_game_clear_rewards(
90        difficulty: impl ::core::convert::Into<crate::app::difficulty::Difficulty>,
91    ) -> crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> {
92        unsafe {
93            ::unity::il2cpp_call!((::unity::module_base()+0x2019640usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> ;
94(crate::app::difficulty::Difficulty)::core::convert::Into::into(difficulty))
95        }
96    }
97
98    #[doc = "`CalcEvilClearRewards()` overload"]
99    pub fn calc_evil_clear_rewards() -> crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> {
100        unsafe {
101            ::unity::il2cpp_call!((::unity::module_base()+0x20196d0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> ;
102            )
103        }
104    }
105}
106
107#[cfg(feature = "app-rewarddata")]
108pub trait IRewardDataMethods: IRewardData {
109    #[doc = "`get_Iid()` overload"]
110    fn get_iid(self) -> ::unity::Il2CppString {
111        unsafe {
112            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            ::unity::il2cpp_call!((::unity::module_base()+0x2018aa0usize)as*mut u8, ::unity::Il2CppString;
114(RewardData)__receiver)
115        }
116    }
117    #[doc = "`set_Iid(::unity::Il2CppString)` overload"]
118    fn set_iid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
119        unsafe {
120            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            ::unity::il2cpp_call!((::unity::module_base()+0x2018ab0usize)as*mut u8,();
122(RewardData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
123        }
124    }
125    #[doc = "`get_Ratio()` overload"]
126    fn get_ratio(self) -> f32 {
127        unsafe {
128            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x2018ac0usize)as*mut u8,f32;
130(RewardData)__receiver)
131        }
132    }
133    #[doc = "`set_Ratio(f32)` overload"]
134    fn set_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
135        unsafe {
136            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x2018ad0usize)as*mut u8,();
138(RewardData)__receiver,(f32)::core::convert::Into::into(value))
139        }
140    }
141    #[doc = "`get_Factor()` overload"]
142    fn get_factor(self) -> f32 {
143        unsafe {
144            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x2018ae0usize)as*mut u8,f32;
146(RewardData)__receiver)
147        }
148    }
149    #[doc = "`set_Factor(f32)` overload"]
150    fn set_factor(self, value: impl ::core::convert::Into<f32>) -> () {
151        unsafe {
152            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x2018af0usize)as*mut u8,();
154(RewardData)__receiver,(f32)::core::convert::Into::into(value))
155        }
156    }
157    #[doc = "`get_Min()` overload"]
158    fn get_min(self) -> f32 {
159        unsafe {
160            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2018b00usize)as*mut u8,f32;
162(RewardData)__receiver)
163        }
164    }
165    #[doc = "`set_Min(f32)` overload"]
166    fn set_min(self, value: impl ::core::convert::Into<f32>) -> () {
167        unsafe {
168            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x2018b10usize)as*mut u8,();
170(RewardData)__receiver,(f32)::core::convert::Into::into(value))
171        }
172    }
173    #[doc = "`get_Max()` overload"]
174    fn get_max(self) -> f32 {
175        unsafe {
176            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x2018b20usize)as*mut u8,f32;
178(RewardData)__receiver)
179        }
180    }
181    #[doc = "`set_Max(f32)` overload"]
182    fn set_max(self, value: impl ::core::convert::Into<f32>) -> () {
183        unsafe {
184            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x2018b30usize)as*mut u8,();
186(RewardData)__receiver,(f32)::core::convert::Into::into(value))
187        }
188    }
189    #[doc = "`get_IsShow()` overload"]
190    fn get_is_show(self) -> bool {
191        unsafe {
192            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x2018b40usize)as*mut u8,bool;
194(RewardData)__receiver)
195        }
196    }
197    #[doc = "`set_IsShow(bool)` overload"]
198    fn set_is_show(self, value: impl ::core::convert::Into<bool>) -> () {
199        unsafe {
200            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            ::unity::il2cpp_call!((::unity::module_base()+0x2018b50usize)as*mut u8,();
202(RewardData)__receiver,(bool)::core::convert::Into::into(value))
203        }
204    }
205    #[doc = "`get_Condition()` overload"]
206    fn get_condition(self) -> ::unity::Il2CppString {
207        unsafe {
208            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x2018b60usize)as*mut u8, ::unity::Il2CppString;
210(RewardData)__receiver)
211        }
212    }
213    #[doc = "`set_Condition(::unity::Il2CppString)` overload"]
214    fn set_condition(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
215        unsafe {
216            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            ::unity::il2cpp_call!((::unity::module_base()+0x2018b70usize)as*mut u8,();
218(RewardData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
219        }
220    }
221    #[doc = "`GetItem()` overload"]
222    fn get_item(self) -> crate::app::itemdata::ItemData {
223        unsafe {
224            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            ::unity::il2cpp_call!((::unity::module_base()+0x2018b80usize)as*mut u8,crate::app::itemdata::ItemData;
226(RewardData)__receiver)
227        }
228    }
229    #[doc = "`GetDebugName()` overload"]
230    fn get_debug_name(self) -> ::unity::Il2CppString {
231        unsafe {
232            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            {
234                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
235                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
236                    panic!(
237                        "unity: virtual slot {}
238 out of range (vtable len {}
239) on the runtime class behind {}
240 (method `{}
241`)",
242                        8usize,
243                        __vt.len(),
244                        <RewardData as ::unity::ClassIdentity>::NAME,
245                        "GetDebugName",
246                    )
247                });
248                let __inner: extern "C" fn(RewardData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
249                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
250                __inner(__receiver, __mi)
251            }
252        }
253    }
254    #[doc = "`GetPercent(i32)` overload"]
255    fn get_percent(self, level: impl ::core::convert::Into<i32>) -> f32 {
256        unsafe {
257            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x2018c20usize)as*mut u8,f32;
259(RewardData)__receiver,(i32)::core::convert::Into::into(level))
260        }
261    }
262    #[doc = "`.ctor()` overload"]
263    fn ctor(self) -> () {
264        unsafe {
265            let __receiver = <RewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x2019720usize)as*mut u8,();
267(RewardData)__receiver)
268        }
269    }
270}
271
272#[cfg(feature = "app-rewarddata")]
273impl<__T: IRewardData> IRewardDataMethods for __T {}
274
275#[cfg(feature = "app-rewarddata")]
276impl RewardData {
277    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
279    }
280
281    pub fn get_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
283    }
284
285    pub fn set_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
287    }
288
289    pub fn get_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
291    }
292
293    pub fn set_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
295    }
296
297    pub fn get_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
299    }
300
301    pub fn set_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
303    }
304
305    pub fn get_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
307    }
308
309    pub fn set_min_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
311    }
312
313    pub fn get_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
315    }
316
317    pub fn set_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
319    }
320
321    pub fn get_is_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
323    }
324
325    pub fn set_is_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
327    }
328
329    pub fn get_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
331    }
332
333    pub fn set_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
335    }
336
337    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
339    }
340
341    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
343    }
344
345    pub fn is_condition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
347    }
348
349    pub fn get_percent_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
351    }
352
353    pub fn get_exp_form_challenge_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
355    }
356
357    pub fn calc_rewards_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
359    }
360
361    pub fn calc_rewards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
363    }
364
365    pub fn calc_rewards_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
367    }
368
369    pub fn calc_game_clear_rewards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
371    }
372
373    pub fn calc_evil_clear_rewards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
375    }
376
377    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
379    }
380}
381
382#[cfg(feature = "app-rewarddata")]
383impl RewardData {
384    #[doc = "Direct (non-virtual) call to `RewardData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
385    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
386        let __mi = Self::get_debug_name_method_info();
387        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
388        __inner(this.into(), ::core::option::Option::None)
389    }
390}
391
392#[cfg(feature = "app-rewarddata")]
393impl RewardData {
394    #[doc = "`.ctor()` — no args"]
395    pub fn new() -> Self {
396        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
397            panic!(
398                "{}
399::{}
400 failed to instantiate",
401                ::core::stringify!(RewardData),
402                ::core::stringify!(new),
403            )
404        });
405        <Self as IRewardDataMethods>::ctor(this);
406        this
407    }
408}
409
410#[cfg(feature = "app-rewarddata")]
411#[doc(hidden)]
412pub mod prelude {
413    pub use super::{IRewardData, IRewardDataMethods, RewardData};
414    #[cfg(feature = "app-structbase")]
415    pub use crate::app::structbase::IStructBaseMethods;
416    #[cfg(feature = "app-structdataarray_1")]
417    pub use crate::app::structdataarray_1::IStructDataArray_1Methods;
418    #[cfg(feature = "app-structtemplate_1")]
419    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
420    #[cfg(feature = "system-object")]
421    pub use crate::system::object::IObjectMethods;
422    pub use crate::{
423        app::{structbase::IStructBase, structdataarray_1::IStructDataArray_1, structtemplate_1::IStructTemplate_1},
424        system::object::IObject,
425    };
426}