Skip to main content

engage/generated/app/
refineshopexchangesourcemenuitem.rs

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