Skip to main content

engage/generated/app/
relayawardsequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-relayawardsequence-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            procinst::{IProcInst, ProcInst},
11            singletonprocinst_1::{ISingletonProcInst_1, SingletonProcInst_1},
12        },
13        system::{
14            object::{IObject, Object},
15            r#enum::{Enum, IEnum},
16            valuetype::{IValueType, ValueType},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayawardsequence/RelayAwardSequence.md"))]
21    #[::unity::class(namespace = "App", name = "RelayAwardSequence")]
22    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::relayawardsequence::RelayAwardSequence>)]
23    pub struct RelayAwardSequence {
24        #[offset(120)]
25        #[rename(name = "m_EnteredBattle")]
26        pub m_entered_battle: crate::app::relayuserdata::RelayUserData_EnteredBattle,
27        #[offset(128)]
28        #[rename(name = "m_Raids")]
29        pub m_raids: ::unity::Array<::unity::Il2CppString>,
30        #[offset(136)]
31        #[rename(name = "m_GainItem")]
32        pub m_gain_item: crate::app::itemdata::ItemData,
33        #[offset(144)]
34        #[rename(name = "m_IsAwarded")]
35        pub m_is_awarded: bool,
36        #[offset(148)]
37        #[rename(name = "m_PrevMasterProofCount")]
38        pub m_prev_master_proof_count: i32,
39        #[offset(152)]
40        #[rename(name = "m_PrevChangeProofCount")]
41        pub m_prev_change_proof_count: i32,
42    }
43
44    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/relayawardsequence/RelayAwardSequence_Label.md"))]
45    #[repr(C)]
46    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
47    pub struct RelayAwardSequence_Label {
48        pub value: i32,
49    }
50    impl ::unity::ClassIdentity for RelayAwardSequence_Label {
51        const NAME: &'static str = "RelayAwardSequence.Label";
52        const NAMESPACE: &'static str = "App";
53
54        fn class() -> ::unity::Class {
55            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
56            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
57        }
58    }
59    impl ::unity::IlType for RelayAwardSequence_Label {
60        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
61            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
62        }
63    }
64    impl RelayAwardSequence_Label {
65        pub fn unit_award() -> Self {
66            Self { value: 0 }
67        }
68
69        pub fn end() -> Self {
70            Self { value: 1 }
71        }
72    }
73}
74
75#[cfg(feature = "app-relayawardsequence-types")]
76pub use __types::*;
77
78#[cfg(feature = "app-relayawardsequence")]
79impl RelayAwardSequence {
80    #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
81    pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x22cfcf0usize)as*mut u8,();
84(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
85        }
86    }
87
88    #[doc = "`GetEnteredBattle()` overload"]
89    pub fn get_entered_battle() -> crate::app::relayuserdata::RelayUserData_EnteredBattle {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x22cf310usize)as*mut u8,crate::app::relayuserdata::RelayUserData_EnteredBattle;
92            )
93        }
94    }
95
96    #[doc = "`GetEnteredBattleFromUserData()` overload"]
97    pub fn get_entered_battle_from_user_data() -> crate::app::relayuserdata::RelayUserData_EnteredBattle {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x22cf3d0usize)as*mut u8,crate::app::relayuserdata::RelayUserData_EnteredBattle;
100            )
101        }
102    }
103}
104
105#[cfg(feature = "app-relayawardsequence")]
106pub trait IRelayAwardSequenceMethods: IRelayAwardSequence {
107    #[doc = "`OnCreate()` overload"]
108    fn on_create(self) -> () {
109        unsafe {
110            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
114                    panic!(
115                        "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120                        9usize,
121                        __vt.len(),
122                        <RelayAwardSequence as ::unity::ClassIdentity>::NAME,
123                        "OnCreate",
124                    )
125                });
126                let __inner: extern "C" fn(RelayAwardSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
127                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128                __inner(__receiver, __mi)
129            }
130        }
131    }
132    #[doc = "`OnDispose()` overload"]
133    fn on_dispose(self) -> () {
134        unsafe {
135            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            {
137                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
139                    panic!(
140                        "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145                        10usize,
146                        __vt.len(),
147                        <RelayAwardSequence as ::unity::ClassIdentity>::NAME,
148                        "OnDispose",
149                    )
150                });
151                let __inner: extern "C" fn(RelayAwardSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
152                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153                __inner(__receiver, __mi)
154            }
155        }
156    }
157    #[doc = "`TeamAward()` overload"]
158    fn team_award(self) -> () {
159        unsafe {
160            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x22cf4b0usize)as*mut u8,();
162(RelayAwardSequence)__receiver)
163        }
164    }
165    #[doc = "`UnitAward()` overload"]
166    fn unit_award(self) -> () {
167        unsafe {
168            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x22cf8a0usize)as*mut u8,();
170(RelayAwardSequence)__receiver)
171        }
172    }
173    #[doc = "`GainItem()` overload"]
174    fn gain_item(self) -> () {
175        unsafe {
176            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            ::unity::il2cpp_call!((::unity::module_base()+0x22cf940usize)as*mut u8,();
178(RelayAwardSequence)__receiver)
179        }
180    }
181    #[doc = "`GainItems(crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult)` overload"]
182    fn gain_items(self, result: impl ::core::convert::Into<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult>) -> () {
183        unsafe {
184            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
185            ::unity::il2cpp_call!((::unity::module_base()+0x22cf830usize)as*mut u8,();
186(RelayAwardSequence)__receiver,(crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult)::core::convert::Into::into(result))
187        }
188    }
189    #[doc = "`GainItems(crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>)` overload"]
190    fn gain_items_2(
191        self,
192        items: impl ::core::convert::Into<
193            crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>,
194        >,
195    ) -> () {
196        unsafe {
197            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x22cf9a0usize)as*mut u8,();
199(RelayAwardSequence)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::relaycompletionawarddata::RelayCompletionAwardData_CalcResult_Item>)::core::convert::Into::into(items))
200        }
201    }
202    #[doc = "`SetGainItem(crate::app::itemdata::ItemData)` overload"]
203    fn set_gain_item(self, item: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
204        unsafe {
205            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x22cf880usize)as*mut u8,();
207(RelayAwardSequence)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item))
208        }
209    }
210    #[doc = "`TutorialClassChange()` overload"]
211    fn tutorial_class_change(self) -> () {
212        unsafe {
213            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x22cfb60usize)as*mut u8,();
215(RelayAwardSequence)__receiver)
216        }
217    }
218    #[doc = "`End()` overload"]
219    fn end(self) -> () {
220        unsafe {
221            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x22cfc50usize)as*mut u8,();
223(RelayAwardSequence)__receiver)
224        }
225    }
226    #[doc = "`.ctor()` overload"]
227    fn ctor(self) -> () {
228        unsafe {
229            let __receiver = <RelayAwardSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x22d0190usize)as*mut u8,();
231(RelayAwardSequence)__receiver)
232        }
233    }
234}
235
236#[cfg(feature = "app-relayawardsequence")]
237impl<__T: IRelayAwardSequence> IRelayAwardSequenceMethods for __T {}
238
239#[cfg(feature = "app-relayawardsequence")]
240impl RelayAwardSequence {
241    pub fn on_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
243    }
244
245    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
247    }
248
249    pub fn team_award_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
251    }
252
253    pub fn unit_award_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
255    }
256
257    pub fn gain_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
259    }
260
261    pub fn gain_items_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
263    }
264
265    pub fn gain_items_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
267    }
268
269    pub fn set_gain_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
271    }
272
273    pub fn tutorial_class_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
275    }
276
277    pub fn end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
279    }
280
281    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
283    }
284
285    pub fn get_entered_battle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
287    }
288
289    pub fn get_entered_battle_from_user_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
291    }
292
293    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
295    }
296}
297
298#[cfg(feature = "app-relayawardsequence")]
299impl RelayAwardSequence {
300    #[doc = "Direct (non-virtual) call to `RelayAwardSequence`'s own `OnCreate`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301    pub unsafe fn on_create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
302        let __mi = Self::on_create_method_info();
303        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
304        __inner(this.into(), ::core::option::Option::None)
305    }
306
307    #[doc = "Direct (non-virtual) call to `RelayAwardSequence`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
309        let __mi = Self::on_dispose_method_info();
310        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
311        __inner(this.into(), ::core::option::Option::None)
312    }
313}
314
315#[cfg(feature = "app-relayawardsequence")]
316impl RelayAwardSequence {
317    #[doc = "`.ctor()` — no args"]
318    pub fn new() -> Self {
319        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
320            panic!(
321                "{}
322::{}
323 failed to instantiate",
324                ::core::stringify!(RelayAwardSequence),
325                ::core::stringify!(new),
326            )
327        });
328        <Self as IRelayAwardSequenceMethods>::ctor(this);
329        this
330    }
331}
332
333#[cfg(feature = "app-relayawardsequence")]
334#[doc(hidden)]
335pub mod prelude {
336    pub use super::{IRelayAwardSequence, IRelayAwardSequenceMethods, RelayAwardSequence, RelayAwardSequence_Label};
337    #[cfg(feature = "app-procinst")]
338    pub use crate::app::procinst::IProcInstMethods;
339    #[cfg(feature = "app-singletonprocinst_1")]
340    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
341    #[cfg(feature = "system-object")]
342    pub use crate::system::object::IObjectMethods;
343    #[cfg(feature = "system-enum")]
344    pub use crate::system::r#enum::IEnumMethods;
345    #[cfg(feature = "system-valuetype")]
346    pub use crate::system::valuetype::IValueTypeMethods;
347    pub use crate::{
348        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
349        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
350    };
351}