Skip to main content

engage/generated/app/
refineshopexchangetargetmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refineshopexchangetargetmenu-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/refineshopexchangetargetmenu/RefineShopExchangeTargetMenu.md"))]
21    #[::unity::class(namespace = "App", name = "RefineShopExchangeTargetMenu")]
22    #[parent(crate::app::basicmenu::BasicMenu)]
23    pub struct RefineShopExchangeTargetMenu {
24        #[offset(200)]
25        #[rename(name = "m_CloseEventHandler")]
26        pub m_close_event_handler: crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler,
27    }
28
29    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshopexchangetargetmenu/RefineShopExchangeTargetMenu_CloseEventHandler.md"))]
30    #[::unity::class(namespace = "App", name = "RefineShopExchangeTargetMenu.CloseEventHandler")]
31    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
32    pub struct RefineShopExchangeTargetMenu_CloseEventHandler {}
33}
34
35#[cfg(feature = "app-refineshopexchangetargetmenu-types")]
36pub use __types::*;
37
38#[cfg(feature = "app-refineshopexchangetargetmenu")]
39impl RefineShopExchangeTargetMenu {
40    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent, ::unity::Il2CppString, crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler, crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler, crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler)` overload"]
41    pub fn create_bind(
42        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
43        menu_content: impl ::core::convert::Into<crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent>,
44        initial_target_material_id: impl ::core::convert::Into<::unity::Il2CppString>,
45        select_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler>,
46        decide_event_handler: impl ::core::convert::Into<crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler>,
47        close_event_handler: impl ::core::convert::Into<crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler>,
48    ) -> crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu {
49        unsafe {
50            ::unity::il2cpp_call!((::unity::module_base()+0x29625c0usize)as*mut u8,crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu;
51(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent)::core::convert::Into::into(menu_content),(::unity::Il2CppString)::core::convert::Into::into(initial_target_material_id),(crate::app::materialmenuitem::MaterialMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::materialmenuitem::MaterialMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler))
52        }
53    }
54}
55
56#[cfg(feature = "app-refineshopexchangetargetmenu")]
57pub trait IRefineShopExchangeTargetMenuMethods: IRefineShopExchangeTargetMenu {
58    #[doc = "`get_m_MenuItemIsEnoughMaterial()` overload"]
59    fn get_m_menu_item_is_enough_material(self) -> bool {
60        unsafe {
61            let __receiver =
62                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x2965310usize)as*mut u8,bool;
64(RefineShopExchangeTargetMenu)__receiver)
65        }
66    }
67    #[doc = "`set_m_MenuItemIsEnoughMaterial(bool)` overload"]
68    fn set_m_menu_item_is_enough_material(self, value: impl ::core::convert::Into<bool>) -> () {
69        unsafe {
70            let __receiver =
71                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2965320usize)as*mut u8,();
73(RefineShopExchangeTargetMenu)__receiver,(bool)::core::convert::Into::into(value))
74        }
75    }
76    #[doc = "`get_m_MenuItemIsMaxMaterial()` overload"]
77    fn get_m_menu_item_is_max_material(self) -> bool {
78        unsafe {
79            let __receiver =
80                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x2965330usize)as*mut u8,bool;
82(RefineShopExchangeTargetMenu)__receiver)
83        }
84    }
85    #[doc = "`set_m_MenuItemIsMaxMaterial(bool)` overload"]
86    fn set_m_menu_item_is_max_material(self, value: impl ::core::convert::Into<bool>) -> () {
87        unsafe {
88            let __receiver =
89                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x2965340usize)as*mut u8,();
91(RefineShopExchangeTargetMenu)__receiver,(bool)::core::convert::Into::into(value))
92        }
93    }
94    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent, i32, crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler)` overload"]
95    fn ctor(
96        self,
97        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
98        menu_content: impl ::core::convert::Into<crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent>,
99        initial_select_index: impl ::core::convert::Into<i32>,
100        close_event_handler: impl ::core::convert::Into<crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler>,
101    ) -> () {
102        unsafe {
103            let __receiver =
104                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
105            ::unity::il2cpp_call!((::unity::module_base()+0x2965510usize)as*mut u8,();
106(RefineShopExchangeTargetMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent)::core::convert::Into::into(menu_content),(i32)::core::convert::Into::into(initial_select_index),(crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler))
107        }
108    }
109    #[doc = "`GetName()` overload"]
110    fn get_name(self) -> ::unity::Il2CppString {
111        unsafe {
112            let __receiver =
113                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            {
115                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
116                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
117                    panic!(
118                        "unity: virtual slot {}
119 out of range (vtable len {}
120) on the runtime class behind {}
121 (method `{}
122`)",
123                        30usize,
124                        __vt.len(),
125                        <RefineShopExchangeTargetMenu as ::unity::ClassIdentity>::NAME,
126                        "GetName",
127                    )
128                });
129                let __inner: extern "C" fn(RefineShopExchangeTargetMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
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, __mi)
133            }
134        }
135    }
136    #[doc = "`UpdateContent(bool)` overload"]
137    fn update_content(self, menu_item_is_enabled: impl ::core::convert::Into<bool>) -> () {
138        unsafe {
139            let __receiver =
140                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x29656b0usize)as*mut u8,();
142(RefineShopExchangeTargetMenu)__receiver,(bool)::core::convert::Into::into(menu_item_is_enabled))
143        }
144    }
145    #[doc = "`OnClose()` overload"]
146    fn on_close(self) -> () {
147        unsafe {
148            let __receiver =
149                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            {
151                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
152                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
153                    panic!(
154                        "unity: virtual slot {}
155 out of range (vtable len {}
156) on the runtime class behind {}
157 (method `{}
158`)",
159                        26usize,
160                        __vt.len(),
161                        <RefineShopExchangeTargetMenu as ::unity::ClassIdentity>::NAME,
162                        "OnClose",
163                    )
164                });
165                let __inner: extern "C" fn(RefineShopExchangeTargetMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
166                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
167                __inner(__receiver, __mi)
168            }
169        }
170    }
171    #[doc = "`OnDispose()` overload"]
172    fn on_dispose(self) -> () {
173        unsafe {
174            let __receiver =
175                <RefineShopExchangeTargetMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176            {
177                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
178                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
179                    panic!(
180                        "unity: virtual slot {}
181 out of range (vtable len {}
182) on the runtime class behind {}
183 (method `{}
184`)",
185                        10usize,
186                        __vt.len(),
187                        <RefineShopExchangeTargetMenu as ::unity::ClassIdentity>::NAME,
188                        "OnDispose",
189                    )
190                });
191                let __inner: extern "C" fn(RefineShopExchangeTargetMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
192                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193                __inner(__receiver, __mi)
194            }
195        }
196    }
197}
198
199#[cfg(feature = "app-refineshopexchangetargetmenu")]
200impl<__T: IRefineShopExchangeTargetMenu> IRefineShopExchangeTargetMenuMethods for __T {}
201
202#[cfg(feature = "app-refineshopexchangetargetmenu")]
203impl RefineShopExchangeTargetMenu {
204    pub fn get_m_menu_item_is_enough_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
206    }
207
208    pub fn set_m_menu_item_is_enough_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
210    }
211
212    pub fn get_m_menu_item_is_max_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
214    }
215
216    pub fn set_m_menu_item_is_max_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
218    }
219
220    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
222    }
223
224    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
226    }
227
228    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
230    }
231
232    pub fn update_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
234    }
235
236    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
238    }
239
240    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
242    }
243}
244
245#[cfg(feature = "app-refineshopexchangetargetmenu")]
246impl RefineShopExchangeTargetMenu {
247    #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
248    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
249        let __mi = Self::get_name_method_info();
250        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
251        __inner(this.into(), ::core::option::Option::None)
252    }
253
254    #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
255    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
256        let __mi = Self::on_close_method_info();
257        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
258        __inner(this.into(), ::core::option::Option::None)
259    }
260
261    #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
263        let __mi = Self::on_dispose_method_info();
264        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), ::core::option::Option::None)
266    }
267}
268
269#[cfg(feature = "app-refineshopexchangetargetmenu")]
270impl RefineShopExchangeTargetMenu {
271    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent, i32, crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler)` — overload selector"]
272    pub fn new(
273        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
274        menu_content: crate::app::refineshopexchangetargetmenucontent::RefineShopExchangeTargetMenuContent,
275        initial_select_index: i32,
276        close_event_handler: crate::app::refineshopexchangetargetmenu::RefineShopExchangeTargetMenu_CloseEventHandler,
277    ) -> Self {
278        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
279            panic!(
280                "{}
281::{}
282 failed to instantiate",
283                ::core::stringify!(RefineShopExchangeTargetMenu),
284                ::core::stringify!(new),
285            )
286        });
287        <Self as IRefineShopExchangeTargetMenuMethods>::ctor(this, menu_item_list, menu_content, initial_select_index, close_event_handler);
288        this
289    }
290}
291
292#[cfg(feature = "app-refineshopexchangetargetmenu")]
293pub trait IRefineShopExchangeTargetMenu_CloseEventHandlerMethods: IRefineShopExchangeTargetMenu_CloseEventHandler {
294    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
295    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
296        unsafe {
297            let __receiver = <RefineShopExchangeTargetMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
298                <Self as ::unity::SystemObject>::as_instance(self),
299            );
300            ::unity::il2cpp_call!((::unity::module_base()+0x1afb9c0usize)as*mut u8,();
301(RefineShopExchangeTargetMenu_CloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
302        }
303    }
304    #[doc = "`Invoke()` overload"]
305    fn invoke(self) -> () {
306        unsafe {
307            let __receiver = <RefineShopExchangeTargetMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
308                <Self as ::unity::SystemObject>::as_instance(self),
309            );
310            {
311                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
312                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
313                    panic!(
314                        "unity: virtual slot {}
315 out of range (vtable len {}
316) on the runtime class behind {}
317 (method `{}
318`)",
319                        13usize,
320                        __vt.len(),
321                        <RefineShopExchangeTargetMenu_CloseEventHandler as ::unity::ClassIdentity>::NAME,
322                        "Invoke",
323                    )
324                });
325                let __inner: extern "C" fn(RefineShopExchangeTargetMenu_CloseEventHandler, ::unity::OptionalMethod) -> () =
326                    ::core::mem::transmute(__vi.method_ptr);
327                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
328                __inner(__receiver, __mi)
329            }
330        }
331    }
332}
333
334#[cfg(feature = "app-refineshopexchangetargetmenu")]
335impl<__T: IRefineShopExchangeTargetMenu_CloseEventHandler> IRefineShopExchangeTargetMenu_CloseEventHandlerMethods for __T {}
336
337#[cfg(feature = "app-refineshopexchangetargetmenu")]
338impl RefineShopExchangeTargetMenu_CloseEventHandler {
339    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
341    }
342
343    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
345    }
346}
347
348#[cfg(feature = "app-refineshopexchangetargetmenu")]
349impl RefineShopExchangeTargetMenu_CloseEventHandler {
350    #[doc = "Direct (non-virtual) call to `RefineShopExchangeTargetMenu_CloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
351    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
352        let __mi = Self::invoke_method_info();
353        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
354        __inner(this.into(), ::core::option::Option::None)
355    }
356}
357
358#[cfg(feature = "app-refineshopexchangetargetmenu")]
359impl RefineShopExchangeTargetMenu_CloseEventHandler {
360    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
361    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
362        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
363            panic!(
364                "{}
365::{}
366 failed to instantiate",
367                ::core::stringify!(RefineShopExchangeTargetMenu_CloseEventHandler),
368                ::core::stringify!(new),
369            )
370        });
371        <Self as IRefineShopExchangeTargetMenu_CloseEventHandlerMethods>::ctor(this, object, method);
372        this
373    }
374}
375
376#[cfg(feature = "app-refineshopexchangetargetmenu")]
377#[doc(hidden)]
378pub mod prelude {
379    pub use super::{
380        IRefineShopExchangeTargetMenu, IRefineShopExchangeTargetMenuMethods, IRefineShopExchangeTargetMenu_CloseEventHandler,
381        IRefineShopExchangeTargetMenu_CloseEventHandlerMethods, RefineShopExchangeTargetMenu, RefineShopExchangeTargetMenu_CloseEventHandler,
382    };
383    #[cfg(feature = "app-basicmenu")]
384    pub use crate::app::basicmenu::IBasicMenuMethods;
385    #[cfg(feature = "app-procinst")]
386    pub use crate::app::procinst::IProcInstMethods;
387    #[cfg(feature = "system-delegate")]
388    pub use crate::system::delegate::IDelegateMethods;
389    #[cfg(feature = "system-multicastdelegate")]
390    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
391    #[cfg(feature = "system-object")]
392    pub use crate::system::object::IObjectMethods;
393    pub use crate::{
394        app::{basicmenu::IBasicMenu, procinst::IProcInst},
395        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
396    };
397}