Skip to main content

engage/generated/app/
accessoryshopchangemenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-accessoryshopchangemenu-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/accessoryshopchangemenu/AccessoryShopChangeMenu_ChangeKindEventHandler.md"))]
21    #[::unity::class(namespace = "App", name = "AccessoryShopChangeMenu.ChangeKindEventHandler")]
22    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23    pub struct AccessoryShopChangeMenu_ChangeKindEventHandler {}
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/accessoryshopchangemenu/AccessoryShopChangeMenu.md"))]
26    #[::unity::class(namespace = "App", name = "AccessoryShopChangeMenu")]
27    #[parent(crate::app::basicmenu::BasicMenu)]
28    pub struct AccessoryShopChangeMenu {
29        #[offset(196)]
30        #[rename(name = "m_Kind")]
31        pub m_kind: crate::app::accessorydata::AccessoryData_Kinds,
32        #[offset(200)]
33        #[rename(name = "m_Unit")]
34        pub m_unit: crate::app::unit::Unit,
35        #[offset(208)]
36        #[rename(name = "m_Selects")]
37        pub m_selects: ::unity::Array<crate::app::basicmenuselect::BasicMenuSelect>,
38        #[offset(216)]
39        #[rename(name = "m_SelectEventHandler")]
40        pub m_select_event_handler: crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler,
41        #[offset(224)]
42        #[rename(name = "m_DecideEventHandler")]
43        pub m_decide_event_handler: crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler,
44        #[offset(232)]
45        #[rename(name = "m_RequestCloseEventHandler")]
46        pub m_request_close_event_handler: crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler,
47        #[offset(240)]
48        #[rename(name = "m_ChangeKindEventHandler")]
49        pub m_change_kind_event_handler: crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler,
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/accessoryshopchangemenu/AccessoryShopChangeMenu_RequestCloseEventHandler.md"))]
53    #[::unity::class(namespace = "App", name = "AccessoryShopChangeMenu.RequestCloseEventHandler")]
54    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
55    pub struct AccessoryShopChangeMenu_RequestCloseEventHandler {}
56}
57
58#[cfg(feature = "app-accessoryshopchangemenu-types")]
59pub use __types::*;
60
61#[cfg(feature = "app-accessoryshopchangemenu")]
62pub trait IAccessoryShopChangeMenu_ChangeKindEventHandlerMethods: IAccessoryShopChangeMenu_ChangeKindEventHandler {
63    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
64    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
65        unsafe {
66            let __receiver = <AccessoryShopChangeMenu_ChangeKindEventHandler as ::unity::FromIlInstance>::from_il_instance(
67                <Self as ::unity::SystemObject>::as_instance(self),
68            );
69            ::unity::il2cpp_call!((::unity::module_base()+0x2904510usize)as*mut u8,();
70(AccessoryShopChangeMenu_ChangeKindEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
71        }
72    }
73    #[doc = "`Invoke(crate::app::accessorydata::AccessoryData)` overload"]
74    fn invoke(self, accessory_data: impl ::core::convert::Into<crate::app::accessorydata::AccessoryData>) -> () {
75        unsafe {
76            let __receiver = <AccessoryShopChangeMenu_ChangeKindEventHandler as ::unity::FromIlInstance>::from_il_instance(
77                <Self as ::unity::SystemObject>::as_instance(self),
78            );
79            {
80                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
82                    panic!(
83                        "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88                        13usize,
89                        __vt.len(),
90                        <AccessoryShopChangeMenu_ChangeKindEventHandler as ::unity::ClassIdentity>::NAME,
91                        "Invoke",
92                    )
93                });
94                let __inner: extern "C" fn(
95                    AccessoryShopChangeMenu_ChangeKindEventHandler,
96                    crate::app::accessorydata::AccessoryData,
97                    ::unity::OptionalMethod,
98                ) -> () = ::core::mem::transmute(__vi.method_ptr);
99                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100                __inner(__receiver, ::core::convert::Into::into(accessory_data), __mi)
101            }
102        }
103    }
104}
105
106#[cfg(feature = "app-accessoryshopchangemenu")]
107impl<__T: IAccessoryShopChangeMenu_ChangeKindEventHandler> IAccessoryShopChangeMenu_ChangeKindEventHandlerMethods for __T {}
108
109#[cfg(feature = "app-accessoryshopchangemenu")]
110impl AccessoryShopChangeMenu_ChangeKindEventHandler {
111    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
113    }
114
115    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
117    }
118}
119
120#[cfg(feature = "app-accessoryshopchangemenu")]
121impl AccessoryShopChangeMenu_ChangeKindEventHandler {
122    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu_ChangeKindEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
123    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, accessory_data: crate::app::accessorydata::AccessoryData) -> () {
124        let __mi = Self::invoke_method_info();
125        let __inner: extern "C" fn(::unity::IlInstance, crate::app::accessorydata::AccessoryData, ::unity::OptionalMethod) -> () =
126            ::core::mem::transmute(__mi.method_ptr);
127        __inner(this.into(), accessory_data, ::core::option::Option::None)
128    }
129}
130
131#[cfg(feature = "app-accessoryshopchangemenu")]
132impl AccessoryShopChangeMenu_ChangeKindEventHandler {
133    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
134    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
135        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
136            panic!(
137                "{}
138::{}
139 failed to instantiate",
140                ::core::stringify!(AccessoryShopChangeMenu_ChangeKindEventHandler),
141                ::core::stringify!(new),
142            )
143        });
144        <Self as IAccessoryShopChangeMenu_ChangeKindEventHandlerMethods>::ctor(this, object, method);
145        this
146    }
147}
148
149#[cfg(feature = "app-accessoryshopchangemenu")]
150impl AccessoryShopChangeMenu {
151    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::unit::Unit, crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler, crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler, crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler, crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler)` overload"]
152    pub fn create_bind(
153        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
154        menu_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
155        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
156        select_event_handler: impl ::core::convert::Into<crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler>,
157        decide_event_handler: impl ::core::convert::Into<crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler>,
158        request_close_event_handler: impl ::core::convert::Into<crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler>,
159        change_kind_event_handler: impl ::core::convert::Into<crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler>,
160    ) -> crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu {
161        unsafe {
162            ::unity::il2cpp_call!((::unity::module_base()+0x27bf610usize)as*mut u8,crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu;
163(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(menu_object),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler),(crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler)::core::convert::Into::into(change_kind_event_handler))
164        }
165    }
166
167    #[doc = "`CreateMenuItem(i32, crate::app::accessorydata::AccessoryData_Kinds, crate::app::unit::Unit, crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler, crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler)` overload"]
168    pub fn create_menu_item(
169        show_row_num: impl ::core::convert::Into<i32>,
170        kind: impl ::core::convert::Into<crate::app::accessorydata::AccessoryData_Kinds>,
171        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
172        select_event_handler: impl ::core::convert::Into<crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler>,
173        decide_event_handler: impl ::core::convert::Into<crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler>,
174    ) -> crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> {
175        unsafe {
176            ::unity::il2cpp_call!((::unity::module_base()+0x27bf750usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
177(i32)::core::convert::Into::into(show_row_num),(crate::app::accessorydata::AccessoryData_Kinds)::core::convert::Into::into(kind),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
178        }
179    }
180
181    #[doc = "`Filter(crate::app::accessorydata::AccessoryData_Kinds, crate::app::unit::Unit)` overload"]
182    pub fn filter(
183        kind: impl ::core::convert::Into<crate::app::accessorydata::AccessoryData_Kinds>,
184        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
185    ) -> crate::system::collections::generic::list_1::List_1<crate::app::accessorydata::AccessoryData> {
186        unsafe {
187            ::unity::il2cpp_call!((::unity::module_base()+0x27bfe40usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::accessorydata::AccessoryData> ;
188(crate::app::accessorydata::AccessoryData_Kinds)::core::convert::Into::into(kind),(crate::app::unit::Unit)::core::convert::Into::into(unit))
189        }
190    }
191}
192
193#[cfg(feature = "app-accessoryshopchangemenu")]
194pub trait IAccessoryShopChangeMenuMethods: IAccessoryShopChangeMenu {
195    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::accessoryshopchangemenucontent::AccessoryShopChangeMenuContent, crate::app::unit::Unit, crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler, crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler, crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler, crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler)` overload"]
196    fn ctor(
197        self,
198        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
199        menu_content: impl ::core::convert::Into<crate::app::accessoryshopchangemenucontent::AccessoryShopChangeMenuContent>,
200        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
201        select_event_handler: impl ::core::convert::Into<crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler>,
202        decide_event_handler: impl ::core::convert::Into<crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler>,
203        request_close_event_handler: impl ::core::convert::Into<crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler>,
204        change_kind_event_handler: impl ::core::convert::Into<crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler>,
205    ) -> () {
206        unsafe {
207            let __receiver =
208                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x27bfc30usize)as*mut u8,();
210(AccessoryShopChangeMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::accessoryshopchangemenucontent::AccessoryShopChangeMenuContent)::core::convert::Into::into(menu_content),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler),(crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler)::core::convert::Into::into(change_kind_event_handler))
211        }
212    }
213    #[doc = "`RebuildMenu(crate::app::unit::Unit)` overload"]
214    fn rebuild_menu(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
215        unsafe {
216            let __receiver =
217                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x27c0240usize)as*mut u8,();
219(AccessoryShopChangeMenu)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
220        }
221    }
222    #[doc = "`RebuildMenu()` overload"]
223    fn rebuild_menu_2(self) -> () {
224        unsafe {
225            let __receiver =
226                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x27c0270usize)as*mut u8,();
228(AccessoryShopChangeMenu)__receiver)
229        }
230    }
231    #[doc = "`RebuildMenuItem()` overload"]
232    fn rebuild_menu_item(self) -> () {
233        unsafe {
234            let __receiver =
235                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236            ::unity::il2cpp_call!((::unity::module_base()+0x27c0370usize)as*mut u8,();
237(AccessoryShopChangeMenu)__receiver)
238        }
239    }
240    #[doc = "`AfterBuild()` overload"]
241    fn after_build(self) -> () {
242        unsafe {
243            let __receiver =
244                <AccessoryShopChangeMenu 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(25usize).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                        25usize,
255                        __vt.len(),
256                        <AccessoryShopChangeMenu as ::unity::ClassIdentity>::NAME,
257                        "AfterBuild",
258                    )
259                });
260                let __inner: extern "C" fn(AccessoryShopChangeMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
261                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
262                __inner(__receiver, __mi)
263            }
264        }
265    }
266    #[doc = "`GetName()` overload"]
267    fn get_name(self) -> ::unity::Il2CppString {
268        unsafe {
269            let __receiver =
270                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271            {
272                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
273                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
274                    panic!(
275                        "unity: virtual slot {}
276 out of range (vtable len {}
277) on the runtime class behind {}
278 (method `{}
279`)",
280                        30usize,
281                        __vt.len(),
282                        <AccessoryShopChangeMenu as ::unity::ClassIdentity>::NAME,
283                        "GetName",
284                    )
285                });
286                let __inner: extern "C" fn(AccessoryShopChangeMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
287                    ::core::mem::transmute(__vi.method_ptr);
288                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
289                __inner(__receiver, __mi)
290            }
291        }
292    }
293    #[doc = "`EnableMenu()` overload"]
294    fn enable_menu(self) -> () {
295        unsafe {
296            let __receiver =
297                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x27c05e0usize)as*mut u8,();
299(AccessoryShopChangeMenu)__receiver)
300        }
301    }
302    #[doc = "`DisableMenu()` overload"]
303    fn disable_menu(self) -> () {
304        unsafe {
305            let __receiver =
306                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307            ::unity::il2cpp_call!((::unity::module_base()+0x27c0650usize)as*mut u8,();
308(AccessoryShopChangeMenu)__receiver)
309        }
310    }
311    #[doc = "`Show()` overload"]
312    fn show(self) -> () {
313        unsafe {
314            let __receiver =
315                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316            ::unity::il2cpp_call!((::unity::module_base()+0x27c06c0usize)as*mut u8,();
317(AccessoryShopChangeMenu)__receiver)
318        }
319    }
320    #[doc = "`Hide()` overload"]
321    fn hide(self) -> () {
322        unsafe {
323            let __receiver =
324                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
325            ::unity::il2cpp_call!((::unity::module_base()+0x27c0770usize)as*mut u8,();
326(AccessoryShopChangeMenu)__receiver)
327        }
328    }
329    #[doc = "`GetSelect()` overload"]
330    fn get_select(self) -> crate::app::basicmenuselect::BasicMenuSelect {
331        unsafe {
332            let __receiver =
333                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334            ::unity::il2cpp_call!((::unity::module_base()+0x27c0400usize)as*mut u8,crate::app::basicmenuselect::BasicMenuSelect;
335(AccessoryShopChangeMenu)__receiver)
336        }
337    }
338    #[doc = "`GetSelectedAccessoryData()` overload"]
339    fn get_selected_accessory_data(self) -> crate::app::accessorydata::AccessoryData {
340        unsafe {
341            let __receiver =
342                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343            ::unity::il2cpp_call!((::unity::module_base()+0x27c0820usize)as*mut u8,crate::app::accessorydata::AccessoryData;
344(AccessoryShopChangeMenu)__receiver)
345        }
346    }
347    #[doc = "`GetCurrentAccessoryKind()` overload"]
348    fn get_current_accessory_kind(self) -> crate::app::accessorydata::AccessoryData_Kinds {
349        unsafe {
350            let __receiver =
351                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
352            ::unity::il2cpp_call!((::unity::module_base()+0x27c08e0usize)as*mut u8,crate::app::accessorydata::AccessoryData_Kinds;
353(AccessoryShopChangeMenu)__receiver)
354        }
355    }
356    #[doc = "`UpdateDecision(crate::app::unitaccessorylist::UnitAccessoryList)` overload"]
357    fn update_decision(self, unit_accessory_list: impl ::core::convert::Into<crate::app::unitaccessorylist::UnitAccessoryList>) -> () {
358        unsafe {
359            let __receiver =
360                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361            ::unity::il2cpp_call!((::unity::module_base()+0x27c08f0usize)as*mut u8,();
362(AccessoryShopChangeMenu)__receiver,(crate::app::unitaccessorylist::UnitAccessoryList)::core::convert::Into::into(unit_accessory_list))
363        }
364    }
365    #[doc = "`UpdateCursorZOrder()` overload"]
366    fn update_cursor_z_order(self) -> () {
367        unsafe {
368            let __receiver =
369                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370            ::unity::il2cpp_call!((::unity::module_base()+0x27c04a0usize)as*mut u8,();
371(AccessoryShopChangeMenu)__receiver)
372        }
373    }
374    #[doc = "`PrepareToChangeUnit()` overload"]
375    fn prepare_to_change_unit(self) -> () {
376        unsafe {
377            let __receiver =
378                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379            ::unity::il2cpp_call!((::unity::module_base()+0x27c0b00usize)as*mut u8,();
380(AccessoryShopChangeMenu)__receiver)
381        }
382    }
383    #[doc = "`KeyLeft(bool)` overload"]
384    fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
385        unsafe {
386            let __receiver =
387                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388            {
389                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
390                let __vi = *__vt.get(42usize).unwrap_or_else(|| {
391                    panic!(
392                        "unity: virtual slot {}
393 out of range (vtable len {}
394) on the runtime class behind {}
395 (method `{}
396`)",
397                        42usize,
398                        __vt.len(),
399                        <AccessoryShopChangeMenu as ::unity::ClassIdentity>::NAME,
400                        "KeyLeft",
401                    )
402                });
403                let __inner: extern "C" fn(AccessoryShopChangeMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
404                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
405                __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
406            }
407        }
408    }
409    #[doc = "`KeyRight(bool)` overload"]
410    fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
411        unsafe {
412            let __receiver =
413                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
414            {
415                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
416                let __vi = *__vt.get(43usize).unwrap_or_else(|| {
417                    panic!(
418                        "unity: virtual slot {}
419 out of range (vtable len {}
420) on the runtime class behind {}
421 (method `{}
422`)",
423                        43usize,
424                        __vt.len(),
425                        <AccessoryShopChangeMenu as ::unity::ClassIdentity>::NAME,
426                        "KeyRight",
427                    )
428                });
429                let __inner: extern "C" fn(AccessoryShopChangeMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
430                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
431                __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
432            }
433        }
434    }
435    #[doc = "`BCall()` overload"]
436    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
437        unsafe {
438            let __receiver =
439                <AccessoryShopChangeMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
440            {
441                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
442                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
443                    panic!(
444                        "unity: virtual slot {}
445 out of range (vtable len {}
446) on the runtime class behind {}
447 (method `{}
448`)",
449                        51usize,
450                        __vt.len(),
451                        <AccessoryShopChangeMenu as ::unity::ClassIdentity>::NAME,
452                        "BCall",
453                    )
454                });
455                let __inner: extern "C" fn(AccessoryShopChangeMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
456                    ::core::mem::transmute(__vi.method_ptr);
457                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
458                __inner(__receiver, __mi)
459            }
460        }
461    }
462}
463
464#[cfg(feature = "app-accessoryshopchangemenu")]
465impl<__T: IAccessoryShopChangeMenu> IAccessoryShopChangeMenuMethods for __T {}
466
467#[cfg(feature = "app-accessoryshopchangemenu")]
468impl AccessoryShopChangeMenu {
469    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
471    }
472
473    pub fn create_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
474        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
475    }
476
477    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
479    }
480
481    pub fn rebuild_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
483    }
484
485    pub fn rebuild_menu_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
487    }
488
489    pub fn rebuild_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
491    }
492
493    pub fn filter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
495    }
496
497    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
499    }
500
501    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
503    }
504
505    pub fn enable_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
507    }
508
509    pub fn disable_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
511    }
512
513    pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
515    }
516
517    pub fn hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
519    }
520
521    pub fn get_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
523    }
524
525    pub fn get_selected_accessory_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
527    }
528
529    pub fn get_current_accessory_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
531    }
532
533    pub fn update_decision_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
535    }
536
537    pub fn update_cursor_z_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
539    }
540
541    pub fn prepare_to_change_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
543    }
544
545    pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
547    }
548
549    pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
551    }
552
553    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
555    }
556}
557
558#[cfg(feature = "app-accessoryshopchangemenu")]
559impl AccessoryShopChangeMenu {
560    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
561    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
562        let __mi = Self::after_build_method_info();
563        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
564        __inner(this.into(), ::core::option::Option::None)
565    }
566
567    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
568    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
569        let __mi = Self::get_name_method_info();
570        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
571        __inner(this.into(), ::core::option::Option::None)
572    }
573
574    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
575    pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
576        let __mi = Self::key_left_method_info();
577        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
578        __inner(this.into(), is_trigger, ::core::option::Option::None)
579    }
580
581    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
582    pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
583        let __mi = Self::key_right_method_info();
584        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
585        __inner(this.into(), is_trigger, ::core::option::Option::None)
586    }
587
588    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
589    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
590        let __mi = Self::b_call_method_info();
591        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
592            ::core::mem::transmute(__mi.method_ptr);
593        __inner(this.into(), ::core::option::Option::None)
594    }
595}
596
597#[cfg(feature = "app-accessoryshopchangemenu")]
598impl AccessoryShopChangeMenu {
599    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::accessoryshopchangemenucontent::AccessoryShopChangeMenuContent, crate::app::unit::Unit, crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler, crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler, crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler, crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler)` — overload selector"]
600    pub fn new(
601        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
602        menu_content: crate::app::accessoryshopchangemenucontent::AccessoryShopChangeMenuContent,
603        unit: crate::app::unit::Unit,
604        select_event_handler: crate::app::accessorymenuitem::AccessoryMenuItem_SelectEventHandler,
605        decide_event_handler: crate::app::accessorymenuitem::AccessoryMenuItem_DecideEventHandler,
606        request_close_event_handler: crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_RequestCloseEventHandler,
607        change_kind_event_handler: crate::app::accessoryshopchangemenu::AccessoryShopChangeMenu_ChangeKindEventHandler,
608    ) -> Self {
609        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
610            panic!(
611                "{}
612::{}
613 failed to instantiate",
614                ::core::stringify!(AccessoryShopChangeMenu),
615                ::core::stringify!(new),
616            )
617        });
618        <Self as IAccessoryShopChangeMenuMethods>::ctor(
619            this,
620            menu_item_list,
621            menu_content,
622            unit,
623            select_event_handler,
624            decide_event_handler,
625            request_close_event_handler,
626            change_kind_event_handler,
627        );
628        this
629    }
630}
631
632#[cfg(feature = "app-accessoryshopchangemenu")]
633pub trait IAccessoryShopChangeMenu_RequestCloseEventHandlerMethods: IAccessoryShopChangeMenu_RequestCloseEventHandler {
634    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
635    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
636        unsafe {
637            let __receiver = <AccessoryShopChangeMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
638                <Self as ::unity::SystemObject>::as_instance(self),
639            );
640            ::unity::il2cpp_call!((::unity::module_base()+0x29048d0usize)as*mut u8,();
641(AccessoryShopChangeMenu_RequestCloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
642        }
643    }
644    #[doc = "`Invoke()` overload"]
645    fn invoke(self) -> () {
646        unsafe {
647            let __receiver = <AccessoryShopChangeMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
648                <Self as ::unity::SystemObject>::as_instance(self),
649            );
650            {
651                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
652                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
653                    panic!(
654                        "unity: virtual slot {}
655 out of range (vtable len {}
656) on the runtime class behind {}
657 (method `{}
658`)",
659                        13usize,
660                        __vt.len(),
661                        <AccessoryShopChangeMenu_RequestCloseEventHandler as ::unity::ClassIdentity>::NAME,
662                        "Invoke",
663                    )
664                });
665                let __inner: extern "C" fn(AccessoryShopChangeMenu_RequestCloseEventHandler, ::unity::OptionalMethod) -> () =
666                    ::core::mem::transmute(__vi.method_ptr);
667                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
668                __inner(__receiver, __mi)
669            }
670        }
671    }
672}
673
674#[cfg(feature = "app-accessoryshopchangemenu")]
675impl<__T: IAccessoryShopChangeMenu_RequestCloseEventHandler> IAccessoryShopChangeMenu_RequestCloseEventHandlerMethods for __T {}
676
677#[cfg(feature = "app-accessoryshopchangemenu")]
678impl AccessoryShopChangeMenu_RequestCloseEventHandler {
679    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
681    }
682
683    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
685    }
686}
687
688#[cfg(feature = "app-accessoryshopchangemenu")]
689impl AccessoryShopChangeMenu_RequestCloseEventHandler {
690    #[doc = "Direct (non-virtual) call to `AccessoryShopChangeMenu_RequestCloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
691    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
692        let __mi = Self::invoke_method_info();
693        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
694        __inner(this.into(), ::core::option::Option::None)
695    }
696}
697
698#[cfg(feature = "app-accessoryshopchangemenu")]
699impl AccessoryShopChangeMenu_RequestCloseEventHandler {
700    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
701    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
702        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
703            panic!(
704                "{}
705::{}
706 failed to instantiate",
707                ::core::stringify!(AccessoryShopChangeMenu_RequestCloseEventHandler),
708                ::core::stringify!(new),
709            )
710        });
711        <Self as IAccessoryShopChangeMenu_RequestCloseEventHandlerMethods>::ctor(this, object, method);
712        this
713    }
714}
715
716#[cfg(feature = "app-accessoryshopchangemenu")]
717#[doc(hidden)]
718pub mod prelude {
719    pub use super::{
720        AccessoryShopChangeMenu, AccessoryShopChangeMenu_ChangeKindEventHandler, AccessoryShopChangeMenu_RequestCloseEventHandler,
721        IAccessoryShopChangeMenu, IAccessoryShopChangeMenuMethods, IAccessoryShopChangeMenu_ChangeKindEventHandler,
722        IAccessoryShopChangeMenu_ChangeKindEventHandlerMethods, IAccessoryShopChangeMenu_RequestCloseEventHandler,
723        IAccessoryShopChangeMenu_RequestCloseEventHandlerMethods,
724    };
725    #[cfg(feature = "app-basicmenu")]
726    pub use crate::app::basicmenu::IBasicMenuMethods;
727    #[cfg(feature = "app-procinst")]
728    pub use crate::app::procinst::IProcInstMethods;
729    #[cfg(feature = "system-delegate")]
730    pub use crate::system::delegate::IDelegateMethods;
731    #[cfg(feature = "system-multicastdelegate")]
732    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
733    #[cfg(feature = "system-object")]
734    pub use crate::system::object::IObjectMethods;
735    pub use crate::{
736        app::{basicmenu::IBasicMenu, procinst::IProcInst},
737        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
738    };
739}