engage/generated/app/
hubweaponshopsequence.rs1#[cfg(feature = "app-hubweaponshopsequence-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::procinst::{IProcInst, ProcInst},
10 system::{
11 object::{IObject, Object},
12 r#enum::{Enum, IEnum},
13 valuetype::{IValueType, ValueType},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubweaponshopsequence/HubWeaponShopSequence_Label2.md"))]
18 #[repr(C)]
19 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20 pub struct HubWeaponShopSequence_Label2 {
21 pub value: i32,
22 }
23 impl ::unity::ClassIdentity for HubWeaponShopSequence_Label2 {
24 const NAME: &'static str = "HubWeaponShopSequence.Label2";
25 const NAMESPACE: &'static str = "App";
26
27 fn class() -> ::unity::Class {
28 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30 }
31 }
32 impl ::unity::IlType for HubWeaponShopSequence_Label2 {
33 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35 }
36 }
37 impl HubWeaponShopSequence_Label2 {
38 pub fn entry() -> Self {
39 Self { value: 0 }
40 }
41
42 pub fn top() -> Self {
43 Self { value: 1 }
44 }
45
46 pub fn unit_select_to_buy() -> Self {
47 Self { value: 2 }
48 }
49
50 pub fn buy() -> Self {
51 Self { value: 3 }
52 }
53
54 pub fn unit_select_to_sell() -> Self {
55 Self { value: 4 }
56 }
57
58 pub fn sell() -> Self {
59 Self { value: 5 }
60 }
61
62 pub fn end() -> Self {
63 Self { value: 6 }
64 }
65 }
66
67 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/hubweaponshopsequence/HubWeaponShopSequence.md"))]
68 #[::unity::class(namespace = "App", name = "HubWeaponShopSequence")]
69 #[parent(crate::app::procinst::ProcInst)]
70 pub struct HubWeaponShopSequence {
71 #[offset(112)]
72 #[rename(name = "m_ShopMenuResult")]
73 pub m_shop_menu_result: crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2,
74 #[offset(116)]
75 #[rename(name = "m_ShopUnitSelectMenuResult")]
76 pub m_shop_unit_select_menu_result: crate::app::basicmenu::BasicMenu_Result,
77 #[offset(120)]
78 #[rename(name = "m_UnitSelectRoot")]
79 pub m_unit_select_root: crate::app::shopunitselectroot::ShopUnitSelectRoot,
80 #[offset(128)]
81 #[rename(name = "m_WeaponShopBuyRoot")]
82 pub m_weapon_shop_buy_root: crate::app::weaponshopbuyroot::WeaponShopBuyRoot,
83 #[offset(136)]
84 #[rename(name = "m_WeaponShopSellRoot")]
85 pub m_weapon_shop_sell_root: crate::app::shopsellroot::ShopSellRoot,
86 #[offset(144)]
87 #[rename(name = "m_Unit")]
88 pub m_unit: crate::app::unit::Unit,
89 #[offset(152)]
90 #[rename(name = "m_UnitSelectMenuScrollIndex")]
91 pub m_unit_select_menu_scroll_index: i32,
92 }
93}
94
95#[cfg(feature = "app-hubweaponshopsequence-types")]
96pub use __types::*;
97
98#[cfg(feature = "app-hubweaponshopsequence")]
99impl HubWeaponShopSequence {
100 #[doc = "`CreateBind(crate::app::procinst::ProcInst)` overload"]
101 pub fn create_bind(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
102 unsafe {
103 ::unity::il2cpp_call!((::unity::module_base()+0x2a744f0usize)as*mut u8,();
104(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
105 }
106 }
107}
108
109#[cfg(feature = "app-hubweaponshopsequence")]
110pub trait IHubWeaponShopSequenceMethods: IHubWeaponShopSequence {
111 #[doc = "`.ctor()` overload"]
112 fn ctor(self) -> () {
113 unsafe {
114 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 ::unity::il2cpp_call!((::unity::module_base()+0x2a74570usize)as*mut u8,();
116(HubWeaponShopSequence)__receiver)
117 }
118 }
119 #[doc = "`CreateDesc()` overload"]
120 fn create_desc(self) -> ::unity::Array<crate::app::procdesc::ProcDesc> {
121 unsafe {
122 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123 ::unity::il2cpp_call!((::unity::module_base()+0x2a74580usize)as*mut u8, ::unity::Array<crate::app::procdesc::ProcDesc> ;
124(HubWeaponShopSequence)__receiver)
125 }
126 }
127 #[doc = "`LoadResources()` overload"]
128 fn load_resources(self) -> () {
129 unsafe {
130 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131 ::unity::il2cpp_call!((::unity::module_base()+0x2a754f0usize)as*mut u8,();
132(HubWeaponShopSequence)__receiver)
133 }
134 }
135 #[doc = "`IsLoadingResources()` overload"]
136 fn is_loading_resources(self) -> bool {
137 unsafe {
138 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139 ::unity::il2cpp_call!((::unity::module_base()+0x2a75520usize)as*mut u8,bool;
140(HubWeaponShopSequence)__receiver)
141 }
142 }
143 #[doc = "`StartSequence()` overload"]
144 fn start_sequence(self) -> () {
145 unsafe {
146 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x2a75570usize)as*mut u8,();
148(HubWeaponShopSequence)__receiver)
149 }
150 }
151 #[doc = "`CreateWeaponShopTopMenu()` overload"]
152 fn create_weapon_shop_top_menu(self) -> () {
153 unsafe {
154 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 {
156 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
157 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
158 panic!(
159 "unity: virtual slot {}
160 out of range (vtable len {}
161) on the runtime class behind {}
162 (method `{}
163`)",
164 18usize,
165 __vt.len(),
166 <HubWeaponShopSequence as ::unity::ClassIdentity>::NAME,
167 "CreateWeaponShopTopMenu",
168 )
169 });
170 let __inner: extern "C" fn(HubWeaponShopSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
171 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172 __inner(__receiver, __mi)
173 }
174 }
175 }
176 #[doc = "`CreateShopUnitSelectMenu()` overload"]
177 fn create_shop_unit_select_menu(self) -> () {
178 unsafe {
179 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2a758d0usize)as*mut u8,();
181(HubWeaponShopSequence)__receiver)
182 }
183 }
184 #[doc = "`DestroyShopUnitSelectMenu()` overload"]
185 fn destroy_shop_unit_select_menu(self) -> () {
186 unsafe {
187 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x2a75b60usize)as*mut u8,();
189(HubWeaponShopSequence)__receiver)
190 }
191 }
192 #[doc = "`CreateWeaponShopBuyMenu()` overload"]
193 fn create_weapon_shop_buy_menu(self) -> () {
194 unsafe {
195 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 {
197 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
198 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
199 panic!(
200 "unity: virtual slot {}
201 out of range (vtable len {}
202) on the runtime class behind {}
203 (method `{}
204`)",
205 19usize,
206 __vt.len(),
207 <HubWeaponShopSequence as ::unity::ClassIdentity>::NAME,
208 "CreateWeaponShopBuyMenu",
209 )
210 });
211 let __inner: extern "C" fn(HubWeaponShopSequence, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
212 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
213 __inner(__receiver, __mi)
214 }
215 }
216 }
217 #[doc = "`DestroyWeaponShopBuyMenu()` overload"]
218 fn destroy_weapon_shop_buy_menu(self) -> () {
219 unsafe {
220 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x2a75d70usize)as*mut u8,();
222(HubWeaponShopSequence)__receiver)
223 }
224 }
225 #[doc = "`CreateWeaponShopSellMenu()` overload"]
226 fn create_weapon_shop_sell_menu(self) -> () {
227 unsafe {
228 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x2a75db0usize)as*mut u8,();
230(HubWeaponShopSequence)__receiver)
231 }
232 }
233 #[doc = "`DestroyWeaponShopSellMenu()` overload"]
234 fn destroy_weapon_shop_sell_menu(self) -> () {
235 unsafe {
236 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x2a75f80usize)as*mut u8,();
238(HubWeaponShopSequence)__receiver)
239 }
240 }
241 #[doc = "`EndSequence()` overload"]
242 fn end_sequence(self) -> () {
243 unsafe {
244 let __receiver = <HubWeaponShopSequence as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x2a75fc0usize)as*mut u8,();
246(HubWeaponShopSequence)__receiver)
247 }
248 }
249}
250
251#[cfg(feature = "app-hubweaponshopsequence")]
252impl<__T: IHubWeaponShopSequence> IHubWeaponShopSequenceMethods for __T {}
253
254#[cfg(feature = "app-hubweaponshopsequence")]
255impl HubWeaponShopSequence {
256 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
258 }
259
260 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
262 }
263
264 pub fn create_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
266 }
267
268 pub fn load_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
270 }
271
272 pub fn is_loading_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
274 }
275
276 pub fn start_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
278 }
279
280 pub fn create_weapon_shop_top_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
282 }
283
284 pub fn create_shop_unit_select_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
286 }
287
288 pub fn destroy_shop_unit_select_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
290 }
291
292 pub fn create_weapon_shop_buy_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
294 }
295
296 pub fn destroy_weapon_shop_buy_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
298 }
299
300 pub fn create_weapon_shop_sell_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
302 }
303
304 pub fn destroy_weapon_shop_sell_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
306 }
307
308 pub fn end_sequence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
310 }
311}
312
313#[cfg(feature = "app-hubweaponshopsequence")]
314impl HubWeaponShopSequence {
315 #[doc = "Direct (non-virtual) call to `HubWeaponShopSequence`'s own `CreateWeaponShopTopMenu`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
316 pub unsafe fn create_weapon_shop_top_menu(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
317 let __mi = Self::create_weapon_shop_top_menu_method_info();
318 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
319 __inner(this.into(), ::core::option::Option::None)
320 }
321
322 #[doc = "Direct (non-virtual) call to `HubWeaponShopSequence`'s own `CreateWeaponShopBuyMenu`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
323 pub unsafe fn create_weapon_shop_buy_menu(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
324 let __mi = Self::create_weapon_shop_buy_menu_method_info();
325 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
326 __inner(this.into(), ::core::option::Option::None)
327 }
328}
329
330#[cfg(feature = "app-hubweaponshopsequence")]
331impl HubWeaponShopSequence {
332 #[doc = "`.ctor()` — no args"]
333 pub fn new() -> Self {
334 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
335 panic!(
336 "{}
337::{}
338 failed to instantiate",
339 ::core::stringify!(HubWeaponShopSequence),
340 ::core::stringify!(new),
341 )
342 });
343 <Self as IHubWeaponShopSequenceMethods>::ctor(this);
344 this
345 }
346}
347
348#[cfg(feature = "app-hubweaponshopsequence")]
349#[doc(hidden)]
350pub mod prelude {
351 pub use super::{HubWeaponShopSequence, HubWeaponShopSequence_Label2, IHubWeaponShopSequence, IHubWeaponShopSequenceMethods};
352 #[cfg(feature = "app-procinst")]
353 pub use crate::app::procinst::IProcInstMethods;
354 #[cfg(feature = "system-object")]
355 pub use crate::system::object::IObjectMethods;
356 #[cfg(feature = "system-enum")]
357 pub use crate::system::r#enum::IEnumMethods;
358 #[cfg(feature = "system-valuetype")]
359 pub use crate::system::valuetype::IValueTypeMethods;
360 pub use crate::{
361 app::procinst::IProcInst,
362 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
363 };
364}