1#[cfg(feature = "app-weaponshopbuymenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 procinst::{IProcInst, ProcInst},
12 },
13 system::{
14 delegate::{Delegate, IDelegate},
15 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16 object::{IObject, Object},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu_RequestCloseEventHandler.md"))]
21 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu.RequestCloseEventHandler")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct WeaponShopBuyMenu_RequestCloseEventHandler {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu_SelectEventHandler.md"))]
26 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu.SelectEventHandler")]
27 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
28 pub struct WeaponShopBuyMenu_SelectEventHandler {}
29
30 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu_ChangeUnitToPrevEventHandler.md"))]
31 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu.ChangeUnitToPrevEventHandler")]
32 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
33 pub struct WeaponShopBuyMenu_ChangeUnitToPrevEventHandler {}
34
35 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu_DecideEventHandler.md"))]
36 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu.DecideEventHandler")]
37 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
38 pub struct WeaponShopBuyMenu_DecideEventHandler {}
39
40 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler.md"))]
41 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu.SwitchDetailDisplaywayEventHandler")]
42 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
43 pub struct WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler {}
44
45 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu_ChangeUnitToNextEventHandler.md"))]
46 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu.ChangeUnitToNextEventHandler")]
47 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
48 pub struct WeaponShopBuyMenu_ChangeUnitToNextEventHandler {}
49
50 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuymenu/WeaponShopBuyMenu.md"))]
51 #[::unity::class(namespace = "App", name = "WeaponShopBuyMenu")]
52 #[parent(crate::app::basicmenu::BasicMenu)]
53 pub struct WeaponShopBuyMenu {
54 #[offset(200)]
55 #[rename(name = "m_ShopContentArray")]
56 pub m_shop_content_array: ::unity::Array<crate::app::shopcontent::ShopContent>,
57 #[offset(208)]
58 #[rename(name = "m_Kind")]
59 pub m_kind: crate::app::itemdata::ItemData_Kinds,
60 #[offset(216)]
61 #[rename(name = "m_Selects")]
62 pub m_selects: ::unity::Array<crate::app::basicmenuselect::BasicMenuSelect>,
63 #[offset(224)]
64 #[rename(name = "m_RequestCloseEventHandler")]
65 pub m_request_close_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler,
66 #[offset(232)]
67 #[rename(name = "m_Unit")]
68 pub m_unit: crate::app::unit::Unit,
69 #[offset(240)]
70 #[rename(name = "m_SelectEventHandler")]
71 pub m_select_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler,
72 #[offset(248)]
73 #[rename(name = "m_DecideEventHandler")]
74 pub m_decide_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler,
75 #[offset(256)]
76 #[rename(name = "m_ChangeUnitToPrevEventHandler")]
77 pub m_change_unit_to_prev_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler,
78 #[offset(264)]
79 #[rename(name = "m_ChangeUnitToNextEventHandler")]
80 pub m_change_unit_to_next_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler,
81 #[offset(272)]
82 #[rename(name = "m_SwitchDetailDisplaywayEventHandler")]
83 pub m_switch_detail_displayway_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler,
84 }
85}
86
87#[cfg(feature = "app-weaponshopbuymenu-types")]
88pub use __types::*;
89
90#[cfg(feature = "app-weaponshopbuymenu")]
91pub trait IWeaponShopBuyMenu_RequestCloseEventHandlerMethods: IWeaponShopBuyMenu_RequestCloseEventHandler {
92 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
93 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
94 unsafe {
95 let __receiver = <WeaponShopBuyMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
96 <Self as ::unity::SystemObject>::as_instance(self),
97 );
98 ::unity::il2cpp_call!((::unity::module_base()+0x1b2b3c0usize)as*mut u8,();
99(WeaponShopBuyMenu_RequestCloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
100 }
101 }
102 #[doc = "`Invoke()` overload"]
103 fn invoke(self) -> () {
104 unsafe {
105 let __receiver = <WeaponShopBuyMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
106 <Self as ::unity::SystemObject>::as_instance(self),
107 );
108 {
109 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
110 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
111 panic!(
112 "unity: virtual slot {}
113 out of range (vtable len {}
114) on the runtime class behind {}
115 (method `{}
116`)",
117 13usize,
118 __vt.len(),
119 <WeaponShopBuyMenu_RequestCloseEventHandler as ::unity::ClassIdentity>::NAME,
120 "Invoke",
121 )
122 });
123 let __inner: extern "C" fn(WeaponShopBuyMenu_RequestCloseEventHandler, ::unity::OptionalMethod) -> () =
124 ::core::mem::transmute(__vi.method_ptr);
125 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126 __inner(__receiver, __mi)
127 }
128 }
129 }
130}
131
132#[cfg(feature = "app-weaponshopbuymenu")]
133impl<__T: IWeaponShopBuyMenu_RequestCloseEventHandler> IWeaponShopBuyMenu_RequestCloseEventHandlerMethods for __T {}
134
135#[cfg(feature = "app-weaponshopbuymenu")]
136impl WeaponShopBuyMenu_RequestCloseEventHandler {
137 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
139 }
140
141 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
143 }
144}
145
146#[cfg(feature = "app-weaponshopbuymenu")]
147impl WeaponShopBuyMenu_RequestCloseEventHandler {
148 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu_RequestCloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
150 let __mi = Self::invoke_method_info();
151 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
152 __inner(this.into(), ::core::option::Option::None)
153 }
154}
155
156#[cfg(feature = "app-weaponshopbuymenu")]
157impl WeaponShopBuyMenu_RequestCloseEventHandler {
158 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
159 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
160 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
161 panic!(
162 "{}
163::{}
164 failed to instantiate",
165 ::core::stringify!(WeaponShopBuyMenu_RequestCloseEventHandler),
166 ::core::stringify!(new),
167 )
168 });
169 <Self as IWeaponShopBuyMenu_RequestCloseEventHandlerMethods>::ctor(this, object, method);
170 this
171 }
172}
173
174#[cfg(feature = "app-weaponshopbuymenu")]
175pub trait IWeaponShopBuyMenu_SelectEventHandlerMethods: IWeaponShopBuyMenu_SelectEventHandler {
176 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
177 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
178 unsafe {
179 let __receiver = <WeaponShopBuyMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
180 <Self as ::unity::SystemObject>::as_instance(self),
181 );
182 ::unity::il2cpp_call!((::unity::module_base()+0x1b2b630usize)as*mut u8,();
183(WeaponShopBuyMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
184 }
185 }
186 #[doc = "`Invoke(crate::app::unititem::UnitItem)` overload"]
187 fn invoke(self, unit: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
188 unsafe {
189 let __receiver = <WeaponShopBuyMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
190 <Self as ::unity::SystemObject>::as_instance(self),
191 );
192 {
193 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
194 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
195 panic!(
196 "unity: virtual slot {}
197 out of range (vtable len {}
198) on the runtime class behind {}
199 (method `{}
200`)",
201 13usize,
202 __vt.len(),
203 <WeaponShopBuyMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
204 "Invoke",
205 )
206 });
207 let __inner: extern "C" fn(WeaponShopBuyMenu_SelectEventHandler, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
208 ::core::mem::transmute(__vi.method_ptr);
209 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
210 __inner(__receiver, ::core::convert::Into::into(unit), __mi)
211 }
212 }
213 }
214}
215
216#[cfg(feature = "app-weaponshopbuymenu")]
217impl<__T: IWeaponShopBuyMenu_SelectEventHandler> IWeaponShopBuyMenu_SelectEventHandlerMethods for __T {}
218
219#[cfg(feature = "app-weaponshopbuymenu")]
220impl WeaponShopBuyMenu_SelectEventHandler {
221 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
223 }
224
225 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
227 }
228}
229
230#[cfg(feature = "app-weaponshopbuymenu")]
231impl WeaponShopBuyMenu_SelectEventHandler {
232 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
233 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unititem::UnitItem) -> () {
234 let __mi = Self::invoke_method_info();
235 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
236 ::core::mem::transmute(__mi.method_ptr);
237 __inner(this.into(), unit, ::core::option::Option::None)
238 }
239}
240
241#[cfg(feature = "app-weaponshopbuymenu")]
242impl WeaponShopBuyMenu_SelectEventHandler {
243 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
244 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
245 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
246 panic!(
247 "{}
248::{}
249 failed to instantiate",
250 ::core::stringify!(WeaponShopBuyMenu_SelectEventHandler),
251 ::core::stringify!(new),
252 )
253 });
254 <Self as IWeaponShopBuyMenu_SelectEventHandlerMethods>::ctor(this, object, method);
255 this
256 }
257}
258
259#[cfg(feature = "app-weaponshopbuymenu")]
260pub trait IWeaponShopBuyMenu_ChangeUnitToPrevEventHandlerMethods: IWeaponShopBuyMenu_ChangeUnitToPrevEventHandler {
261 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
262 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
263 unsafe {
264 let __receiver = <WeaponShopBuyMenu_ChangeUnitToPrevEventHandler as ::unity::FromIlInstance>::from_il_instance(
265 <Self as ::unity::SystemObject>::as_instance(self),
266 );
267 ::unity::il2cpp_call!((::unity::module_base()+0x1b2ac20usize)as*mut u8,();
268(WeaponShopBuyMenu_ChangeUnitToPrevEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
269 }
270 }
271 #[doc = "`Invoke(crate::app::unititem::UnitItem)` overload"]
272 fn invoke(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
273 unsafe {
274 let __receiver = <WeaponShopBuyMenu_ChangeUnitToPrevEventHandler as ::unity::FromIlInstance>::from_il_instance(
275 <Self as ::unity::SystemObject>::as_instance(self),
276 );
277 {
278 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
279 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
280 panic!(
281 "unity: virtual slot {}
282 out of range (vtable len {}
283) on the runtime class behind {}
284 (method `{}
285`)",
286 13usize,
287 __vt.len(),
288 <WeaponShopBuyMenu_ChangeUnitToPrevEventHandler as ::unity::ClassIdentity>::NAME,
289 "Invoke",
290 )
291 });
292 let __inner: extern "C" fn(
293 WeaponShopBuyMenu_ChangeUnitToPrevEventHandler,
294 crate::app::unititem::UnitItem,
295 ::unity::OptionalMethod,
296 ) -> () = ::core::mem::transmute(__vi.method_ptr);
297 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
298 __inner(__receiver, ::core::convert::Into::into(unit_item), __mi)
299 }
300 }
301 }
302}
303
304#[cfg(feature = "app-weaponshopbuymenu")]
305impl<__T: IWeaponShopBuyMenu_ChangeUnitToPrevEventHandler> IWeaponShopBuyMenu_ChangeUnitToPrevEventHandlerMethods for __T {}
306
307#[cfg(feature = "app-weaponshopbuymenu")]
308impl WeaponShopBuyMenu_ChangeUnitToPrevEventHandler {
309 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
311 }
312
313 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
315 }
316}
317
318#[cfg(feature = "app-weaponshopbuymenu")]
319impl WeaponShopBuyMenu_ChangeUnitToPrevEventHandler {
320 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu_ChangeUnitToPrevEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
321 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit_item: crate::app::unititem::UnitItem) -> () {
322 let __mi = Self::invoke_method_info();
323 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
324 ::core::mem::transmute(__mi.method_ptr);
325 __inner(this.into(), unit_item, ::core::option::Option::None)
326 }
327}
328
329#[cfg(feature = "app-weaponshopbuymenu")]
330impl WeaponShopBuyMenu_ChangeUnitToPrevEventHandler {
331 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
332 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
333 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
334 panic!(
335 "{}
336::{}
337 failed to instantiate",
338 ::core::stringify!(WeaponShopBuyMenu_ChangeUnitToPrevEventHandler),
339 ::core::stringify!(new),
340 )
341 });
342 <Self as IWeaponShopBuyMenu_ChangeUnitToPrevEventHandlerMethods>::ctor(this, object, method);
343 this
344 }
345}
346
347#[cfg(feature = "app-weaponshopbuymenu")]
348pub trait IWeaponShopBuyMenu_DecideEventHandlerMethods: IWeaponShopBuyMenu_DecideEventHandler {
349 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
350 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
351 unsafe {
352 let __receiver = <WeaponShopBuyMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
353 <Self as ::unity::SystemObject>::as_instance(self),
354 );
355 ::unity::il2cpp_call!((::unity::module_base()+0x1b2afe0usize)as*mut u8,();
356(WeaponShopBuyMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
357 }
358 }
359 #[doc = "`Invoke(crate::app::itemdata::ItemData)` overload"]
360 fn invoke(self, item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> bool {
361 unsafe {
362 let __receiver = <WeaponShopBuyMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
363 <Self as ::unity::SystemObject>::as_instance(self),
364 );
365 {
366 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
368 panic!(
369 "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374 13usize,
375 __vt.len(),
376 <WeaponShopBuyMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
377 "Invoke",
378 )
379 });
380 let __inner: extern "C" fn(WeaponShopBuyMenu_DecideEventHandler, crate::app::itemdata::ItemData, ::unity::OptionalMethod) -> bool =
381 ::core::mem::transmute(__vi.method_ptr);
382 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
383 __inner(__receiver, ::core::convert::Into::into(item_data), __mi)
384 }
385 }
386 }
387}
388
389#[cfg(feature = "app-weaponshopbuymenu")]
390impl<__T: IWeaponShopBuyMenu_DecideEventHandler> IWeaponShopBuyMenu_DecideEventHandlerMethods for __T {}
391
392#[cfg(feature = "app-weaponshopbuymenu")]
393impl WeaponShopBuyMenu_DecideEventHandler {
394 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
396 }
397
398 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
400 }
401}
402
403#[cfg(feature = "app-weaponshopbuymenu")]
404impl WeaponShopBuyMenu_DecideEventHandler {
405 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
406 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, item_data: crate::app::itemdata::ItemData) -> bool {
407 let __mi = Self::invoke_method_info();
408 let __inner: extern "C" fn(::unity::IlInstance, crate::app::itemdata::ItemData, ::unity::OptionalMethod) -> bool =
409 ::core::mem::transmute(__mi.method_ptr);
410 __inner(this.into(), item_data, ::core::option::Option::None)
411 }
412}
413
414#[cfg(feature = "app-weaponshopbuymenu")]
415impl WeaponShopBuyMenu_DecideEventHandler {
416 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
417 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
418 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
419 panic!(
420 "{}
421::{}
422 failed to instantiate",
423 ::core::stringify!(WeaponShopBuyMenu_DecideEventHandler),
424 ::core::stringify!(new),
425 )
426 });
427 <Self as IWeaponShopBuyMenu_DecideEventHandlerMethods>::ctor(this, object, method);
428 this
429 }
430}
431
432#[cfg(feature = "app-weaponshopbuymenu")]
433pub trait IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandlerMethods: IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler {
434 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
435 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
436 unsafe {
437 let __receiver = <WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler as ::unity::FromIlInstance>::from_il_instance(
438 <Self as ::unity::SystemObject>::as_instance(self),
439 );
440 ::unity::il2cpp_call!((::unity::module_base()+0x1b2b9f0usize)as*mut u8,();
441(WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
442 }
443 }
444 #[doc = "`Invoke()` overload"]
445 fn invoke(self) -> () {
446 unsafe {
447 let __receiver = <WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler as ::unity::FromIlInstance>::from_il_instance(
448 <Self as ::unity::SystemObject>::as_instance(self),
449 );
450 {
451 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
452 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
453 panic!(
454 "unity: virtual slot {}
455 out of range (vtable len {}
456) on the runtime class behind {}
457 (method `{}
458`)",
459 13usize,
460 __vt.len(),
461 <WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler as ::unity::ClassIdentity>::NAME,
462 "Invoke",
463 )
464 });
465 let __inner: extern "C" fn(WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler, ::unity::OptionalMethod) -> () =
466 ::core::mem::transmute(__vi.method_ptr);
467 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
468 __inner(__receiver, __mi)
469 }
470 }
471 }
472}
473
474#[cfg(feature = "app-weaponshopbuymenu")]
475impl<__T: IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler> IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandlerMethods for __T {}
476
477#[cfg(feature = "app-weaponshopbuymenu")]
478impl WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler {
479 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
481 }
482
483 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
485 }
486}
487
488#[cfg(feature = "app-weaponshopbuymenu")]
489impl WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler {
490 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
491 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
492 let __mi = Self::invoke_method_info();
493 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
494 __inner(this.into(), ::core::option::Option::None)
495 }
496}
497
498#[cfg(feature = "app-weaponshopbuymenu")]
499impl WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler {
500 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
501 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
502 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
503 panic!(
504 "{}
505::{}
506 failed to instantiate",
507 ::core::stringify!(WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler),
508 ::core::stringify!(new),
509 )
510 });
511 <Self as IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandlerMethods>::ctor(this, object, method);
512 this
513 }
514}
515
516#[cfg(feature = "app-weaponshopbuymenu")]
517pub trait IWeaponShopBuyMenu_ChangeUnitToNextEventHandlerMethods: IWeaponShopBuyMenu_ChangeUnitToNextEventHandler {
518 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
519 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
520 unsafe {
521 let __receiver = <WeaponShopBuyMenu_ChangeUnitToNextEventHandler as ::unity::FromIlInstance>::from_il_instance(
522 <Self as ::unity::SystemObject>::as_instance(self),
523 );
524 ::unity::il2cpp_call!((::unity::module_base()+0x1b2a860usize)as*mut u8,();
525(WeaponShopBuyMenu_ChangeUnitToNextEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
526 }
527 }
528 #[doc = "`Invoke(crate::app::unititem::UnitItem)` overload"]
529 fn invoke(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
530 unsafe {
531 let __receiver = <WeaponShopBuyMenu_ChangeUnitToNextEventHandler as ::unity::FromIlInstance>::from_il_instance(
532 <Self as ::unity::SystemObject>::as_instance(self),
533 );
534 {
535 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
536 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
537 panic!(
538 "unity: virtual slot {}
539 out of range (vtable len {}
540) on the runtime class behind {}
541 (method `{}
542`)",
543 13usize,
544 __vt.len(),
545 <WeaponShopBuyMenu_ChangeUnitToNextEventHandler as ::unity::ClassIdentity>::NAME,
546 "Invoke",
547 )
548 });
549 let __inner: extern "C" fn(
550 WeaponShopBuyMenu_ChangeUnitToNextEventHandler,
551 crate::app::unititem::UnitItem,
552 ::unity::OptionalMethod,
553 ) -> () = ::core::mem::transmute(__vi.method_ptr);
554 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
555 __inner(__receiver, ::core::convert::Into::into(unit_item), __mi)
556 }
557 }
558 }
559}
560
561#[cfg(feature = "app-weaponshopbuymenu")]
562impl<__T: IWeaponShopBuyMenu_ChangeUnitToNextEventHandler> IWeaponShopBuyMenu_ChangeUnitToNextEventHandlerMethods for __T {}
563
564#[cfg(feature = "app-weaponshopbuymenu")]
565impl WeaponShopBuyMenu_ChangeUnitToNextEventHandler {
566 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
568 }
569
570 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
572 }
573}
574
575#[cfg(feature = "app-weaponshopbuymenu")]
576impl WeaponShopBuyMenu_ChangeUnitToNextEventHandler {
577 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu_ChangeUnitToNextEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
578 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit_item: crate::app::unititem::UnitItem) -> () {
579 let __mi = Self::invoke_method_info();
580 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unititem::UnitItem, ::unity::OptionalMethod) -> () =
581 ::core::mem::transmute(__mi.method_ptr);
582 __inner(this.into(), unit_item, ::core::option::Option::None)
583 }
584}
585
586#[cfg(feature = "app-weaponshopbuymenu")]
587impl WeaponShopBuyMenu_ChangeUnitToNextEventHandler {
588 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
589 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
590 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
591 panic!(
592 "{}
593::{}
594 failed to instantiate",
595 ::core::stringify!(WeaponShopBuyMenu_ChangeUnitToNextEventHandler),
596 ::core::stringify!(new),
597 )
598 });
599 <Self as IWeaponShopBuyMenu_ChangeUnitToNextEventHandlerMethods>::ctor(this, object, method);
600 this
601 }
602}
603
604#[cfg(feature = "app-weaponshopbuymenu")]
605impl WeaponShopBuyMenu {
606 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::unit::Unit, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler)` overload"]
607 pub fn create_bind(
608 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
609 menu_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
610 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
611 select_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler>,
612 decide_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler>,
613 request_close_menu_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler>,
614 change_unit_to_prev_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler>,
615 change_unit_to_next_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler>,
616 switch_detail_display_way_event_handler: impl ::core::convert::Into<
617 crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler,
618 >,
619 ) -> crate::app::weaponshopbuymenu::WeaponShopBuyMenu {
620 unsafe {
621 ::unity::il2cpp_call!((::unity::module_base()+0x21cb480usize)as*mut u8,crate::app::weaponshopbuymenu::WeaponShopBuyMenu;
622(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(menu_object),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_menu_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler)::core::convert::Into::into(change_unit_to_prev_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler)::core::convert::Into::into(change_unit_to_next_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler)::core::convert::Into::into(switch_detail_display_way_event_handler))
623 }
624 }
625
626 #[doc = "`CreateMenuItem(::unity::Array<crate::app::shopcontent::ShopContent>, crate::app::itemdata::ItemData_Kinds, crate::app::unit::Unit, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler)` overload"]
627 pub fn create_menu_item(
628 shop_content_array: impl ::core::convert::Into<::unity::Array<crate::app::shopcontent::ShopContent>>,
629 kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
630 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
631 select_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler>,
632 decide_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler>,
633 change_unit_to_prev_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler>,
634 change_unit_to_next_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler>,
635 ) -> crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> {
636 unsafe {
637 ::unity::il2cpp_call!((::unity::module_base()+0x21cb730usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
638(::unity::Array<crate::app::shopcontent::ShopContent>)::core::convert::Into::into(shop_content_array),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler)::core::convert::Into::into(change_unit_to_prev_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler)::core::convert::Into::into(change_unit_to_next_event_handler))
639 }
640 }
641
642 #[doc = "`Filter(::unity::Array<crate::app::shopcontent::ShopContent>, crate::app::itemdata::ItemData_Kinds)` overload"]
643 pub fn filter(
644 shop_content_array: impl ::core::convert::Into<::unity::Array<crate::app::shopcontent::ShopContent>>,
645 kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
646 ) -> crate::system::collections::generic::list_1::List_1<crate::app::shopcontent::ShopContent> {
647 unsafe {
648 ::unity::il2cpp_call!((::unity::module_base()+0x21cc140usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::shopcontent::ShopContent> ;
649(::unity::Array<crate::app::shopcontent::ShopContent>)::core::convert::Into::into(shop_content_array),(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(kind))
650 }
651 }
652}
653
654#[cfg(feature = "app-weaponshopbuymenu")]
655pub trait IWeaponShopBuyMenuMethods: IWeaponShopBuyMenu {
656 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::weaponshopbuymenucontent::WeaponShopBuyMenuContent, ::unity::Array<crate::app::shopcontent::ShopContent>, crate::app::unit::Unit, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler)` overload"]
657 fn ctor(
658 self,
659 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
660 menu_content: impl ::core::convert::Into<crate::app::weaponshopbuymenucontent::WeaponShopBuyMenuContent>,
661 shop_content_array: impl ::core::convert::Into<::unity::Array<crate::app::shopcontent::ShopContent>>,
662 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
663 select_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler>,
664 decide_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler>,
665 request_close_menu_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler>,
666 change_unit_to_prev_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler>,
667 change_unit_to_next_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler>,
668 switch_detail_displayway_event_handler: impl ::core::convert::Into<
669 crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler,
670 >,
671 ) -> () {
672 unsafe {
673 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
674 ::unity::il2cpp_call!((::unity::module_base()+0x21cb9e0usize)as*mut u8,();
675(WeaponShopBuyMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::weaponshopbuymenucontent::WeaponShopBuyMenuContent)::core::convert::Into::into(menu_content),(::unity::Array<crate::app::shopcontent::ShopContent>)::core::convert::Into::into(shop_content_array),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_menu_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler)::core::convert::Into::into(change_unit_to_prev_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler)::core::convert::Into::into(change_unit_to_next_event_handler),(crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler)::core::convert::Into::into(switch_detail_displayway_event_handler))
676 }
677 }
678 #[doc = "`RebuildMenu(crate::app::unit::Unit, bool, bool)` overload"]
679 fn rebuild_menu(
680 self,
681 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
682 keep_select: impl ::core::convert::Into<bool>,
683 setup_shopdata: impl ::core::convert::Into<bool>,
684 ) -> () {
685 unsafe {
686 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
687 ::unity::il2cpp_call!((::unity::module_base()+0x21cbf20usize)as*mut u8,();
688(WeaponShopBuyMenu)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(bool)::core::convert::Into::into(keep_select),(bool)::core::convert::Into::into(setup_shopdata))
689 }
690 }
691 #[doc = "`RebuildMenu(bool, bool)` overload"]
692 fn rebuild_menu_2(self, keep_select: impl ::core::convert::Into<bool>, setup_shopdata: impl ::core::convert::Into<bool>) -> () {
693 unsafe {
694 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
695 ::unity::il2cpp_call!((::unity::module_base()+0x21cbf60usize)as*mut u8,();
696(WeaponShopBuyMenu)__receiver,(bool)::core::convert::Into::into(keep_select),(bool)::core::convert::Into::into(setup_shopdata))
697 }
698 }
699 #[doc = "`AfterBuild()` overload"]
700 fn after_build(self) -> () {
701 unsafe {
702 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
703 {
704 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
705 let __vi = *__vt.get(25usize).unwrap_or_else(|| {
706 panic!(
707 "unity: virtual slot {}
708 out of range (vtable len {}
709) on the runtime class behind {}
710 (method `{}
711`)",
712 25usize,
713 __vt.len(),
714 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
715 "AfterBuild",
716 )
717 });
718 let __inner: extern "C" fn(WeaponShopBuyMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
719 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
720 __inner(__receiver, __mi)
721 }
722 }
723 }
724 #[doc = "`GetName()` overload"]
725 fn get_name(self) -> ::unity::Il2CppString {
726 unsafe {
727 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
728 {
729 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
730 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
731 panic!(
732 "unity: virtual slot {}
733 out of range (vtable len {}
734) on the runtime class behind {}
735 (method `{}
736`)",
737 30usize,
738 __vt.len(),
739 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
740 "GetName",
741 )
742 });
743 let __inner: extern "C" fn(WeaponShopBuyMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
744 ::core::mem::transmute(__vi.method_ptr);
745 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
746 __inner(__receiver, __mi)
747 }
748 }
749 }
750 #[doc = "`GetSelect()` overload"]
751 fn get_select(self) -> crate::app::basicmenuselect::BasicMenuSelect {
752 unsafe {
753 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
754 ::unity::il2cpp_call!((::unity::module_base()+0x21cc0d0usize)as*mut u8,crate::app::basicmenuselect::BasicMenuSelect;
755(WeaponShopBuyMenu)__receiver)
756 }
757 }
758 #[doc = "`KeyLeft(bool)` overload"]
759 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
760 unsafe {
761 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
762 {
763 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
764 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
765 panic!(
766 "unity: virtual slot {}
767 out of range (vtable len {}
768) on the runtime class behind {}
769 (method `{}
770`)",
771 42usize,
772 __vt.len(),
773 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
774 "KeyLeft",
775 )
776 });
777 let __inner: extern "C" fn(WeaponShopBuyMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
778 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
779 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
780 }
781 }
782 }
783 #[doc = "`KeyRight(bool)` overload"]
784 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
785 unsafe {
786 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
787 {
788 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
789 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
790 panic!(
791 "unity: virtual slot {}
792 out of range (vtable len {}
793) on the runtime class behind {}
794 (method `{}
795`)",
796 43usize,
797 __vt.len(),
798 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
799 "KeyRight",
800 )
801 });
802 let __inner: extern "C" fn(WeaponShopBuyMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
803 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
804 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
805 }
806 }
807 }
808 #[doc = "`ACall()` overload"]
809 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
810 unsafe {
811 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
812 {
813 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
814 let __vi = *__vt.get(50usize).unwrap_or_else(|| {
815 panic!(
816 "unity: virtual slot {}
817 out of range (vtable len {}
818) on the runtime class behind {}
819 (method `{}
820`)",
821 50usize,
822 __vt.len(),
823 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
824 "ACall",
825 )
826 });
827 let __inner: extern "C" fn(WeaponShopBuyMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
828 ::core::mem::transmute(__vi.method_ptr);
829 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
830 __inner(__receiver, __mi)
831 }
832 }
833 }
834 #[doc = "`BCall()` overload"]
835 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
836 unsafe {
837 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
838 {
839 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
840 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
841 panic!(
842 "unity: virtual slot {}
843 out of range (vtable len {}
844) on the runtime class behind {}
845 (method `{}
846`)",
847 51usize,
848 __vt.len(),
849 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
850 "BCall",
851 )
852 });
853 let __inner: extern "C" fn(WeaponShopBuyMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
854 ::core::mem::transmute(__vi.method_ptr);
855 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
856 __inner(__receiver, __mi)
857 }
858 }
859 }
860 #[doc = "`XCall()` overload"]
861 fn x_call(self) -> crate::app::basicmenu::BasicMenu_Result {
862 unsafe {
863 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
864 {
865 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
866 let __vi = *__vt.get(52usize).unwrap_or_else(|| {
867 panic!(
868 "unity: virtual slot {}
869 out of range (vtable len {}
870) on the runtime class behind {}
871 (method `{}
872`)",
873 52usize,
874 __vt.len(),
875 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
876 "XCall",
877 )
878 });
879 let __inner: extern "C" fn(WeaponShopBuyMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
880 ::core::mem::transmute(__vi.method_ptr);
881 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
882 __inner(__receiver, __mi)
883 }
884 }
885 }
886 #[doc = "`CustomCall()` overload"]
887 fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
888 unsafe {
889 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
890 {
891 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
892 let __vi = *__vt.get(58usize).unwrap_or_else(|| {
893 panic!(
894 "unity: virtual slot {}
895 out of range (vtable len {}
896) on the runtime class behind {}
897 (method `{}
898`)",
899 58usize,
900 __vt.len(),
901 <WeaponShopBuyMenu as ::unity::ClassIdentity>::NAME,
902 "CustomCall",
903 )
904 });
905 let __inner: extern "C" fn(WeaponShopBuyMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
906 ::core::mem::transmute(__vi.method_ptr);
907 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
908 __inner(__receiver, __mi)
909 }
910 }
911 }
912 #[doc = "`OnDoneToBuy()` overload"]
913 fn on_done_to_buy(self) -> () {
914 unsafe {
915 let __receiver = <WeaponShopBuyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
916 ::unity::il2cpp_call!((::unity::module_base()+0x21cd0a0usize)as*mut u8,();
917(WeaponShopBuyMenu)__receiver)
918 }
919 }
920}
921
922#[cfg(feature = "app-weaponshopbuymenu")]
923impl<__T: IWeaponShopBuyMenu> IWeaponShopBuyMenuMethods for __T {}
924
925#[cfg(feature = "app-weaponshopbuymenu")]
926impl WeaponShopBuyMenu {
927 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
928 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
929 }
930
931 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
932 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
933 }
934
935 pub fn rebuild_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
936 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
937 }
938
939 pub fn rebuild_menu_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
940 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
941 }
942
943 pub fn create_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
944 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
945 }
946
947 pub fn filter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
948 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
949 }
950
951 pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
952 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
953 }
954
955 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
956 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
957 }
958
959 pub fn get_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
960 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
961 }
962
963 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
964 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
965 }
966
967 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
968 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
969 }
970
971 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
972 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
973 }
974
975 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
976 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
977 }
978
979 pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
980 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
981 }
982
983 pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
984 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
985 }
986
987 pub fn on_done_to_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
988 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
989 }
990}
991
992#[cfg(feature = "app-weaponshopbuymenu")]
993impl WeaponShopBuyMenu {
994 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
995 pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
996 let __mi = Self::after_build_method_info();
997 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
998 __inner(this.into(), ::core::option::Option::None)
999 }
1000
1001 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1002 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
1003 let __mi = Self::get_name_method_info();
1004 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
1005 __inner(this.into(), ::core::option::Option::None)
1006 }
1007
1008 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1009 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
1010 let __mi = Self::key_left_method_info();
1011 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1012 __inner(this.into(), is_trigger, ::core::option::Option::None)
1013 }
1014
1015 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1016 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
1017 let __mi = Self::key_right_method_info();
1018 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1019 __inner(this.into(), is_trigger, ::core::option::Option::None)
1020 }
1021
1022 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1023 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
1024 let __mi = Self::a_call_method_info();
1025 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
1026 ::core::mem::transmute(__mi.method_ptr);
1027 __inner(this.into(), ::core::option::Option::None)
1028 }
1029
1030 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1031 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
1032 let __mi = Self::b_call_method_info();
1033 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
1034 ::core::mem::transmute(__mi.method_ptr);
1035 __inner(this.into(), ::core::option::Option::None)
1036 }
1037
1038 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1039 pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
1040 let __mi = Self::x_call_method_info();
1041 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
1042 ::core::mem::transmute(__mi.method_ptr);
1043 __inner(this.into(), ::core::option::Option::None)
1044 }
1045
1046 #[doc = "Direct (non-virtual) call to `WeaponShopBuyMenu`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1047 pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
1048 let __mi = Self::custom_call_method_info();
1049 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
1050 ::core::mem::transmute(__mi.method_ptr);
1051 __inner(this.into(), ::core::option::Option::None)
1052 }
1053}
1054
1055#[cfg(feature = "app-weaponshopbuymenu")]
1056impl WeaponShopBuyMenu {
1057 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::weaponshopbuymenucontent::WeaponShopBuyMenuContent, ::unity::Array<crate::app::shopcontent::ShopContent>, crate::app::unit::Unit, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler, crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler)` — overload selector"]
1058 pub fn new(
1059 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
1060 menu_content: crate::app::weaponshopbuymenucontent::WeaponShopBuyMenuContent,
1061 shop_content_array: ::unity::Array<crate::app::shopcontent::ShopContent>,
1062 unit: crate::app::unit::Unit,
1063 select_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SelectEventHandler,
1064 decide_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_DecideEventHandler,
1065 request_close_menu_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_RequestCloseEventHandler,
1066 change_unit_to_prev_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToPrevEventHandler,
1067 change_unit_to_next_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_ChangeUnitToNextEventHandler,
1068 switch_detail_displayway_event_handler: crate::app::weaponshopbuymenu::WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler,
1069 ) -> Self {
1070 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1071 panic!(
1072 "{}
1073::{}
1074 failed to instantiate",
1075 ::core::stringify!(WeaponShopBuyMenu),
1076 ::core::stringify!(new),
1077 )
1078 });
1079 <Self as IWeaponShopBuyMenuMethods>::ctor(
1080 this,
1081 menu_item_list,
1082 menu_content,
1083 shop_content_array,
1084 unit,
1085 select_event_handler,
1086 decide_event_handler,
1087 request_close_menu_event_handler,
1088 change_unit_to_prev_event_handler,
1089 change_unit_to_next_event_handler,
1090 switch_detail_displayway_event_handler,
1091 );
1092 this
1093 }
1094}
1095
1096#[cfg(feature = "app-weaponshopbuymenu")]
1097#[doc(hidden)]
1098pub mod prelude {
1099 pub use super::{
1100 IWeaponShopBuyMenu, IWeaponShopBuyMenuMethods, IWeaponShopBuyMenu_ChangeUnitToNextEventHandler,
1101 IWeaponShopBuyMenu_ChangeUnitToNextEventHandlerMethods, IWeaponShopBuyMenu_ChangeUnitToPrevEventHandler,
1102 IWeaponShopBuyMenu_ChangeUnitToPrevEventHandlerMethods, IWeaponShopBuyMenu_DecideEventHandler, IWeaponShopBuyMenu_DecideEventHandlerMethods,
1103 IWeaponShopBuyMenu_RequestCloseEventHandler, IWeaponShopBuyMenu_RequestCloseEventHandlerMethods, IWeaponShopBuyMenu_SelectEventHandler,
1104 IWeaponShopBuyMenu_SelectEventHandlerMethods, IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler,
1105 IWeaponShopBuyMenu_SwitchDetailDisplaywayEventHandlerMethods, WeaponShopBuyMenu, WeaponShopBuyMenu_ChangeUnitToNextEventHandler,
1106 WeaponShopBuyMenu_ChangeUnitToPrevEventHandler, WeaponShopBuyMenu_DecideEventHandler, WeaponShopBuyMenu_RequestCloseEventHandler,
1107 WeaponShopBuyMenu_SelectEventHandler, WeaponShopBuyMenu_SwitchDetailDisplaywayEventHandler,
1108 };
1109 #[cfg(feature = "app-basicmenu")]
1110 pub use crate::app::basicmenu::IBasicMenuMethods;
1111 #[cfg(feature = "app-procinst")]
1112 pub use crate::app::procinst::IProcInstMethods;
1113 #[cfg(feature = "system-delegate")]
1114 pub use crate::system::delegate::IDelegateMethods;
1115 #[cfg(feature = "system-multicastdelegate")]
1116 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1117 #[cfg(feature = "system-object")]
1118 pub use crate::system::object::IObjectMethods;
1119 pub use crate::{
1120 app::{basicmenu::IBasicMenu, procinst::IProcInst},
1121 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
1122 };
1123}