Skip to main content

engage/generated/app/
itemshoptopmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemshoptopmenu-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/itemshoptopmenu/ItemShopTopMenu.md"))]
24    #[::unity::class(namespace = "App", name = "ItemShopTopMenu")]
25    #[parent(crate::app::basicmenu::BasicMenu)]
26    pub struct ItemShopTopMenu {}
27
28    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshoptopmenu/ItemShopTopMenu_DecideEventHandler.md"))]
29    #[::unity::class(namespace = "App", name = "ItemShopTopMenu.DecideEventHandler")]
30    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
31    pub struct ItemShopTopMenu_DecideEventHandler {}
32
33    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshoptopmenu/ItemShopTopMenu_BuyMenuItem.md"))]
34    #[::unity::class(namespace = "App", name = "ItemShopTopMenu.BuyMenuItem")]
35    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
36    pub struct ItemShopTopMenu_BuyMenuItem {
37        #[offset(104)]
38        #[rename(name = "m_DecideEventHandler")]
39        pub m_decide_event_handler: crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler,
40    }
41
42    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshoptopmenu/ItemShopTopMenu_Result2.md"))]
43    #[repr(C)]
44    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
45    pub struct ItemShopTopMenu_Result2 {
46        pub value: i32,
47    }
48    impl ::unity::ClassIdentity for ItemShopTopMenu_Result2 {
49        const NAME: &'static str = "ItemShopTopMenu.Result2";
50        const NAMESPACE: &'static str = "App";
51
52        fn class() -> ::unity::Class {
53            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
54            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
55        }
56    }
57    impl ::unity::IlType for ItemShopTopMenu_Result2 {
58        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
59            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
60        }
61    }
62    impl ItemShopTopMenu_Result2 {
63        pub fn buy() -> Self {
64            Self { value: 0 }
65        }
66
67        pub fn sell() -> Self {
68            Self { value: 1 }
69        }
70
71        pub fn end() -> Self {
72            Self { value: 2 }
73        }
74    }
75
76    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshoptopmenu/ItemShopTopMenu_SellMenuItem.md"))]
77    #[::unity::class(namespace = "App", name = "ItemShopTopMenu.SellMenuItem")]
78    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
79    pub struct ItemShopTopMenu_SellMenuItem {
80        #[offset(104)]
81        #[rename(name = "m_DecideEventHandler")]
82        pub m_decide_event_handler: crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler,
83    }
84}
85
86#[cfg(feature = "app-itemshoptopmenu-types")]
87pub use __types::*;
88
89#[cfg(feature = "app-itemshoptopmenu")]
90impl ItemShopTopMenu {
91    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::itemshoptopmenu::ItemShopTopMenu_Result2, crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` overload"]
92    pub fn create_bind(
93        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
94        initial_selected: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_Result2>,
95        decide_event_handler: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler>,
96    ) -> () {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x2051400usize)as*mut u8,();
99(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemshoptopmenu::ItemShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
100        }
101    }
102}
103
104#[cfg(feature = "app-itemshoptopmenu")]
105pub trait IItemShopTopMenuMethods: IItemShopTopMenu {
106    #[doc = "`get_m_DecideEventHandler()` overload"]
107    fn get_m_decide_event_handler(self) -> crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler {
108        unsafe {
109            let __receiver = <ItemShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x20513e0usize)as*mut u8,crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler;
111(ItemShopTopMenu)__receiver)
112        }
113    }
114    #[doc = "`set_m_DecideEventHandler(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` overload"]
115    fn set_m_decide_event_handler(self, value: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler>) -> () {
116        unsafe {
117            let __receiver = <ItemShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x20513f0usize)as*mut u8,();
119(ItemShopTopMenu)__receiver,(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)::core::convert::Into::into(value))
120        }
121    }
122    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::itemshoptopmenu::ItemShopTopMenu_Result2, crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` overload"]
123    fn ctor(
124        self,
125        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
126        menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
127        initial_selected: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_Result2>,
128        decide_event_handler: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler>,
129    ) -> () {
130        unsafe {
131            let __receiver = <ItemShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x20515f0usize)as*mut u8,();
133(ItemShopTopMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::itemshoptopmenu::ItemShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
134        }
135    }
136    #[doc = "`GetName()` overload"]
137    fn get_name(self) -> ::unity::Il2CppString {
138        unsafe {
139            let __receiver = <ItemShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        30usize,
150                        __vt.len(),
151                        <ItemShopTopMenu as ::unity::ClassIdentity>::NAME,
152                        "GetName",
153                    )
154                });
155                let __inner: extern "C" fn(ItemShopTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
156                    ::core::mem::transmute(__vi.method_ptr);
157                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
158                __inner(__receiver, __mi)
159            }
160        }
161    }
162    #[doc = "`BCall()` overload"]
163    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
164        unsafe {
165            let __receiver = <ItemShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            {
167                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
168                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
169                    panic!(
170                        "unity: virtual slot {}
171 out of range (vtable len {}
172) on the runtime class behind {}
173 (method `{}
174`)",
175                        51usize,
176                        __vt.len(),
177                        <ItemShopTopMenu as ::unity::ClassIdentity>::NAME,
178                        "BCall",
179                    )
180                });
181                let __inner: extern "C" fn(ItemShopTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
182                    ::core::mem::transmute(__vi.method_ptr);
183                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
184                __inner(__receiver, __mi)
185            }
186        }
187    }
188}
189
190#[cfg(feature = "app-itemshoptopmenu")]
191impl<__T: IItemShopTopMenu> IItemShopTopMenuMethods for __T {}
192
193#[cfg(feature = "app-itemshoptopmenu")]
194impl ItemShopTopMenu {
195    pub fn get_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
197    }
198
199    pub fn set_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
201    }
202
203    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
205    }
206
207    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
209    }
210
211    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
213    }
214
215    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
217    }
218}
219
220#[cfg(feature = "app-itemshoptopmenu")]
221impl ItemShopTopMenu {
222    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
224        let __mi = Self::get_name_method_info();
225        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
226        __inner(this.into(), ::core::option::Option::None)
227    }
228
229    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
231        let __mi = Self::b_call_method_info();
232        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
233            ::core::mem::transmute(__mi.method_ptr);
234        __inner(this.into(), ::core::option::Option::None)
235    }
236}
237
238#[cfg(feature = "app-itemshoptopmenu")]
239impl ItemShopTopMenu {
240    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::itemshoptopmenu::ItemShopTopMenu_Result2, crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` — overload selector"]
241    pub fn new(
242        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
243        menu_content: crate::app::basicmenucontent::BasicMenuContent,
244        initial_selected: crate::app::itemshoptopmenu::ItemShopTopMenu_Result2,
245        decide_event_handler: crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler,
246    ) -> Self {
247        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
248            panic!(
249                "{}
250::{}
251 failed to instantiate",
252                ::core::stringify!(ItemShopTopMenu),
253                ::core::stringify!(new),
254            )
255        });
256        <Self as IItemShopTopMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, decide_event_handler);
257        this
258    }
259}
260
261#[cfg(feature = "app-itemshoptopmenu")]
262pub trait IItemShopTopMenu_DecideEventHandlerMethods: IItemShopTopMenu_DecideEventHandler {
263    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
264    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
265        unsafe {
266            let __receiver =
267                <ItemShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268            ::unity::il2cpp_call!((::unity::module_base()+0x1fd0da0usize)as*mut u8,();
269(ItemShopTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
270        }
271    }
272    #[doc = "`Invoke(crate::app::itemshoptopmenu::ItemShopTopMenu_Result2)` overload"]
273    fn invoke(self, result: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_Result2>) -> () {
274        unsafe {
275            let __receiver =
276                <ItemShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
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                        <ItemShopTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
289                        "Invoke",
290                    )
291                });
292                let __inner: extern "C" fn(
293                    ItemShopTopMenu_DecideEventHandler,
294                    crate::app::itemshoptopmenu::ItemShopTopMenu_Result2,
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(result), __mi)
299            }
300        }
301    }
302}
303
304#[cfg(feature = "app-itemshoptopmenu")]
305impl<__T: IItemShopTopMenu_DecideEventHandler> IItemShopTopMenu_DecideEventHandlerMethods for __T {}
306
307#[cfg(feature = "app-itemshoptopmenu")]
308impl ItemShopTopMenu_DecideEventHandler {
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-itemshoptopmenu")]
319impl ItemShopTopMenu_DecideEventHandler {
320    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu_DecideEventHandler`'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>, result: crate::app::itemshoptopmenu::ItemShopTopMenu_Result2) -> () {
322        let __mi = Self::invoke_method_info();
323        let __inner: extern "C" fn(::unity::IlInstance, crate::app::itemshoptopmenu::ItemShopTopMenu_Result2, ::unity::OptionalMethod) -> () =
324            ::core::mem::transmute(__mi.method_ptr);
325        __inner(this.into(), result, ::core::option::Option::None)
326    }
327}
328
329#[cfg(feature = "app-itemshoptopmenu")]
330impl ItemShopTopMenu_DecideEventHandler {
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!(ItemShopTopMenu_DecideEventHandler),
339                ::core::stringify!(new),
340            )
341        });
342        <Self as IItemShopTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
343        this
344    }
345}
346
347#[cfg(feature = "app-itemshoptopmenu")]
348pub trait IItemShopTopMenu_BuyMenuItemMethods: IItemShopTopMenu_BuyMenuItem {
349    #[doc = "`.ctor(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` overload"]
350    fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler>) -> () {
351        unsafe {
352            let __receiver =
353                <ItemShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
354            ::unity::il2cpp_call!((::unity::module_base()+0x1fd0a50usize)as*mut u8,();
355(ItemShopTopMenu_BuyMenuItem)__receiver,(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
356        }
357    }
358    #[doc = "`GetName()` overload"]
359    fn get_name(self) -> ::unity::Il2CppString {
360        unsafe {
361            let __receiver =
362                <ItemShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363            {
364                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
365                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
366                    panic!(
367                        "unity: virtual slot {}
368 out of range (vtable len {}
369) on the runtime class behind {}
370 (method `{}
371`)",
372                        4usize,
373                        __vt.len(),
374                        <ItemShopTopMenu_BuyMenuItem as ::unity::ClassIdentity>::NAME,
375                        "GetName",
376                    )
377                });
378                let __inner: extern "C" fn(ItemShopTopMenu_BuyMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
379                    ::core::mem::transmute(__vi.method_ptr);
380                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
381                __inner(__receiver, __mi)
382            }
383        }
384    }
385    #[doc = "`ACall()` overload"]
386    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
387        unsafe {
388            let __receiver =
389                <ItemShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390            {
391                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
392                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
393                    panic!(
394                        "unity: virtual slot {}
395 out of range (vtable len {}
396) on the runtime class behind {}
397 (method `{}
398`)",
399                        18usize,
400                        __vt.len(),
401                        <ItemShopTopMenu_BuyMenuItem as ::unity::ClassIdentity>::NAME,
402                        "ACall",
403                    )
404                });
405                let __inner: extern "C" fn(ItemShopTopMenu_BuyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
406                    ::core::mem::transmute(__vi.method_ptr);
407                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
408                __inner(__receiver, __mi)
409            }
410        }
411    }
412}
413
414#[cfg(feature = "app-itemshoptopmenu")]
415impl<__T: IItemShopTopMenu_BuyMenuItem> IItemShopTopMenu_BuyMenuItemMethods for __T {}
416
417#[cfg(feature = "app-itemshoptopmenu")]
418impl ItemShopTopMenu_BuyMenuItem {
419    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
421    }
422
423    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
425    }
426
427    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
429    }
430}
431
432#[cfg(feature = "app-itemshoptopmenu")]
433impl ItemShopTopMenu_BuyMenuItem {
434    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu_BuyMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
435    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
436        let __mi = Self::get_name_method_info();
437        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
438        __inner(this.into(), ::core::option::Option::None)
439    }
440
441    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu_BuyMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
442    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
443        let __mi = Self::a_call_method_info();
444        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
445            ::core::mem::transmute(__mi.method_ptr);
446        __inner(this.into(), ::core::option::Option::None)
447    }
448}
449
450#[cfg(feature = "app-itemshoptopmenu")]
451impl ItemShopTopMenu_BuyMenuItem {
452    #[doc = "`.ctor(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` — overload selector"]
453    pub fn new(decide_event_handler: crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler) -> Self {
454        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
455            panic!(
456                "{}
457::{}
458 failed to instantiate",
459                ::core::stringify!(ItemShopTopMenu_BuyMenuItem),
460                ::core::stringify!(new),
461            )
462        });
463        <Self as IItemShopTopMenu_BuyMenuItemMethods>::ctor(this, decide_event_handler);
464        this
465    }
466}
467
468#[cfg(feature = "app-itemshoptopmenu")]
469pub trait IItemShopTopMenu_SellMenuItemMethods: IItemShopTopMenu_SellMenuItem {
470    #[doc = "`.ctor(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` overload"]
471    fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler>) -> () {
472        unsafe {
473            let __receiver =
474                <ItemShopTopMenu_SellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475            ::unity::il2cpp_call!((::unity::module_base()+0x1fd0e60usize)as*mut u8,();
476(ItemShopTopMenu_SellMenuItem)__receiver,(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
477        }
478    }
479    #[doc = "`GetName()` overload"]
480    fn get_name(self) -> ::unity::Il2CppString {
481        unsafe {
482            let __receiver =
483                <ItemShopTopMenu_SellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
484            {
485                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
486                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
487                    panic!(
488                        "unity: virtual slot {}
489 out of range (vtable len {}
490) on the runtime class behind {}
491 (method `{}
492`)",
493                        4usize,
494                        __vt.len(),
495                        <ItemShopTopMenu_SellMenuItem as ::unity::ClassIdentity>::NAME,
496                        "GetName",
497                    )
498                });
499                let __inner: extern "C" fn(ItemShopTopMenu_SellMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
500                    ::core::mem::transmute(__vi.method_ptr);
501                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
502                __inner(__receiver, __mi)
503            }
504        }
505    }
506    #[doc = "`ACall()` overload"]
507    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
508        unsafe {
509            let __receiver =
510                <ItemShopTopMenu_SellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
511            {
512                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
513                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
514                    panic!(
515                        "unity: virtual slot {}
516 out of range (vtable len {}
517) on the runtime class behind {}
518 (method `{}
519`)",
520                        18usize,
521                        __vt.len(),
522                        <ItemShopTopMenu_SellMenuItem as ::unity::ClassIdentity>::NAME,
523                        "ACall",
524                    )
525                });
526                let __inner: extern "C" fn(ItemShopTopMenu_SellMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
527                    ::core::mem::transmute(__vi.method_ptr);
528                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
529                __inner(__receiver, __mi)
530            }
531        }
532    }
533}
534
535#[cfg(feature = "app-itemshoptopmenu")]
536impl<__T: IItemShopTopMenu_SellMenuItem> IItemShopTopMenu_SellMenuItemMethods for __T {}
537
538#[cfg(feature = "app-itemshoptopmenu")]
539impl ItemShopTopMenu_SellMenuItem {
540    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
542    }
543
544    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
546    }
547
548    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
550    }
551}
552
553#[cfg(feature = "app-itemshoptopmenu")]
554impl ItemShopTopMenu_SellMenuItem {
555    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu_SellMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
556    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
557        let __mi = Self::get_name_method_info();
558        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
559        __inner(this.into(), ::core::option::Option::None)
560    }
561
562    #[doc = "Direct (non-virtual) call to `ItemShopTopMenu_SellMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
563    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
564        let __mi = Self::a_call_method_info();
565        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
566            ::core::mem::transmute(__mi.method_ptr);
567        __inner(this.into(), ::core::option::Option::None)
568    }
569}
570
571#[cfg(feature = "app-itemshoptopmenu")]
572impl ItemShopTopMenu_SellMenuItem {
573    #[doc = "`.ctor(crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler)` — overload selector"]
574    pub fn new(decide_event_handler: crate::app::itemshoptopmenu::ItemShopTopMenu_DecideEventHandler) -> Self {
575        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
576            panic!(
577                "{}
578::{}
579 failed to instantiate",
580                ::core::stringify!(ItemShopTopMenu_SellMenuItem),
581                ::core::stringify!(new),
582            )
583        });
584        <Self as IItemShopTopMenu_SellMenuItemMethods>::ctor(this, decide_event_handler);
585        this
586    }
587}
588
589#[cfg(feature = "app-itemshoptopmenu")]
590#[doc(hidden)]
591pub mod prelude {
592    pub use super::{
593        IItemShopTopMenu, IItemShopTopMenuMethods, IItemShopTopMenu_BuyMenuItem, IItemShopTopMenu_BuyMenuItemMethods,
594        IItemShopTopMenu_DecideEventHandler, IItemShopTopMenu_DecideEventHandlerMethods, IItemShopTopMenu_SellMenuItem,
595        IItemShopTopMenu_SellMenuItemMethods, ItemShopTopMenu, ItemShopTopMenu_BuyMenuItem, ItemShopTopMenu_DecideEventHandler,
596        ItemShopTopMenu_Result2, ItemShopTopMenu_SellMenuItem,
597    };
598    #[cfg(feature = "app-basicmenu")]
599    pub use crate::app::basicmenu::IBasicMenuMethods;
600    #[cfg(feature = "app-basicmenuitem")]
601    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
602    #[cfg(feature = "app-procinst")]
603    pub use crate::app::procinst::IProcInstMethods;
604    #[cfg(feature = "system-delegate")]
605    pub use crate::system::delegate::IDelegateMethods;
606    #[cfg(feature = "system-multicastdelegate")]
607    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
608    #[cfg(feature = "system-object")]
609    pub use crate::system::object::IObjectMethods;
610    #[cfg(feature = "system-enum")]
611    pub use crate::system::r#enum::IEnumMethods;
612    #[cfg(feature = "system-valuetype")]
613    pub use crate::system::valuetype::IValueTypeMethods;
614    pub use crate::{
615        app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
616        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
617    };
618}