engage/generated/app/
investmentmappoint.rs1#[cfg(feature = "app-investmentmappoint-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/investmentmappoint/InvestmentMapPoint.md"))]
19 #[::unity::class(namespace = "App", name = "InvestmentMapPoint")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct InvestmentMapPoint {
22 #[offset(24)]
23 #[rename(name = "m_mapCid")]
24 pub m_map_cid: ::unity::Il2CppString,
25 #[offset(32)]
26 #[rename(name = "m_balloonRoot")]
27 pub m_balloon_root: crate::unity_engine::gameobject::GameObject,
28 #[offset(40)]
29 #[rename(name = "m_battleIcon")]
30 pub m_battle_icon: crate::unity_engine::gameobject::GameObject,
31 #[offset(48)]
32 #[rename(name = "m_animalIcon")]
33 pub m_animal_icon: crate::unity_engine::gameobject::GameObject,
34 }
35}
36
37#[cfg(feature = "app-investmentmappoint-types")]
38pub use __types::*;
39
40#[cfg(feature = "app-investmentmappoint")]
41pub trait IInvestmentMapPointMethods: IInvestmentMapPoint {
42 #[doc = "`GetRareAnimal(crate::app::hubnationdata::HubNationData)` overload"]
43 fn get_rare_animal(self, nation: impl ::core::convert::Into<crate::app::hubnationdata::HubNationData>) -> crate::app::animaldata::AnimalData {
44 unsafe {
45 let __receiver = <InvestmentMapPoint as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x27a0600usize)as*mut u8,crate::app::animaldata::AnimalData;
47(InvestmentMapPoint)__receiver,(crate::app::hubnationdata::HubNationData)::core::convert::Into::into(nation))
48 }
49 }
50 #[doc = "`Setup()` overload"]
51 fn setup(self) -> () {
52 unsafe {
53 let __receiver = <InvestmentMapPoint as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x27a0700usize)as*mut u8,();
55(InvestmentMapPoint)__receiver)
56 }
57 }
58 #[doc = "`.ctor()` overload"]
59 fn ctor(self) -> () {
60 unsafe {
61 let __receiver = <InvestmentMapPoint as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x27a0ae0usize)as*mut u8,();
63(InvestmentMapPoint)__receiver)
64 }
65 }
66}
67
68#[cfg(feature = "app-investmentmappoint")]
69impl<__T: IInvestmentMapPoint> IInvestmentMapPointMethods for __T {}
70
71#[cfg(feature = "app-investmentmappoint")]
72impl InvestmentMapPoint {
73 pub fn get_rare_animal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
75 }
76
77 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
79 }
80
81 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
83 }
84}
85
86#[cfg(feature = "app-investmentmappoint")]
87impl InvestmentMapPoint {
88 #[doc = "`.ctor()` — no args"]
89 pub fn new() -> Self {
90 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
91 panic!(
92 "{}
93::{}
94 failed to instantiate",
95 ::core::stringify!(InvestmentMapPoint),
96 ::core::stringify!(new),
97 )
98 });
99 <Self as IInvestmentMapPointMethods>::ctor(this);
100 this
101 }
102}
103
104#[cfg(feature = "app-investmentmappoint")]
105#[doc(hidden)]
106pub mod prelude {
107 pub use super::{IInvestmentMapPoint, IInvestmentMapPointMethods, InvestmentMapPoint};
108 #[cfg(feature = "system-object")]
109 pub use crate::system::object::IObjectMethods;
110 #[cfg(feature = "unity_engine-behaviour")]
111 pub use crate::unity_engine::behaviour::IBehaviourMethods;
112 #[cfg(feature = "unity_engine-component")]
113 pub use crate::unity_engine::component::IComponentMethods;
114 #[cfg(feature = "unity_engine-monobehaviour")]
115 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
116 #[cfg(feature = "unity_engine-object_2")]
117 pub use crate::unity_engine::object_2::IObject_2Methods;
118 pub use crate::{
119 system::object::IObject,
120 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
121 };
122}