engage/generated/app/
shopunitselectroot.rs1#[cfg(feature = "app-shopunitselectroot-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/shopunitselectroot/ShopUnitSelectRoot.md"))]
19 #[::unity::class(namespace = "App", name = "ShopUnitSelectRoot")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct ShopUnitSelectRoot {
22 #[static_field]
23 #[rename(name = "PrefabPath")]
24 pub prefab_path: ::unity::Il2CppString,
25 #[offset(24)]
26 #[rename(name = "m_ShopUnitSelectMenuObject")]
27 pub m_shop_unit_select_menu_object: crate::unity_engine::gameobject::GameObject,
28 #[offset(32)]
29 #[rename(name = "m_UnitStatusObject")]
30 pub m_unit_status_object: crate::unity_engine::gameobject::GameObject,
31 #[offset(40)]
32 #[rename(name = "m_ShopUnitSelectStatus")]
33 pub m_shop_unit_select_status: crate::app::shopunitselectstatus::ShopUnitSelectStatus,
34 #[offset(48)]
35 #[rename(name = "m_DecideEventHandler")]
36 pub m_decide_event_handler: crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler,
37 }
38}
39
40#[cfg(feature = "app-shopunitselectroot-types")]
41pub use __types::*;
42
43#[cfg(feature = "app-shopunitselectroot")]
44impl ShopUnitSelectRoot {
45 #[doc = "`LoadPrefabAsync()` overload"]
46 pub fn load_prefab_async() -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x247a040usize)as*mut u8,();
49 )
50 }
51 }
52
53 #[doc = "`IsLoadingPrefab()` overload"]
54 pub fn is_loading_prefab() -> bool {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x247a0c0usize)as*mut u8,bool;
57 )
58 }
59 }
60
61 #[doc = "`UnloadPrefab()` overload"]
62 pub fn unload_prefab() -> () {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x247a140usize)as*mut u8,();
65 )
66 }
67 }
68
69 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, i32, bool, crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler)` overload"]
70 pub fn create_bind(
71 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
72 default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
73 default_scroll_index: impl ::core::convert::Into<i32>,
74 adding_transporter: impl ::core::convert::Into<bool>,
75 decide_event_handler: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler>,
76 ) -> crate::app::shopunitselectroot::ShopUnitSelectRoot {
77 unsafe {
78 ::unity::il2cpp_call!((::unity::module_base()+0x247a1c0usize)as*mut u8,crate::app::shopunitselectroot::ShopUnitSelectRoot;
79(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(default_unit),(i32)::core::convert::Into::into(default_scroll_index),(bool)::core::convert::Into::into(adding_transporter),(crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
80 }
81 }
82
83 #[doc = "`Destroy(crate::app::shopunitselectroot::ShopUnitSelectRoot)` overload"]
84 pub fn destroy(root: impl ::core::convert::Into<crate::app::shopunitselectroot::ShopUnitSelectRoot>) -> () {
85 unsafe {
86 ::unity::il2cpp_call!((::unity::module_base()+0x247a6c0usize)as*mut u8,();
87(crate::app::shopunitselectroot::ShopUnitSelectRoot)::core::convert::Into::into(root))
88 }
89 }
90}
91
92#[cfg(feature = "app-shopunitselectroot")]
93pub trait IShopUnitSelectRootMethods: IShopUnitSelectRoot {
94 #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, i32, bool, crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler)` overload"]
95 fn create(
96 self,
97 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
98 default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
99 default_scroll_index: impl ::core::convert::Into<i32>,
100 adding_transporter: impl ::core::convert::Into<bool>,
101 decide_event_handler: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler>,
102 ) -> () {
103 unsafe {
104 let __receiver = <ShopUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105 ::unity::il2cpp_call!((::unity::module_base()+0x247a350usize)as*mut u8,();
106(ShopUnitSelectRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(default_unit),(i32)::core::convert::Into::into(default_scroll_index),(bool)::core::convert::Into::into(adding_transporter),(crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
107 }
108 }
109 #[doc = "`.ctor()` overload"]
110 fn ctor(self) -> () {
111 unsafe {
112 let __receiver = <ShopUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x247a7a0usize)as*mut u8,();
114(ShopUnitSelectRoot)__receiver)
115 }
116 }
117 #[doc = "`OnSelectMenuItem(crate::app::unit::Unit)` overload"]
118 fn on_select_menu_item(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
119 unsafe {
120 let __receiver = <ShopUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x247a7b0usize)as*mut u8,();
122(ShopUnitSelectRoot)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
123 }
124 }
125 #[doc = "`OnDecideMenuItem(crate::app::basicmenu::BasicMenu_Result, crate::app::unit::Unit, i32)` overload"]
126 fn on_decide_menu_item(
127 self,
128 result: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu_Result>,
129 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
130 scroll_index: impl ::core::convert::Into<i32>,
131 ) -> () {
132 unsafe {
133 let __receiver = <ShopUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x247aa60usize)as*mut u8,();
135(ShopUnitSelectRoot)__receiver,(crate::app::basicmenu::BasicMenu_Result)::core::convert::Into::into(result),(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(scroll_index))
136 }
137 }
138 #[doc = "`OnHelp(crate::app::procinst::ProcInst)` overload"]
139 fn on_help(self, parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
140 unsafe {
141 let __receiver = <ShopUnitSelectRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x247ac40usize)as*mut u8,();
143(ShopUnitSelectRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(parent))
144 }
145 }
146}
147
148#[cfg(feature = "app-shopunitselectroot")]
149impl<__T: IShopUnitSelectRoot> IShopUnitSelectRootMethods for __T {}
150
151#[cfg(feature = "app-shopunitselectroot")]
152impl ShopUnitSelectRoot {
153 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
155 }
156
157 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
159 }
160
161 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
163 }
164
165 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
167 }
168
169 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
171 }
172
173 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
175 }
176
177 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
179 }
180
181 pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
183 }
184
185 pub fn on_decide_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
187 }
188
189 pub fn on_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
191 }
192}
193
194#[cfg(feature = "app-shopunitselectroot")]
195impl ShopUnitSelectRoot {
196 #[doc = "`.ctor()` — no args"]
197 pub fn new() -> Self {
198 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
199 panic!(
200 "{}
201::{}
202 failed to instantiate",
203 ::core::stringify!(ShopUnitSelectRoot),
204 ::core::stringify!(new),
205 )
206 });
207 <Self as IShopUnitSelectRootMethods>::ctor(this);
208 this
209 }
210}
211
212#[cfg(feature = "app-shopunitselectroot")]
213#[doc(hidden)]
214pub mod prelude {
215 pub use super::{IShopUnitSelectRoot, IShopUnitSelectRootMethods, ShopUnitSelectRoot};
216 #[cfg(feature = "system-object")]
217 pub use crate::system::object::IObjectMethods;
218 #[cfg(feature = "unity_engine-behaviour")]
219 pub use crate::unity_engine::behaviour::IBehaviourMethods;
220 #[cfg(feature = "unity_engine-component")]
221 pub use crate::unity_engine::component::IComponentMethods;
222 #[cfg(feature = "unity_engine-monobehaviour")]
223 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
224 #[cfg(feature = "unity_engine-object_2")]
225 pub use crate::unity_engine::object_2::IObject_2Methods;
226 pub use crate::{
227 system::object::IObject,
228 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
229 };
230}