Skip to main content

engage/generated/app/
investmentnationdatamenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-investmentnationdatamenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentnationdatamenu/InvestmentNationDataMenu.md"))]
19    #[::unity::class(namespace = "App", name = "InvestmentNationDataMenu")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct InvestmentNationDataMenu {
22        #[offset(24)]
23        #[rename(name = "m_nationTitle")]
24        pub m_nation_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
25        #[offset(32)]
26        #[rename(name = "m_arrowL")]
27        pub m_arrow_l: crate::unity_engine::gameobject::GameObject,
28        #[offset(40)]
29        #[rename(name = "m_arrowR")]
30        pub m_arrow_r: crate::unity_engine::gameobject::GameObject,
31        #[offset(48)]
32        #[rename(name = "m_bgSymbol")]
33        pub m_bg_symbol: crate::unity_engine::ui::image::Image,
34        #[offset(56)]
35        #[rename(name = "m_materialTitle")]
36        pub m_material_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
37        #[offset(64)]
38        #[rename(name = "m_foodTitle")]
39        pub m_food_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
40        #[offset(72)]
41        #[rename(name = "m_animalTitle")]
42        pub m_animal_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
43        #[offset(80)]
44        #[rename(name = "m_ironData")]
45        pub m_iron_data: crate::app::investmentnationdatamenu::InvestmentNationDataMenu_ItemInfo,
46        #[offset(88)]
47        #[rename(name = "m_steelData")]
48        pub m_steel_data: crate::app::investmentnationdatamenu::InvestmentNationDataMenu_ItemInfo,
49        #[offset(96)]
50        #[rename(name = "m_silverData")]
51        pub m_silver_data: crate::app::investmentnationdatamenu::InvestmentNationDataMenu_ItemInfo,
52        #[offset(104)]
53        #[rename(name = "m_pieceOfBondData")]
54        pub m_piece_of_bond_data: crate::app::investmentnationdatamenu::InvestmentNationDataMenu_ItemInfo,
55        #[offset(112)]
56        #[rename(name = "m_foodstuffData")]
57        pub m_foodstuff_data:
58            crate::system::collections::generic::list_1::List_1<crate::app::investmentnationdatamenu::InvestmentNationDataMenu_ItemInfo>,
59        #[offset(120)]
60        #[rename(name = "m_animalData")]
61        pub m_animal_data:
62            crate::system::collections::generic::list_1::List_1<crate::app::investmentnationdatamenu::InvestmentNationDataMenu_AnimalInfo>,
63        #[offset(128)]
64        #[rename(name = "m_pageIcon")]
65        pub m_page_icon: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
66        #[offset(136)]
67        #[rename(name = "m_index")]
68        pub m_index: i32,
69        #[offset(140)]
70        #[rename(name = "m_investmentEnableCnt")]
71        pub m_investment_enable_cnt: i32,
72        #[offset(144)]
73        #[rename(name = "m_isClose")]
74        pub m_is_close: bool,
75    }
76
77    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentnationdatamenu/InvestmentNationDataMenu_AnimalInfo.md"))]
78    #[::unity::class(namespace = "App", name = "InvestmentNationDataMenu.AnimalInfo")]
79    #[parent(crate::system::object::Object)]
80    pub struct InvestmentNationDataMenu_AnimalInfo {
81        #[offset(16)]
82        #[rename(name = "m_root")]
83        pub m_root: crate::unity_engine::gameobject::GameObject,
84        #[offset(24)]
85        #[rename(name = "m_icon")]
86        pub m_icon: crate::unity_engine::ui::image::Image,
87        #[offset(32)]
88        #[rename(name = "m_name")]
89        pub m_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
90        #[offset(40)]
91        #[rename(name = "m_checkEnable")]
92        pub m_check_enable: crate::unity_engine::gameobject::GameObject,
93    }
94
95    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/investmentnationdatamenu/InvestmentNationDataMenu_ItemInfo.md"))]
96    #[::unity::class(namespace = "App", name = "InvestmentNationDataMenu.ItemInfo")]
97    #[parent(crate::system::object::Object)]
98    pub struct InvestmentNationDataMenu_ItemInfo {
99        #[offset(16)]
100        #[rename(name = "m_root")]
101        pub m_root: crate::unity_engine::gameobject::GameObject,
102        #[offset(24)]
103        #[rename(name = "m_icon")]
104        pub m_icon: crate::unity_engine::ui::image::Image,
105        #[offset(32)]
106        #[rename(name = "m_itemName")]
107        pub m_item_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
108        #[offset(40)]
109        #[rename(name = "m_itemNum")]
110        pub m_item_num: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
111    }
112}
113
114#[cfg(feature = "app-investmentnationdatamenu-types")]
115pub use __types::*;
116
117#[cfg(feature = "app-investmentnationdatamenu")]
118pub trait IInvestmentNationDataMenuMethods: IInvestmentNationDataMenu {
119    #[doc = "`Setup(i32)` overload"]
120    fn setup(self, index: impl ::core::convert::Into<i32>) -> () {
121        unsafe {
122            let __receiver =
123                <InvestmentNationDataMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124            ::unity::il2cpp_call!((::unity::module_base()+0x27a2e90usize)as*mut u8,();
125(InvestmentNationDataMenu)__receiver,(i32)::core::convert::Into::into(index))
126        }
127    }
128    #[doc = "`SetupNation()` overload"]
129    fn setup_nation(self) -> () {
130        unsafe {
131            let __receiver =
132                <InvestmentNationDataMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x27a33e0usize)as*mut u8,();
134(InvestmentNationDataMenu)__receiver)
135        }
136    }
137    #[doc = "`Update()` overload"]
138    fn update(self) -> () {
139        unsafe {
140            let __receiver =
141                <InvestmentNationDataMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x27a3a20usize)as*mut u8,();
143(InvestmentNationDataMenu)__receiver)
144        }
145    }
146    #[doc = "`GetNationIndex()` overload"]
147    fn get_nation_index(self) -> i32 {
148        unsafe {
149            let __receiver =
150                <InvestmentNationDataMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151            ::unity::il2cpp_call!((::unity::module_base()+0x27a4a20usize)as*mut u8,i32;
152(InvestmentNationDataMenu)__receiver)
153        }
154    }
155    #[doc = "`IsClosed()` overload"]
156    fn is_closed(self) -> bool {
157        unsafe {
158            let __receiver =
159                <InvestmentNationDataMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!((::unity::module_base()+0x27a4a30usize)as*mut u8,bool;
161(InvestmentNationDataMenu)__receiver)
162        }
163    }
164    #[doc = "`.ctor()` overload"]
165    fn ctor(self) -> () {
166        unsafe {
167            let __receiver =
168                <InvestmentNationDataMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x27a4ab0usize)as*mut u8,();
170(InvestmentNationDataMenu)__receiver)
171        }
172    }
173}
174
175#[cfg(feature = "app-investmentnationdatamenu")]
176impl<__T: IInvestmentNationDataMenu> IInvestmentNationDataMenuMethods for __T {}
177
178#[cfg(feature = "app-investmentnationdatamenu")]
179impl InvestmentNationDataMenu {
180    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
182    }
183
184    pub fn setup_nation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
186    }
187
188    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
190    }
191
192    pub fn get_nation_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
194    }
195
196    pub fn is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
198    }
199
200    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
202    }
203}
204
205#[cfg(feature = "app-investmentnationdatamenu")]
206impl InvestmentNationDataMenu {
207    #[doc = "`.ctor()` — no args"]
208    pub fn new() -> Self {
209        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
210            panic!(
211                "{}
212::{}
213 failed to instantiate",
214                ::core::stringify!(InvestmentNationDataMenu),
215                ::core::stringify!(new),
216            )
217        });
218        <Self as IInvestmentNationDataMenuMethods>::ctor(this);
219        this
220    }
221}
222
223#[cfg(feature = "app-investmentnationdatamenu")]
224pub trait IInvestmentNationDataMenu_AnimalInfoMethods: IInvestmentNationDataMenu_AnimalInfo {
225    #[doc = "`Setup(::unity::Il2CppString, bool)` overload"]
226    fn setup(self, animal_id: impl ::core::convert::Into<::unity::Il2CppString>, b_capture: impl ::core::convert::Into<bool>) -> () {
227        unsafe {
228            let __receiver = <InvestmentNationDataMenu_AnimalInfo as ::unity::FromIlInstance>::from_il_instance(
229                <Self as ::unity::SystemObject>::as_instance(self),
230            );
231            ::unity::il2cpp_call!((::unity::module_base()+0x1fce000usize)as*mut u8,();
232(InvestmentNationDataMenu_AnimalInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(animal_id),(bool)::core::convert::Into::into(b_capture))
233        }
234    }
235    #[doc = "`SetIcon(::unity::Il2CppString)` overload"]
236    fn set_icon(self, icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
237        unsafe {
238            let __receiver = <InvestmentNationDataMenu_AnimalInfo as ::unity::FromIlInstance>::from_il_instance(
239                <Self as ::unity::SystemObject>::as_instance(self),
240            );
241            ::unity::il2cpp_call!((::unity::module_base()+0x1fce4b0usize)as*mut u8,();
242(InvestmentNationDataMenu_AnimalInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(icon_name))
243        }
244    }
245    #[doc = "`SetVisible(bool)` overload"]
246    fn set_visible(self, is_visible: impl ::core::convert::Into<bool>) -> () {
247        unsafe {
248            let __receiver = <InvestmentNationDataMenu_AnimalInfo as ::unity::FromIlInstance>::from_il_instance(
249                <Self as ::unity::SystemObject>::as_instance(self),
250            );
251            ::unity::il2cpp_call!((::unity::module_base()+0x1fce430usize)as*mut u8,();
252(InvestmentNationDataMenu_AnimalInfo)__receiver,(bool)::core::convert::Into::into(is_visible))
253        }
254    }
255    #[doc = "`.ctor()` overload"]
256    fn ctor(self) -> () {
257        unsafe {
258            let __receiver = <InvestmentNationDataMenu_AnimalInfo as ::unity::FromIlInstance>::from_il_instance(
259                <Self as ::unity::SystemObject>::as_instance(self),
260            );
261            ::unity::il2cpp_call!((::unity::module_base()+0x1fce590usize)as*mut u8,();
262(InvestmentNationDataMenu_AnimalInfo)__receiver)
263        }
264    }
265}
266
267#[cfg(feature = "app-investmentnationdatamenu")]
268impl<__T: IInvestmentNationDataMenu_AnimalInfo> IInvestmentNationDataMenu_AnimalInfoMethods for __T {}
269
270#[cfg(feature = "app-investmentnationdatamenu")]
271impl InvestmentNationDataMenu_AnimalInfo {
272    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
274    }
275
276    pub fn set_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
278    }
279
280    pub fn set_visible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
282    }
283
284    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
286    }
287}
288
289#[cfg(feature = "app-investmentnationdatamenu")]
290impl InvestmentNationDataMenu_AnimalInfo {
291    #[doc = "`.ctor()` — no args"]
292    pub fn new() -> Self {
293        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
294            panic!(
295                "{}
296::{}
297 failed to instantiate",
298                ::core::stringify!(InvestmentNationDataMenu_AnimalInfo),
299                ::core::stringify!(new),
300            )
301        });
302        <Self as IInvestmentNationDataMenu_AnimalInfoMethods>::ctor(this);
303        this
304    }
305}
306
307#[cfg(feature = "app-investmentnationdatamenu")]
308pub trait IInvestmentNationDataMenu_ItemInfoMethods: IInvestmentNationDataMenu_ItemInfo {
309    #[doc = "`Setup(::unity::Il2CppString, i32)` overload"]
310    fn setup(self, title: impl ::core::convert::Into<::unity::Il2CppString>, value: impl ::core::convert::Into<i32>) -> () {
311        unsafe {
312            let __receiver =
313                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x1fce5a0usize)as*mut u8,();
315(InvestmentNationDataMenu_ItemInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(title),(i32)::core::convert::Into::into(value))
316        }
317    }
318    #[doc = "`SetIcon(::unity::Il2CppString)` overload"]
319    fn set_icon(self, icon_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
320        unsafe {
321            let __receiver =
322                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323            ::unity::il2cpp_call!((::unity::module_base()+0x1fce9d0usize)as*mut u8,();
324(InvestmentNationDataMenu_ItemInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(icon_name))
325        }
326    }
327    #[doc = "`SetTtile(::unity::Il2CppString)` overload"]
328    fn set_ttile(self, title: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
329        unsafe {
330            let __receiver =
331                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332            ::unity::il2cpp_call!((::unity::module_base()+0x1fce8d0usize)as*mut u8,();
333(InvestmentNationDataMenu_ItemInfo)__receiver,(::unity::Il2CppString)::core::convert::Into::into(title))
334        }
335    }
336    #[doc = "`SetValue(i32)` overload"]
337    fn set_value(self, value: impl ::core::convert::Into<i32>) -> () {
338        unsafe {
339            let __receiver =
340                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341            ::unity::il2cpp_call!((::unity::module_base()+0x1fce950usize)as*mut u8,();
342(InvestmentNationDataMenu_ItemInfo)__receiver,(i32)::core::convert::Into::into(value))
343        }
344    }
345    #[doc = "`Show()` overload"]
346    fn show(self) -> () {
347        unsafe {
348            let __receiver =
349                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350            ::unity::il2cpp_call!((::unity::module_base()+0x1fce850usize)as*mut u8,();
351(InvestmentNationDataMenu_ItemInfo)__receiver)
352        }
353    }
354    #[doc = "`Hide()` overload"]
355    fn hide(self) -> () {
356        unsafe {
357            let __receiver =
358                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
359            ::unity::il2cpp_call!((::unity::module_base()+0x1fceab0usize)as*mut u8,();
360(InvestmentNationDataMenu_ItemInfo)__receiver)
361        }
362    }
363    #[doc = "`.ctor()` overload"]
364    fn ctor(self) -> () {
365        unsafe {
366            let __receiver =
367                <InvestmentNationDataMenu_ItemInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368            ::unity::il2cpp_call!((::unity::module_base()+0x1fceb30usize)as*mut u8,();
369(InvestmentNationDataMenu_ItemInfo)__receiver)
370        }
371    }
372}
373
374#[cfg(feature = "app-investmentnationdatamenu")]
375impl<__T: IInvestmentNationDataMenu_ItemInfo> IInvestmentNationDataMenu_ItemInfoMethods for __T {}
376
377#[cfg(feature = "app-investmentnationdatamenu")]
378impl InvestmentNationDataMenu_ItemInfo {
379    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
381    }
382
383    pub fn set_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
385    }
386
387    pub fn set_ttile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
389    }
390
391    pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
393    }
394
395    pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
397    }
398
399    pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
401    }
402
403    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
405    }
406}
407
408#[cfg(feature = "app-investmentnationdatamenu")]
409impl InvestmentNationDataMenu_ItemInfo {
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!(InvestmentNationDataMenu_ItemInfo),
418                ::core::stringify!(new),
419            )
420        });
421        <Self as IInvestmentNationDataMenu_ItemInfoMethods>::ctor(this);
422        this
423    }
424}
425
426#[cfg(feature = "app-investmentnationdatamenu")]
427#[doc(hidden)]
428pub mod prelude {
429    pub use super::{
430        IInvestmentNationDataMenu, IInvestmentNationDataMenuMethods, IInvestmentNationDataMenu_AnimalInfo,
431        IInvestmentNationDataMenu_AnimalInfoMethods, IInvestmentNationDataMenu_ItemInfo, IInvestmentNationDataMenu_ItemInfoMethods,
432        InvestmentNationDataMenu, InvestmentNationDataMenu_AnimalInfo, InvestmentNationDataMenu_ItemInfo,
433    };
434    #[cfg(feature = "system-object")]
435    pub use crate::system::object::IObjectMethods;
436    #[cfg(feature = "unity_engine-behaviour")]
437    pub use crate::unity_engine::behaviour::IBehaviourMethods;
438    #[cfg(feature = "unity_engine-component")]
439    pub use crate::unity_engine::component::IComponentMethods;
440    #[cfg(feature = "unity_engine-monobehaviour")]
441    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
442    #[cfg(feature = "unity_engine-object_2")]
443    pub use crate::unity_engine::object_2::IObject_2Methods;
444    pub use crate::{
445        system::object::IObject,
446        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
447    };
448}