Skip to main content

engage/generated/app/
itemshopbuyemptymenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemshopbuyemptymenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshopbuyemptymenuitem/ItemShopBuyEmptyMenuItem.md"))]
14    #[::unity::class(namespace = "App", name = "ItemShopBuyEmptyMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct ItemShopBuyEmptyMenuItem {
17        #[offset(104)]
18        #[rename(name = "m_SelectEventHandler")]
19        pub m_select_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler,
20    }
21}
22
23#[cfg(feature = "app-itemshopbuyemptymenuitem-types")]
24pub use __types::*;
25
26#[cfg(feature = "app-itemshopbuyemptymenuitem")]
27pub trait IItemShopBuyEmptyMenuItemMethods: IItemShopBuyEmptyMenuItem {
28    #[doc = "`.ctor(crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler)` overload"]
29    fn ctor(self, select_event_handler: impl ::core::convert::Into<crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler>) -> () {
30        unsafe {
31            let __receiver =
32                <ItemShopBuyEmptyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
33            ::unity::il2cpp_call!((::unity::module_base()+0x204a280usize)as*mut u8,();
34(ItemShopBuyEmptyMenuItem)__receiver,(crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler))
35        }
36    }
37    #[doc = "`BuildAttribute()` overload"]
38    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
39        unsafe {
40            let __receiver =
41                <ItemShopBuyEmptyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            {
43                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
44                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
45                    panic!(
46                        "unity: virtual slot {}
47 out of range (vtable len {}
48) on the runtime class behind {}
49 (method `{}
50`)",
51                        8usize,
52                        __vt.len(),
53                        <ItemShopBuyEmptyMenuItem as ::unity::ClassIdentity>::NAME,
54                        "BuildAttribute",
55                    )
56                });
57                let __inner: extern "C" fn(ItemShopBuyEmptyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
58                    ::core::mem::transmute(__vi.method_ptr);
59                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60                __inner(__receiver, __mi)
61            }
62        }
63    }
64    #[doc = "`OnSelect()` overload"]
65    fn on_select(self) -> () {
66        unsafe {
67            let __receiver =
68                <ItemShopBuyEmptyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        12usize,
79                        __vt.len(),
80                        <ItemShopBuyEmptyMenuItem as ::unity::ClassIdentity>::NAME,
81                        "OnSelect",
82                    )
83                });
84                let __inner: extern "C" fn(ItemShopBuyEmptyMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90    #[doc = "`ACall()` overload"]
91    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
92        unsafe {
93            let __receiver =
94                <ItemShopBuyEmptyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            {
96                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
98                    panic!(
99                        "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104                        18usize,
105                        __vt.len(),
106                        <ItemShopBuyEmptyMenuItem as ::unity::ClassIdentity>::NAME,
107                        "ACall",
108                    )
109                });
110                let __inner: extern "C" fn(ItemShopBuyEmptyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
111                    ::core::mem::transmute(__vi.method_ptr);
112                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113                __inner(__receiver, __mi)
114            }
115        }
116    }
117}
118
119#[cfg(feature = "app-itemshopbuyemptymenuitem")]
120impl<__T: IItemShopBuyEmptyMenuItem> IItemShopBuyEmptyMenuItemMethods for __T {}
121
122#[cfg(feature = "app-itemshopbuyemptymenuitem")]
123impl ItemShopBuyEmptyMenuItem {
124    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
126    }
127
128    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
130    }
131
132    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
134    }
135
136    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
138    }
139}
140
141#[cfg(feature = "app-itemshopbuyemptymenuitem")]
142impl ItemShopBuyEmptyMenuItem {
143    #[doc = "Direct (non-virtual) call to `ItemShopBuyEmptyMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
144    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
145        let __mi = Self::build_attribute_method_info();
146        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
147            ::core::mem::transmute(__mi.method_ptr);
148        __inner(this.into(), ::core::option::Option::None)
149    }
150
151    #[doc = "Direct (non-virtual) call to `ItemShopBuyEmptyMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
152    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
153        let __mi = Self::on_select_method_info();
154        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
155        __inner(this.into(), ::core::option::Option::None)
156    }
157
158    #[doc = "Direct (non-virtual) call to `ItemShopBuyEmptyMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
159    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
160        let __mi = Self::a_call_method_info();
161        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
162            ::core::mem::transmute(__mi.method_ptr);
163        __inner(this.into(), ::core::option::Option::None)
164    }
165}
166
167#[cfg(feature = "app-itemshopbuyemptymenuitem")]
168impl ItemShopBuyEmptyMenuItem {
169    #[doc = "`.ctor(crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler)` — overload selector"]
170    pub fn new(select_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler) -> Self {
171        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
172            panic!(
173                "{}
174::{}
175 failed to instantiate",
176                ::core::stringify!(ItemShopBuyEmptyMenuItem),
177                ::core::stringify!(new),
178            )
179        });
180        <Self as IItemShopBuyEmptyMenuItemMethods>::ctor(this, select_event_handler);
181        this
182    }
183}
184
185#[cfg(feature = "app-itemshopbuyemptymenuitem")]
186#[doc(hidden)]
187pub mod prelude {
188    pub use super::{IItemShopBuyEmptyMenuItem, IItemShopBuyEmptyMenuItemMethods, ItemShopBuyEmptyMenuItem};
189    #[cfg(feature = "app-basicmenuitem")]
190    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
191    #[cfg(feature = "system-object")]
192    pub use crate::system::object::IObjectMethods;
193    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
194}