Skip to main content

engage/generated/app/
weaponshoptopmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-weaponshoptopmenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicmenu::{BasicMenu, IBasicMenu},
11            basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12            procinst::{IProcInst, ProcInst},
13        },
14        system::{
15            delegate::{Delegate, IDelegate},
16            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17            object::{IObject, Object},
18            r#enum::{Enum, IEnum},
19            valuetype::{IValueType, ValueType},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshoptopmenu/WeaponShopTopMenu_DecideEventHandler.md"))]
24    #[::unity::class(namespace = "App", name = "WeaponShopTopMenu.DecideEventHandler")]
25    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
26    pub struct WeaponShopTopMenu_DecideEventHandler {}
27
28    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshoptopmenu/WeaponShopTopMenu.md"))]
29    #[::unity::class(namespace = "App", name = "WeaponShopTopMenu")]
30    #[parent(crate::app::basicmenu::BasicMenu)]
31    pub struct WeaponShopTopMenu {
32        #[offset(200)]
33        #[rename(name = "m_DecideEventHandler")]
34        pub m_decide_event_handler: crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler,
35    }
36
37    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshoptopmenu/WeaponShopTopMenu_SellMenuItem.md"))]
38    #[::unity::class(namespace = "App", name = "WeaponShopTopMenu.SellMenuItem")]
39    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
40    pub struct WeaponShopTopMenu_SellMenuItem {
41        #[offset(104)]
42        #[rename(name = "m_DecideEventHandler")]
43        pub m_decide_event_handler: crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler,
44    }
45
46    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshoptopmenu/WeaponShopTopMenu_BuyMenuItem.md"))]
47    #[::unity::class(namespace = "App", name = "WeaponShopTopMenu.BuyMenuItem")]
48    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
49    pub struct WeaponShopTopMenu_BuyMenuItem {
50        #[offset(104)]
51        #[rename(name = "m_DecideEventHandler")]
52        pub m_decide_event_handler: crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler,
53    }
54
55    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshoptopmenu/WeaponShopTopMenu_Result2.md"))]
56    #[repr(C)]
57    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
58    pub struct WeaponShopTopMenu_Result2 {
59        pub value: i32,
60    }
61    impl ::unity::ClassIdentity for WeaponShopTopMenu_Result2 {
62        const NAME: &'static str = "WeaponShopTopMenu.Result2";
63        const NAMESPACE: &'static str = "App";
64
65        fn class() -> ::unity::Class {
66            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
67            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
68        }
69    }
70    impl ::unity::IlType for WeaponShopTopMenu_Result2 {
71        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
72            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
73        }
74    }
75    impl WeaponShopTopMenu_Result2 {
76        pub fn buy() -> Self {
77            Self { value: 0 }
78        }
79
80        pub fn sell() -> Self {
81            Self { value: 1 }
82        }
83
84        pub fn end() -> Self {
85            Self { value: 2 }
86        }
87    }
88}
89
90#[cfg(feature = "app-weaponshoptopmenu-types")]
91pub use __types::*;
92
93#[cfg(feature = "app-weaponshoptopmenu")]
94pub trait IWeaponShopTopMenu_DecideEventHandlerMethods: IWeaponShopTopMenu_DecideEventHandler {
95    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
96    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
97        unsafe {
98            let __receiver = <WeaponShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
99                <Self as ::unity::SystemObject>::as_instance(self),
100            );
101            ::unity::il2cpp_call!((::unity::module_base()+0x1b2c620usize)as*mut u8,();
102(WeaponShopTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
103        }
104    }
105    #[doc = "`Invoke(crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2)` overload"]
106    fn invoke(self, result: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2>) -> () {
107        unsafe {
108            let __receiver = <WeaponShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
109                <Self as ::unity::SystemObject>::as_instance(self),
110            );
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
114                    panic!(
115                        "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120                        13usize,
121                        __vt.len(),
122                        <WeaponShopTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
123                        "Invoke",
124                    )
125                });
126                let __inner: extern "C" fn(
127                    WeaponShopTopMenu_DecideEventHandler,
128                    crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2,
129                    ::unity::OptionalMethod,
130                ) -> () = ::core::mem::transmute(__vi.method_ptr);
131                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132                __inner(__receiver, ::core::convert::Into::into(result), __mi)
133            }
134        }
135    }
136}
137
138#[cfg(feature = "app-weaponshoptopmenu")]
139impl<__T: IWeaponShopTopMenu_DecideEventHandler> IWeaponShopTopMenu_DecideEventHandlerMethods for __T {}
140
141#[cfg(feature = "app-weaponshoptopmenu")]
142impl WeaponShopTopMenu_DecideEventHandler {
143    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145    }
146
147    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149    }
150}
151
152#[cfg(feature = "app-weaponshoptopmenu")]
153impl WeaponShopTopMenu_DecideEventHandler {
154    #[doc = "Direct (non-virtual) call to `WeaponShopTopMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
155    pub unsafe fn invoke(
156        this: impl ::core::convert::Into<::unity::IlInstance>,
157        result: crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2,
158    ) -> () {
159        let __mi = Self::invoke_method_info();
160        let __inner: extern "C" fn(::unity::IlInstance, crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2, ::unity::OptionalMethod) -> () =
161            ::core::mem::transmute(__mi.method_ptr);
162        __inner(this.into(), result, ::core::option::Option::None)
163    }
164}
165
166#[cfg(feature = "app-weaponshoptopmenu")]
167impl WeaponShopTopMenu_DecideEventHandler {
168    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
169    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
170        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
171            panic!(
172                "{}
173::{}
174 failed to instantiate",
175                ::core::stringify!(WeaponShopTopMenu_DecideEventHandler),
176                ::core::stringify!(new),
177            )
178        });
179        <Self as IWeaponShopTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
180        this
181    }
182}
183
184#[cfg(feature = "app-weaponshoptopmenu")]
185impl WeaponShopTopMenu {
186    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2, crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` overload"]
187    pub fn create_bind(
188        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
189        initial_selected: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2>,
190        decide_event_handler: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler>,
191    ) -> () {
192        unsafe {
193            ::unity::il2cpp_call!((::unity::module_base()+0x21d31a0usize)as*mut u8,();
194(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
195        }
196    }
197}
198
199#[cfg(feature = "app-weaponshoptopmenu")]
200pub trait IWeaponShopTopMenuMethods: IWeaponShopTopMenu {
201    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shoptopmenucontent::ShopTopMenuContent, crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2, crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` overload"]
202    fn ctor(
203        self,
204        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
205        menu_content: impl ::core::convert::Into<crate::app::shoptopmenucontent::ShopTopMenuContent>,
206        initial_selected: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2>,
207        decide_event_handler: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler>,
208    ) -> () {
209        unsafe {
210            let __receiver = <WeaponShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x21d3380usize)as*mut u8,();
212(WeaponShopTopMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::shoptopmenucontent::ShopTopMenuContent)::core::convert::Into::into(menu_content),(crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
213        }
214    }
215    #[doc = "`GetName()` overload"]
216    fn get_name(self) -> ::unity::Il2CppString {
217        unsafe {
218            let __receiver = <WeaponShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            {
220                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
221                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
222                    panic!(
223                        "unity: virtual slot {}
224 out of range (vtable len {}
225) on the runtime class behind {}
226 (method `{}
227`)",
228                        30usize,
229                        __vt.len(),
230                        <WeaponShopTopMenu as ::unity::ClassIdentity>::NAME,
231                        "GetName",
232                    )
233                });
234                let __inner: extern "C" fn(WeaponShopTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
235                    ::core::mem::transmute(__vi.method_ptr);
236                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
237                __inner(__receiver, __mi)
238            }
239        }
240    }
241    #[doc = "`BCall()` overload"]
242    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
243        unsafe {
244            let __receiver = <WeaponShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            {
246                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
247                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
248                    panic!(
249                        "unity: virtual slot {}
250 out of range (vtable len {}
251) on the runtime class behind {}
252 (method `{}
253`)",
254                        51usize,
255                        __vt.len(),
256                        <WeaponShopTopMenu as ::unity::ClassIdentity>::NAME,
257                        "BCall",
258                    )
259                });
260                let __inner: extern "C" fn(WeaponShopTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
261                    ::core::mem::transmute(__vi.method_ptr);
262                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
263                __inner(__receiver, __mi)
264            }
265        }
266    }
267}
268
269#[cfg(feature = "app-weaponshoptopmenu")]
270impl<__T: IWeaponShopTopMenu> IWeaponShopTopMenuMethods for __T {}
271
272#[cfg(feature = "app-weaponshoptopmenu")]
273impl WeaponShopTopMenu {
274    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
276    }
277
278    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
280    }
281
282    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
284    }
285
286    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
288    }
289}
290
291#[cfg(feature = "app-weaponshoptopmenu")]
292impl WeaponShopTopMenu {
293    #[doc = "Direct (non-virtual) call to `WeaponShopTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
294    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
295        let __mi = Self::get_name_method_info();
296        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
297        __inner(this.into(), ::core::option::Option::None)
298    }
299
300    #[doc = "Direct (non-virtual) call to `WeaponShopTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
301    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
302        let __mi = Self::b_call_method_info();
303        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
304            ::core::mem::transmute(__mi.method_ptr);
305        __inner(this.into(), ::core::option::Option::None)
306    }
307}
308
309#[cfg(feature = "app-weaponshoptopmenu")]
310impl WeaponShopTopMenu {
311    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shoptopmenucontent::ShopTopMenuContent, crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2, crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` — overload selector"]
312    pub fn new(
313        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
314        menu_content: crate::app::shoptopmenucontent::ShopTopMenuContent,
315        initial_selected: crate::app::weaponshoptopmenu::WeaponShopTopMenu_Result2,
316        decide_event_handler: crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler,
317    ) -> Self {
318        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
319            panic!(
320                "{}
321::{}
322 failed to instantiate",
323                ::core::stringify!(WeaponShopTopMenu),
324                ::core::stringify!(new),
325            )
326        });
327        <Self as IWeaponShopTopMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, decide_event_handler);
328        this
329    }
330}
331
332#[cfg(feature = "app-weaponshoptopmenu")]
333pub trait IWeaponShopTopMenu_SellMenuItemMethods: IWeaponShopTopMenu_SellMenuItem {
334    #[doc = "`.ctor(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` overload"]
335    fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler>) -> () {
336        unsafe {
337            let __receiver =
338                <WeaponShopTopMenu_SellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
339            ::unity::il2cpp_call!((::unity::module_base()+0x1b2c6e0usize)as*mut u8,();
340(WeaponShopTopMenu_SellMenuItem)__receiver,(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
341        }
342    }
343    #[doc = "`ACall()` overload"]
344    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
345        unsafe {
346            let __receiver =
347                <WeaponShopTopMenu_SellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348            {
349                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
350                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
351                    panic!(
352                        "unity: virtual slot {}
353 out of range (vtable len {}
354) on the runtime class behind {}
355 (method `{}
356`)",
357                        18usize,
358                        __vt.len(),
359                        <WeaponShopTopMenu_SellMenuItem as ::unity::ClassIdentity>::NAME,
360                        "ACall",
361                    )
362                });
363                let __inner: extern "C" fn(WeaponShopTopMenu_SellMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
364                    ::core::mem::transmute(__vi.method_ptr);
365                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
366                __inner(__receiver, __mi)
367            }
368        }
369    }
370}
371
372#[cfg(feature = "app-weaponshoptopmenu")]
373impl<__T: IWeaponShopTopMenu_SellMenuItem> IWeaponShopTopMenu_SellMenuItemMethods for __T {}
374
375#[cfg(feature = "app-weaponshoptopmenu")]
376impl WeaponShopTopMenu_SellMenuItem {
377    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
378        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
379    }
380
381    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
382        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
383    }
384}
385
386#[cfg(feature = "app-weaponshoptopmenu")]
387impl WeaponShopTopMenu_SellMenuItem {
388    #[doc = "Direct (non-virtual) call to `WeaponShopTopMenu_SellMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
389    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
390        let __mi = Self::a_call_method_info();
391        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
392            ::core::mem::transmute(__mi.method_ptr);
393        __inner(this.into(), ::core::option::Option::None)
394    }
395}
396
397#[cfg(feature = "app-weaponshoptopmenu")]
398impl WeaponShopTopMenu_SellMenuItem {
399    #[doc = "`.ctor(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` — overload selector"]
400    pub fn new(decide_event_handler: crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler) -> Self {
401        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
402            panic!(
403                "{}
404::{}
405 failed to instantiate",
406                ::core::stringify!(WeaponShopTopMenu_SellMenuItem),
407                ::core::stringify!(new),
408            )
409        });
410        <Self as IWeaponShopTopMenu_SellMenuItemMethods>::ctor(this, decide_event_handler);
411        this
412    }
413}
414
415#[cfg(feature = "app-weaponshoptopmenu")]
416pub trait IWeaponShopTopMenu_BuyMenuItemMethods: IWeaponShopTopMenu_BuyMenuItem {
417    #[doc = "`.ctor(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` overload"]
418    fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler>) -> () {
419        unsafe {
420            let __receiver =
421                <WeaponShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
422            ::unity::il2cpp_call!((::unity::module_base()+0x1b2c2e0usize)as*mut u8,();
423(WeaponShopTopMenu_BuyMenuItem)__receiver,(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
424        }
425    }
426    #[doc = "`ACall()` overload"]
427    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
428        unsafe {
429            let __receiver =
430                <WeaponShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431            {
432                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
433                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
434                    panic!(
435                        "unity: virtual slot {}
436 out of range (vtable len {}
437) on the runtime class behind {}
438 (method `{}
439`)",
440                        18usize,
441                        __vt.len(),
442                        <WeaponShopTopMenu_BuyMenuItem as ::unity::ClassIdentity>::NAME,
443                        "ACall",
444                    )
445                });
446                let __inner: extern "C" fn(WeaponShopTopMenu_BuyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
447                    ::core::mem::transmute(__vi.method_ptr);
448                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
449                __inner(__receiver, __mi)
450            }
451        }
452    }
453}
454
455#[cfg(feature = "app-weaponshoptopmenu")]
456impl<__T: IWeaponShopTopMenu_BuyMenuItem> IWeaponShopTopMenu_BuyMenuItemMethods for __T {}
457
458#[cfg(feature = "app-weaponshoptopmenu")]
459impl WeaponShopTopMenu_BuyMenuItem {
460    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
462    }
463
464    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
466    }
467}
468
469#[cfg(feature = "app-weaponshoptopmenu")]
470impl WeaponShopTopMenu_BuyMenuItem {
471    #[doc = "Direct (non-virtual) call to `WeaponShopTopMenu_BuyMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
472    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
473        let __mi = Self::a_call_method_info();
474        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
475            ::core::mem::transmute(__mi.method_ptr);
476        __inner(this.into(), ::core::option::Option::None)
477    }
478}
479
480#[cfg(feature = "app-weaponshoptopmenu")]
481impl WeaponShopTopMenu_BuyMenuItem {
482    #[doc = "`.ctor(crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler)` — overload selector"]
483    pub fn new(decide_event_handler: crate::app::weaponshoptopmenu::WeaponShopTopMenu_DecideEventHandler) -> Self {
484        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
485            panic!(
486                "{}
487::{}
488 failed to instantiate",
489                ::core::stringify!(WeaponShopTopMenu_BuyMenuItem),
490                ::core::stringify!(new),
491            )
492        });
493        <Self as IWeaponShopTopMenu_BuyMenuItemMethods>::ctor(this, decide_event_handler);
494        this
495    }
496}
497
498#[cfg(feature = "app-weaponshoptopmenu")]
499#[doc(hidden)]
500pub mod prelude {
501    pub use super::{
502        IWeaponShopTopMenu, IWeaponShopTopMenuMethods, IWeaponShopTopMenu_BuyMenuItem, IWeaponShopTopMenu_BuyMenuItemMethods,
503        IWeaponShopTopMenu_DecideEventHandler, IWeaponShopTopMenu_DecideEventHandlerMethods, IWeaponShopTopMenu_SellMenuItem,
504        IWeaponShopTopMenu_SellMenuItemMethods, WeaponShopTopMenu, WeaponShopTopMenu_BuyMenuItem, WeaponShopTopMenu_DecideEventHandler,
505        WeaponShopTopMenu_Result2, WeaponShopTopMenu_SellMenuItem,
506    };
507    #[cfg(feature = "app-basicmenu")]
508    pub use crate::app::basicmenu::IBasicMenuMethods;
509    #[cfg(feature = "app-basicmenuitem")]
510    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
511    #[cfg(feature = "app-procinst")]
512    pub use crate::app::procinst::IProcInstMethods;
513    #[cfg(feature = "system-delegate")]
514    pub use crate::system::delegate::IDelegateMethods;
515    #[cfg(feature = "system-multicastdelegate")]
516    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
517    #[cfg(feature = "system-object")]
518    pub use crate::system::object::IObjectMethods;
519    #[cfg(feature = "system-enum")]
520    pub use crate::system::r#enum::IEnumMethods;
521    #[cfg(feature = "system-valuetype")]
522    pub use crate::system::valuetype::IValueTypeMethods;
523    pub use crate::{
524        app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
525        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
526    };
527}