Skip to main content

engage/generated/app/
investmentnationdatasequence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-investmentnationdatasequence-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            delegate::{Delegate, IDelegate},
15            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16            object::{IObject, Object},
17            r#enum::{Enum, IEnum},
18            valuetype::{IValueType, ValueType},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentnationdatasequence/InvestmentNationDataSequence_DecideEventHandler.md"))]
23    #[::unity::class(namespace = "App", name = "InvestmentNationDataSequence.DecideEventHandler")]
24    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25    pub struct InvestmentNationDataSequence_DecideEventHandler {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentnationdatasequence/InvestmentNationDataSequence_Label2.md"))]
28    #[repr(C)]
29    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
30    pub struct InvestmentNationDataSequence_Label2 {
31        pub value: i32,
32    }
33    impl ::unity::ClassIdentity for InvestmentNationDataSequence_Label2 {
34        const NAME: &'static str = "InvestmentNationDataSequence.Label2";
35        const NAMESPACE: &'static str = "App";
36
37        fn class() -> ::unity::Class {
38            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
39            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
40        }
41    }
42    impl ::unity::IlType for InvestmentNationDataSequence_Label2 {
43        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
44            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
45        }
46    }
47    impl InvestmentNationDataSequence_Label2 {
48        pub fn entry() -> Self {
49            Self { value: 0 }
50        }
51
52        pub fn end() -> Self {
53            Self { value: 1 }
54        }
55    }
56
57    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentnationdatasequence/InvestmentNationDataSequence.md"))]
58    #[::unity::class(namespace = "App", name = "InvestmentNationDataSequence")]
59    #[parent(crate::app::singletonprocinst_1::SingletonProcInst_1<crate::app::investmentnationdatasequence::InvestmentNationDataSequence>)]
60    pub struct InvestmentNationDataSequence {
61        #[static_field]
62        #[rename(name = "ResNameC")]
63        pub res_name_c: ::unity::Il2CppString,
64        #[offset(120)]
65        #[rename(name = "m_window")]
66        pub m_window: crate::app::investmentnationdatamenu::InvestmentNationDataMenu,
67        #[static_field]
68        #[rename(name = "m_nationIndex")]
69        pub m_nation_index: i32,
70    }
71}
72
73#[cfg(feature = "app-investmentnationdatasequence-types")]
74pub use __types::*;
75
76#[cfg(feature = "app-investmentnationdatasequence")]
77pub trait IInvestmentNationDataSequence_DecideEventHandlerMethods: IInvestmentNationDataSequence_DecideEventHandler {
78    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
79    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
80        unsafe {
81            let __receiver = <InvestmentNationDataSequence_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
82                <Self as ::unity::SystemObject>::as_instance(self),
83            );
84            ::unity::il2cpp_call!((::unity::module_base()+0x1fcc6b0usize)as*mut u8,();
85(InvestmentNationDataSequence_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
86        }
87    }
88    #[doc = "`Invoke(i32)` overload"]
89    fn invoke(self, index: impl ::core::convert::Into<i32>) -> () {
90        unsafe {
91            let __receiver = <InvestmentNationDataSequence_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
92                <Self as ::unity::SystemObject>::as_instance(self),
93            );
94            {
95                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
97                    panic!(
98                        "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103                        13usize,
104                        __vt.len(),
105                        <InvestmentNationDataSequence_DecideEventHandler as ::unity::ClassIdentity>::NAME,
106                        "Invoke",
107                    )
108                });
109                let __inner: extern "C" fn(InvestmentNationDataSequence_DecideEventHandler, i32, ::unity::OptionalMethod) -> () =
110                    ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, ::core::convert::Into::into(index), __mi)
113            }
114        }
115    }
116}
117
118#[cfg(feature = "app-investmentnationdatasequence")]
119impl<__T: IInvestmentNationDataSequence_DecideEventHandler> IInvestmentNationDataSequence_DecideEventHandlerMethods for __T {}
120
121#[cfg(feature = "app-investmentnationdatasequence")]
122impl InvestmentNationDataSequence_DecideEventHandler {
123    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125    }
126
127    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129    }
130}
131
132#[cfg(feature = "app-investmentnationdatasequence")]
133impl InvestmentNationDataSequence_DecideEventHandler {
134    #[doc = "Direct (non-virtual) call to `InvestmentNationDataSequence_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
135    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, index: i32) -> () {
136        let __mi = Self::invoke_method_info();
137        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
138        __inner(this.into(), index, ::core::option::Option::None)
139    }
140}
141
142#[cfg(feature = "app-investmentnationdatasequence")]
143impl InvestmentNationDataSequence_DecideEventHandler {
144    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
145    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
146        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147            panic!(
148                "{}
149::{}
150 failed to instantiate",
151                ::core::stringify!(InvestmentNationDataSequence_DecideEventHandler),
152                ::core::stringify!(new),
153            )
154        });
155        <Self as IInvestmentNationDataSequence_DecideEventHandlerMethods>::ctor(this, object, method);
156        this
157    }
158}
159
160#[cfg(feature = "app-investmentnationdatasequence")]
161impl InvestmentNationDataSequence {
162    #[doc = "`CreateBind(crate::app::procinst::ProcInst, i32, crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)` overload"]
163    pub fn create_bind(
164        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
165        nation_index: impl ::core::convert::Into<i32>,
166        event_handler: impl ::core::convert::Into<crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler>,
167    ) -> () {
168        unsafe {
169            ::unity::il2cpp_call!((::unity::module_base()+0x27a4ae0usize)as*mut u8,();
170(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(nation_index),(crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)::core::convert::Into::into(event_handler))
171        }
172    }
173
174    #[doc = "`.cctor()` overload"]
175    pub fn cctor() -> () {
176        unsafe {
177            ::unity::il2cpp_call!((::unity::module_base()+0x27a5610usize)as*mut u8,();
178            )
179        }
180    }
181}
182
183#[cfg(feature = "app-investmentnationdatasequence")]
184pub trait IInvestmentNationDataSequenceMethods: IInvestmentNationDataSequence {
185    #[doc = "`get_m_DecideEventHandler()` overload"]
186    fn get_m_decide_event_handler(self) -> crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler {
187        unsafe {
188            let __receiver =
189                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x27a4ac0usize)as*mut u8,crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler;
191(InvestmentNationDataSequence)__receiver)
192        }
193    }
194    #[doc = "`set_m_DecideEventHandler(crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)` overload"]
195    fn set_m_decide_event_handler(
196        self,
197        value: impl ::core::convert::Into<crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler>,
198    ) -> () {
199        unsafe {
200            let __receiver =
201                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x27a4ad0usize)as*mut u8,();
203(InvestmentNationDataSequence)__receiver,(crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)::core::convert::Into::into(value))
204        }
205    }
206    #[doc = "`.ctor(crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)` overload"]
207    fn ctor(
208        self,
209        event_handler: impl ::core::convert::Into<crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler>,
210    ) -> () {
211        unsafe {
212            let __receiver =
213                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x27a4c00usize)as*mut u8,();
215(InvestmentNationDataSequence)__receiver,(crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)::core::convert::Into::into(event_handler))
216        }
217    }
218    #[doc = "`CreateDesc()` overload"]
219    fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
220        unsafe {
221            let __receiver =
222                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x27a4ca0usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
224(InvestmentNationDataSequence)__receiver)
225        }
226    }
227    #[doc = "`LoadRes()` overload"]
228    fn load_res(self) -> () {
229        unsafe {
230            let __receiver =
231                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232            ::unity::il2cpp_call!((::unity::module_base()+0x27a51f0usize)as*mut u8,();
233(InvestmentNationDataSequence)__receiver)
234        }
235    }
236    #[doc = "`Open()` overload"]
237    fn open(self) -> () {
238        unsafe {
239            let __receiver =
240                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241            ::unity::il2cpp_call!((::unity::module_base()+0x27a5290usize)as*mut u8,();
242(InvestmentNationDataSequence)__receiver)
243        }
244    }
245    #[doc = "`CloseEvent()` overload"]
246    fn close_event(self) -> () {
247        unsafe {
248            let __receiver =
249                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x27a5430usize)as*mut u8,();
251(InvestmentNationDataSequence)__receiver)
252        }
253    }
254    #[doc = "`IsClosed()` overload"]
255    fn is_closed(self) -> bool {
256        unsafe {
257            let __receiver =
258                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259            ::unity::il2cpp_call!((::unity::module_base()+0x27a5450usize)as*mut u8,bool;
260(InvestmentNationDataSequence)__receiver)
261        }
262    }
263    #[doc = "`Close()` overload"]
264    fn close(self) -> () {
265        unsafe {
266            let __receiver =
267                <InvestmentNationDataSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268            ::unity::il2cpp_call!((::unity::module_base()+0x27a5540usize)as*mut u8,();
269(InvestmentNationDataSequence)__receiver)
270        }
271    }
272}
273
274#[cfg(feature = "app-investmentnationdatasequence")]
275impl<__T: IInvestmentNationDataSequence> IInvestmentNationDataSequenceMethods for __T {}
276
277#[cfg(feature = "app-investmentnationdatasequence")]
278impl InvestmentNationDataSequence {
279    pub fn get_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
281    }
282
283    pub fn set_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
285    }
286
287    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
289    }
290
291    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
293    }
294
295    pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
297    }
298
299    pub fn load_res_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
301    }
302
303    pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
305    }
306
307    pub fn close_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
309    }
310
311    pub fn is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
313    }
314
315    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
317    }
318
319    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
321    }
322}
323
324#[cfg(feature = "app-investmentnationdatasequence")]
325impl InvestmentNationDataSequence {
326    #[doc = "`.ctor(crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler)` — overload selector"]
327    pub fn new(event_handler: crate::app::investmentnationdatasequence::InvestmentNationDataSequence_DecideEventHandler) -> Self {
328        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
329            panic!(
330                "{}
331::{}
332 failed to instantiate",
333                ::core::stringify!(InvestmentNationDataSequence),
334                ::core::stringify!(new),
335            )
336        });
337        <Self as IInvestmentNationDataSequenceMethods>::ctor(this, event_handler);
338        this
339    }
340}
341
342#[cfg(feature = "app-investmentnationdatasequence")]
343#[doc(hidden)]
344pub mod prelude {
345    pub use super::{
346        IInvestmentNationDataSequence, IInvestmentNationDataSequenceMethods, IInvestmentNationDataSequence_DecideEventHandler,
347        IInvestmentNationDataSequence_DecideEventHandlerMethods, InvestmentNationDataSequence, InvestmentNationDataSequence_DecideEventHandler,
348        InvestmentNationDataSequence_Label2,
349    };
350    #[cfg(feature = "app-procinst")]
351    pub use crate::app::procinst::IProcInstMethods;
352    #[cfg(feature = "app-singletonprocinst_1")]
353    pub use crate::app::singletonprocinst_1::ISingletonProcInst_1Methods;
354    #[cfg(feature = "system-delegate")]
355    pub use crate::system::delegate::IDelegateMethods;
356    #[cfg(feature = "system-multicastdelegate")]
357    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
358    #[cfg(feature = "system-object")]
359    pub use crate::system::object::IObjectMethods;
360    #[cfg(feature = "system-enum")]
361    pub use crate::system::r#enum::IEnumMethods;
362    #[cfg(feature = "system-valuetype")]
363    pub use crate::system::valuetype::IValueTypeMethods;
364    pub use crate::{
365        app::{procinst::IProcInst, singletonprocinst_1::ISingletonProcInst_1},
366        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
367    };
368}