Skip to main content

engage/generated/app/
relaydata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relaydata-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/relaydata/RelayData.md"))]
18    #[::unity::class(namespace = "App", name = "RelayData")]
19    #[parent(crate::app::structdata_1::StructData_1<crate::app::relaydata::RelayData>)]
20    pub struct RelayData {}
21}
22
23#[cfg(feature = "app-relaydata-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-relaydata")]
27impl RelayData {
28    #[doc = "`Load()` overload"]
29    pub fn load() -> () {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcd40usize)as*mut u8,();
32            )
33        }
34    }
35}
36
37#[cfg(feature = "app-relaydata")]
38pub trait IRelayDataMethods: IRelayData {
39    #[doc = "`get_Cid()` overload"]
40    fn get_cid(self) -> ::unity::Il2CppString {
41        unsafe {
42            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcdf0usize)as*mut u8, ::unity::Il2CppString;
44(RelayData)__receiver)
45        }
46    }
47    #[doc = "`set_Cid(::unity::Il2CppString)` overload"]
48    fn set_cid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
49        unsafe {
50            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce00usize)as*mut u8,();
52(RelayData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
53        }
54    }
55    #[doc = "`get_Difficulty()` overload"]
56    fn get_difficulty(self) -> crate::app::difficulty::Difficulty {
57        unsafe {
58            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce10usize)as*mut u8,crate::app::difficulty::Difficulty;
60(RelayData)__receiver)
61        }
62    }
63    #[doc = "`set_Difficulty(crate::app::difficulty::Difficulty)` overload"]
64    fn set_difficulty(self, value: impl ::core::convert::Into<crate::app::difficulty::Difficulty>) -> () {
65        unsafe {
66            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce20usize)as*mut u8,();
68(RelayData)__receiver,(crate::app::difficulty::Difficulty)::core::convert::Into::into(value))
69        }
70    }
71    #[doc = "`get_MaxTurn()` overload"]
72    fn get_max_turn(self) -> i32 {
73        unsafe {
74            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce30usize)as*mut u8,i32;
76(RelayData)__receiver)
77        }
78    }
79    #[doc = "`set_MaxTurn(i32)` overload"]
80    fn set_max_turn(self, value: impl ::core::convert::Into<i32>) -> () {
81        unsafe {
82            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce40usize)as*mut u8,();
84(RelayData)__receiver,(i32)::core::convert::Into::into(value))
85        }
86    }
87    #[doc = "`get_MaxUnit()` overload"]
88    fn get_max_unit(self) -> i32 {
89        unsafe {
90            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce50usize)as*mut u8,i32;
92(RelayData)__receiver)
93        }
94    }
95    #[doc = "`set_MaxUnit(i32)` overload"]
96    fn set_max_unit(self, value: impl ::core::convert::Into<i32>) -> () {
97        unsafe {
98            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce60usize)as*mut u8,();
100(RelayData)__receiver,(i32)::core::convert::Into::into(value))
101        }
102    }
103    #[doc = "`get_NewTurn()` overload"]
104    fn get_new_turn(self) -> i32 {
105        unsafe {
106            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce70usize)as*mut u8,i32;
108(RelayData)__receiver)
109        }
110    }
111    #[doc = "`set_NewTurn(i32)` overload"]
112    fn set_new_turn(self, value: impl ::core::convert::Into<i32>) -> () {
113        unsafe {
114            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce80usize)as*mut u8,();
116(RelayData)__receiver,(i32)::core::convert::Into::into(value))
117        }
118    }
119    #[doc = "`get_TakeOverTurn()` overload"]
120    fn get_take_over_turn(self) -> i32 {
121        unsafe {
122            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x1ffce90usize)as*mut u8,i32;
124(RelayData)__receiver)
125        }
126    }
127    #[doc = "`set_TakeOverTurn(i32)` overload"]
128    fn set_take_over_turn(self, value: impl ::core::convert::Into<i32>) -> () {
129        unsafe {
130            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcea0usize)as*mut u8,();
132(RelayData)__receiver,(i32)::core::convert::Into::into(value))
133        }
134    }
135    #[doc = "`get_TakeOverUnit()` overload"]
136    fn get_take_over_unit(self) -> i32 {
137        unsafe {
138            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x1ffceb0usize)as*mut u8,i32;
140(RelayData)__receiver)
141        }
142    }
143    #[doc = "`set_TakeOverUnit(i32)` overload"]
144    fn set_take_over_unit(self, value: impl ::core::convert::Into<i32>) -> () {
145        unsafe {
146            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcec0usize)as*mut u8,();
148(RelayData)__receiver,(i32)::core::convert::Into::into(value))
149        }
150    }
151    #[doc = "`get_CompletionAwardMain()` overload"]
152    fn get_completion_award_main(self) -> ::unity::Il2CppString {
153        unsafe {
154            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x1ffced0usize)as*mut u8, ::unity::Il2CppString;
156(RelayData)__receiver)
157        }
158    }
159    #[doc = "`set_CompletionAwardMain(::unity::Il2CppString)` overload"]
160    fn set_completion_award_main(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
161        unsafe {
162            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcee0usize)as*mut u8,();
164(RelayData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
165        }
166    }
167    #[doc = "`get_CompletionAwardSub()` overload"]
168    fn get_completion_award_sub(self) -> ::unity::Il2CppString {
169        unsafe {
170            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcef0usize)as*mut u8, ::unity::Il2CppString;
172(RelayData)__receiver)
173        }
174    }
175    #[doc = "`set_CompletionAwardSub(::unity::Il2CppString)` overload"]
176    fn set_completion_award_sub(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
177        unsafe {
178            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcf00usize)as*mut u8,();
180(RelayData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
181        }
182    }
183    #[doc = "`get_GameOverAward()` overload"]
184    fn get_game_over_award(self) -> ::unity::Il2CppString {
185        unsafe {
186            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
187            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcf10usize)as*mut u8, ::unity::Il2CppString;
188(RelayData)__receiver)
189        }
190    }
191    #[doc = "`set_GameOverAward(::unity::Il2CppString)` overload"]
192    fn set_game_over_award(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
193        unsafe {
194            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcf20usize)as*mut u8,();
196(RelayData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
197        }
198    }
199    #[doc = "`get_UnlockCid()` overload"]
200    fn get_unlock_cid(self) -> ::unity::Il2CppString {
201        unsafe {
202            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcf30usize)as*mut u8, ::unity::Il2CppString;
204(RelayData)__receiver)
205        }
206    }
207    #[doc = "`set_UnlockCid(::unity::Il2CppString)` overload"]
208    fn set_unlock_cid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
209        unsafe {
210            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcf40usize)as*mut u8,();
212(RelayData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
213        }
214    }
215    #[doc = "`GetDebugName()` overload"]
216    fn get_debug_name(self) -> ::unity::Il2CppString {
217        unsafe {
218            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            {
220                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
221                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
222                    panic!(
223                        "unity: virtual slot {}
224 out of range (vtable len {}
225) on the runtime class behind {}
226 (method `{}
227`)",
228                        8usize,
229                        __vt.len(),
230                        <RelayData as ::unity::ClassIdentity>::NAME,
231                        "GetDebugName",
232                    )
233                });
234                let __inner: extern "C" fn(RelayData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
235                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
236                __inner(__receiver, __mi)
237            }
238        }
239    }
240    #[doc = "`GetCompletionAwardsForShow(crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)` overload"]
241    fn get_completion_awards_for_show(
242        self,
243        results: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>>,
244    ) -> crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> {
245        unsafe {
246            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcf60usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData> ;
248(RelayData)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::itemdata::ItemData>)::core::convert::Into::into(results))
249        }
250    }
251    #[doc = "`CalcCompletionAwards(crate::app::random_2::Random_2)` overload"]
252    fn calc_completion_awards(
253        self,
254        random: impl ::core::convert::Into<crate::app::random_2::Random_2>,
255    ) -> crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult {
256        unsafe {
257            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x1ffcfe0usize)as*mut u8,crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult;
259(RelayData)__receiver,(crate::app::random_2::Random_2)::core::convert::Into::into(random))
260        }
261    }
262    #[doc = "`CanSelect()` overload"]
263    fn can_select(self) -> bool {
264        unsafe {
265            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x1ffd060usize)as*mut u8,bool;
267(RelayData)__receiver)
268        }
269    }
270    #[doc = "`.ctor()` overload"]
271    fn ctor(self) -> () {
272        unsafe {
273            let __receiver = <RelayData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x1ffd1d0usize)as*mut u8,();
275(RelayData)__receiver)
276        }
277    }
278}
279
280#[cfg(feature = "app-relaydata")]
281impl<__T: IRelayData> IRelayDataMethods for __T {}
282
283#[cfg(feature = "app-relaydata")]
284impl RelayData {
285    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
287    }
288
289    pub fn get_cid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
291    }
292
293    pub fn set_cid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
295    }
296
297    pub fn get_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
299    }
300
301    pub fn set_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
303    }
304
305    pub fn get_max_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
307    }
308
309    pub fn set_max_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
311    }
312
313    pub fn get_max_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
315    }
316
317    pub fn set_max_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
319    }
320
321    pub fn get_new_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
323    }
324
325    pub fn set_new_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
327    }
328
329    pub fn get_take_over_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
331    }
332
333    pub fn set_take_over_turn_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
335    }
336
337    pub fn get_take_over_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
339    }
340
341    pub fn set_take_over_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
343    }
344
345    pub fn get_completion_award_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
347    }
348
349    pub fn set_completion_award_main_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
351    }
352
353    pub fn get_completion_award_sub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
355    }
356
357    pub fn set_completion_award_sub_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
359    }
360
361    pub fn get_game_over_award_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
363    }
364
365    pub fn set_game_over_award_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
367    }
368
369    pub fn get_unlock_cid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
371    }
372
373    pub fn set_unlock_cid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
374        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
375    }
376
377    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
379    }
380
381    pub fn get_completion_awards_for_show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
383    }
384
385    pub fn calc_completion_awards_method_info() -> &'static ::unity::il2cpp::MethodInfo {
386        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
387    }
388
389    pub fn can_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
390        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
391    }
392
393    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
394        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
395    }
396}
397
398#[cfg(feature = "app-relaydata")]
399impl RelayData {
400    #[doc = "Direct (non-virtual) call to `RelayData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
401    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
402        let __mi = Self::get_debug_name_method_info();
403        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
404        __inner(this.into(), ::core::option::Option::None)
405    }
406}
407
408#[cfg(feature = "app-relaydata")]
409impl RelayData {
410    #[doc = "`.ctor()` — no args"]
411    pub fn new() -> Self {
412        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
413            panic!(
414                "{}
415::{}
416 failed to instantiate",
417                ::core::stringify!(RelayData),
418                ::core::stringify!(new),
419            )
420        });
421        <Self as IRelayDataMethods>::ctor(this);
422        this
423    }
424}
425
426#[cfg(feature = "app-relaydata")]
427#[doc(hidden)]
428pub mod prelude {
429    pub use super::{IRelayData, IRelayDataMethods, RelayData};
430    #[cfg(feature = "app-structbase")]
431    pub use crate::app::structbase::IStructBaseMethods;
432    #[cfg(feature = "app-structdata_1")]
433    pub use crate::app::structdata_1::IStructData_1Methods;
434    #[cfg(feature = "app-structtemplate_1")]
435    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
436    #[cfg(feature = "system-object")]
437    pub use crate::system::object::IObjectMethods;
438    pub use crate::{
439        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
440        system::object::IObject,
441    };
442}