Skip to main content

engage/generated/app/
versusrewarddata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-versusrewarddata-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/versusrewarddata/VersusRewardData.md"))]
18    #[::unity::class(namespace = "App", name = "VersusRewardData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::versusrewarddata::VersusRewardData>)]
20    pub struct VersusRewardData {}
21}
22
23#[cfg(feature = "app-versusrewarddata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-versusrewarddata")]
27impl VersusRewardData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x26b3500usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-versusrewarddata")]
38pub trait IVersusRewardDataMethods: IVersusRewardData {
39    #[doc = "`get_TypeID()` overload"]
40    fn get_type_id(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x26b35b0usize)as*mut u8, ::unity::Il2CppString;
44(VersusRewardData)__receiver)
45        }
46    }
47    #[doc = "`set_TypeID(::unity::Il2CppString)` overload"]
48    fn set_type_id(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49        unsafe {
50            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x26b35c0usize)as*mut u8,();
52(VersusRewardData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_Iids()` overload"]
56    fn get_iids(self) -> ::unity::Array<::unity::Il2CppString> {
57        unsafe {
58            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x26b35d0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
60(VersusRewardData)__receiver)
61        }
62    }
63    #[doc = "`set_Iids(::unity::Array<::unity::Il2CppString>)` overload"]
64    fn set_iids(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
65        unsafe {
66            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x26b35e0usize)as*mut u8,();
68(VersusRewardData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`get_Nums()` overload"]
72    fn get_nums(self) -> ::unity::Array<i32> {
73        unsafe {
74            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x26b35f0usize)as*mut u8, ::unity::Array<i32> ;
76(VersusRewardData)__receiver)
77        }
78    }
79    #[doc = "`set_Nums(::unity::Array<i32>)` overload"]
80    fn set_nums(self, value: impl ::core::convert::Into<::unity::Array<i32>>) -> () {
81        unsafe {
82            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x26b3600usize)as*mut u8,();
84(VersusRewardData)__receiver,(::unity::Array<i32>)::core::convert::Into::into(value))
85        }
86    }
87    #[doc = "`get_Conditions()` overload"]
88    fn get_conditions(self) -> ::unity::Array<::unity::Il2CppString> {
89        unsafe {
90            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x26b3610usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
92(VersusRewardData)__receiver)
93        }
94    }
95    #[doc = "`set_Conditions(::unity::Array<::unity::Il2CppString>)` overload"]
96    fn set_conditions(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
97        unsafe {
98            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x26b3620usize)as*mut u8,();
100(VersusRewardData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
101        }
102    }
103    #[doc = "`OnCompleted()` overload"]
104    fn on_completed(self) -> () {
105        unsafe {
106            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            {
108                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
110                    panic!(
111                        "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116                        5usize,
117                        __vt.len(),
118                        <VersusRewardData as ::unity::ClassIdentity>::NAME,
119                        "OnCompleted",
120                    )
121                });
122                let __inner: extern "C" fn(VersusRewardData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
123                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124                __inner(__receiver, __mi)
125            }
126        }
127    }
128    #[doc = "`GetDebugName()` overload"]
129    fn get_debug_name(self) -> ::unity::Il2CppString {
130        unsafe {
131            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            {
133                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
135                    panic!(
136                        "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141                        8usize,
142                        __vt.len(),
143                        <VersusRewardData as ::unity::ClassIdentity>::NAME,
144                        "GetDebugName",
145                    )
146                });
147                let __inner: extern "C" fn(VersusRewardData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
148                    ::core::mem::transmute(__vi.method_ptr);
149                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150                __inner(__receiver, __mi)
151            }
152        }
153    }
154    #[doc = "`TryGetRandomItem(*mut::unity::Il2CppString, *muti32)` overload"]
155    fn try_get_random_item(self) -> (bool, ::unity::Il2CppString, i32) {
156        unsafe {
157            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            let mut __out_0 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
159            let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
160            let __ret = {
161                ::unity::il2cpp_call!((::unity::module_base()+0x26b3650usize)as*mut u8,bool;
162(VersusRewardData)__receiver,(*mut::unity::Il2CppString)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr())
163            };
164            (__ret, __out_0.assume_init(), __out_1.assume_init())
165        }
166    }
167    #[doc = "`.ctor()` overload"]
168    fn ctor(self) -> () {
169        unsafe {
170            let __receiver = <VersusRewardData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x26b3820usize)as*mut u8,();
172(VersusRewardData)__receiver)
173        }
174    }
175}
176
177#[cfg(feature = "app-versusrewarddata")]
178impl<__T: IVersusRewardData> IVersusRewardDataMethods for __T {}
179
180#[cfg(feature = "app-versusrewarddata")]
181impl VersusRewardData {
182    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
184    }
185
186    pub fn get_type_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
188    }
189
190    pub fn set_type_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
192    }
193
194    pub fn get_iids_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
196    }
197
198    pub fn set_iids_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
200    }
201
202    pub fn get_nums_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
204    }
205
206    pub fn set_nums_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
208    }
209
210    pub fn get_conditions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
212    }
213
214    pub fn set_conditions_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
216    }
217
218    pub fn on_completed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
220    }
221
222    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
224    }
225
226    pub fn try_get_random_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
228    }
229
230    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
232    }
233}
234
235#[cfg(feature = "app-versusrewarddata")]
236impl VersusRewardData {
237    #[doc = "Direct (non-virtual) call to `VersusRewardData`'s own `OnCompleted`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
238    pub unsafe fn on_completed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
239        let __mi = Self::on_completed_method_info();
240        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
241        __inner(this.into(), ::core::option::Option::None)
242    }
243
244    #[doc = "Direct (non-virtual) call to `VersusRewardData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
245    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
246        let __mi = Self::get_debug_name_method_info();
247        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
248        __inner(this.into(), ::core::option::Option::None)
249    }
250}
251
252#[cfg(feature = "app-versusrewarddata")]
253impl VersusRewardData {
254    #[doc = "`.ctor()` — no args"]
255    pub fn new() -> Self {
256        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
257            panic!(
258                "{}
259::{}
260 failed to instantiate",
261                ::core::stringify!(VersusRewardData),
262                ::core::stringify!(new),
263            )
264        });
265        <Self as IVersusRewardDataMethods>::ctor(this);
266        this
267    }
268}
269
270#[cfg(feature = "app-versusrewarddata")]
271#[doc(hidden)]
272pub mod prelude {
273    pub use super::{IVersusRewardData, IVersusRewardDataMethods, VersusRewardData};
274    #[cfg(feature = "app-structbase")]
275    pub use crate::app::structbase::IStructBaseMethods;
276    #[cfg(feature = "app-structdata_1")]
277    pub use crate::app::structdata_1::IStructData_1Methods;
278    #[cfg(feature = "app-structtemplate_1")]
279    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
280    #[cfg(feature = "system-object")]
281    pub use crate::system::object::IObjectMethods;
282    pub use crate::{
283        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
284        system::object::IObject,
285    };
286}