Skip to main content

engage/generated/app/
shopunitselectmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-shopunitselectmenu-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/shopunitselectmenu/ShopUnitSelectMenu_HelpEventHandler.md"))]
21    #[::unity::class(namespace = "App", name = "ShopUnitSelectMenu.HelpEventHandler")]
22    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23    pub struct ShopUnitSelectMenu_HelpEventHandler {}
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopunitselectmenu/ShopUnitSelectMenu_SelectEventHandler.md"))]
26    #[::unity::class(namespace = "App", name = "ShopUnitSelectMenu.SelectEventHandler")]
27    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
28    pub struct ShopUnitSelectMenu_SelectEventHandler {}
29
30    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopunitselectmenu/ShopUnitSelectMenu.md"))]
31    #[::unity::class(namespace = "App", name = "ShopUnitSelectMenu")]
32    #[parent(crate::app::basicmenu::BasicMenu)]
33    pub struct ShopUnitSelectMenu {
34        #[offset(208)]
35        #[rename(name = "m_GameObject")]
36        pub m_game_object: crate::unity_engine::gameobject::GameObject,
37        #[offset(216)]
38        #[rename(name = "m_ShowGodRingIcon")]
39        pub m_show_god_ring_icon: bool,
40    }
41
42    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopunitselectmenu/ShopUnitSelectMenu_DecideEventHandler.md"))]
43    #[::unity::class(namespace = "App", name = "ShopUnitSelectMenu.DecideEventHandler")]
44    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
45    pub struct ShopUnitSelectMenu_DecideEventHandler {}
46}
47
48#[cfg(feature = "app-shopunitselectmenu-types")]
49pub use __types::*;
50
51#[cfg(feature = "app-shopunitselectmenu")]
52pub trait IShopUnitSelectMenu_HelpEventHandlerMethods: IShopUnitSelectMenu_HelpEventHandler {
53    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
54    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
55        unsafe {
56            let __receiver = <ShopUnitSelectMenu_HelpEventHandler as ::unity::FromIlInstance>::from_il_instance(
57                <Self as ::unity::SystemObject>::as_instance(self),
58            );
59            ::unity::il2cpp_call!((::unity::module_base()+0x1d6d730usize)as*mut u8,();
60(ShopUnitSelectMenu_HelpEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
61        }
62    }
63    #[doc = "`Invoke(crate::app::procinst::ProcInst)` overload"]
64    fn invoke(self, parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
65        unsafe {
66            let __receiver = <ShopUnitSelectMenu_HelpEventHandler as ::unity::FromIlInstance>::from_il_instance(
67                <Self as ::unity::SystemObject>::as_instance(self),
68            );
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(13usize).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                        13usize,
79                        __vt.len(),
80                        <ShopUnitSelectMenu_HelpEventHandler as ::unity::ClassIdentity>::NAME,
81                        "Invoke",
82                    )
83                });
84                let __inner: extern "C" fn(ShopUnitSelectMenu_HelpEventHandler, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
85                    ::core::mem::transmute(__vi.method_ptr);
86                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87                __inner(__receiver, ::core::convert::Into::into(parent), __mi)
88            }
89        }
90    }
91}
92
93#[cfg(feature = "app-shopunitselectmenu")]
94impl<__T: IShopUnitSelectMenu_HelpEventHandler> IShopUnitSelectMenu_HelpEventHandlerMethods for __T {}
95
96#[cfg(feature = "app-shopunitselectmenu")]
97impl ShopUnitSelectMenu_HelpEventHandler {
98    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100    }
101
102    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104    }
105}
106
107#[cfg(feature = "app-shopunitselectmenu")]
108impl ShopUnitSelectMenu_HelpEventHandler {
109    #[doc = "Direct (non-virtual) call to `ShopUnitSelectMenu_HelpEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
110    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, parent: crate::app::procinst::ProcInst) -> () {
111        let __mi = Self::invoke_method_info();
112        let __inner: extern "C" fn(::unity::IlInstance, crate::app::procinst::ProcInst, ::unity::OptionalMethod) -> () =
113            ::core::mem::transmute(__mi.method_ptr);
114        __inner(this.into(), parent, ::core::option::Option::None)
115    }
116}
117
118#[cfg(feature = "app-shopunitselectmenu")]
119impl ShopUnitSelectMenu_HelpEventHandler {
120    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
121    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
122        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
123            panic!(
124                "{}
125::{}
126 failed to instantiate",
127                ::core::stringify!(ShopUnitSelectMenu_HelpEventHandler),
128                ::core::stringify!(new),
129            )
130        });
131        <Self as IShopUnitSelectMenu_HelpEventHandlerMethods>::ctor(this, object, method);
132        this
133    }
134}
135
136#[cfg(feature = "app-shopunitselectmenu")]
137pub trait IShopUnitSelectMenu_SelectEventHandlerMethods: IShopUnitSelectMenu_SelectEventHandler {
138    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
139    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
140        unsafe {
141            let __receiver = <ShopUnitSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
142                <Self as ::unity::SystemObject>::as_instance(self),
143            );
144            ::unity::il2cpp_call!((::unity::module_base()+0x1d6daf0usize)as*mut u8,();
145(ShopUnitSelectMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
146        }
147    }
148    #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
149    fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
150        unsafe {
151            let __receiver = <ShopUnitSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
152                <Self as ::unity::SystemObject>::as_instance(self),
153            );
154            {
155                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
156                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
157                    panic!(
158                        "unity: virtual slot {}
159 out of range (vtable len {}
160) on the runtime class behind {}
161 (method `{}
162`)",
163                        13usize,
164                        __vt.len(),
165                        <ShopUnitSelectMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
166                        "Invoke",
167                    )
168                });
169                let __inner: extern "C" fn(ShopUnitSelectMenu_SelectEventHandler, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
170                    ::core::mem::transmute(__vi.method_ptr);
171                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
172                __inner(__receiver, ::core::convert::Into::into(unit), __mi)
173            }
174        }
175    }
176}
177
178#[cfg(feature = "app-shopunitselectmenu")]
179impl<__T: IShopUnitSelectMenu_SelectEventHandler> IShopUnitSelectMenu_SelectEventHandlerMethods for __T {}
180
181#[cfg(feature = "app-shopunitselectmenu")]
182impl ShopUnitSelectMenu_SelectEventHandler {
183    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185    }
186
187    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189    }
190}
191
192#[cfg(feature = "app-shopunitselectmenu")]
193impl ShopUnitSelectMenu_SelectEventHandler {
194    #[doc = "Direct (non-virtual) call to `ShopUnitSelectMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
195    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
196        let __mi = Self::invoke_method_info();
197        let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
198            ::core::mem::transmute(__mi.method_ptr);
199        __inner(this.into(), unit, ::core::option::Option::None)
200    }
201}
202
203#[cfg(feature = "app-shopunitselectmenu")]
204impl ShopUnitSelectMenu_SelectEventHandler {
205    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
206    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
207        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
208            panic!(
209                "{}
210::{}
211 failed to instantiate",
212                ::core::stringify!(ShopUnitSelectMenu_SelectEventHandler),
213                ::core::stringify!(new),
214            )
215        });
216        <Self as IShopUnitSelectMenu_SelectEventHandlerMethods>::ctor(this, object, method);
217        this
218    }
219}
220
221#[cfg(feature = "app-shopunitselectmenu")]
222impl ShopUnitSelectMenu {
223    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::unity_engine::gameobject::GameObject, crate::app::unit::Unit, i32, bool, crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler, crate::app::shopunitselectmenu::ShopUnitSelectMenu_SelectEventHandler, crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler, bool)` overload"]
224    pub fn create_bind(
225        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
226        game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
227        default_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
228        default_scroll_index: impl ::core::convert::Into<i32>,
229        adding_transporter: impl ::core::convert::Into<bool>,
230        decide_event_handler: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler>,
231        select_event_handler: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_SelectEventHandler>,
232        help_event_handler: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler>,
233        show_god_ring_icon: impl ::core::convert::Into<bool>,
234    ) -> () {
235        unsafe {
236            ::unity::il2cpp_call!((::unity::module_base()+0x21bb730usize)as*mut u8,();
237(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object),(crate::app::unit::Unit)::core::convert::Into::into(default_unit),(i32)::core::convert::Into::into(default_scroll_index),(bool)::core::convert::Into::into(adding_transporter),(crate::app::shopunitselectmenu::ShopUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::shopunitselectmenu::ShopUnitSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler)::core::convert::Into::into(help_event_handler),(bool)::core::convert::Into::into(show_god_ring_icon))
238        }
239    }
240}
241
242#[cfg(feature = "app-shopunitselectmenu")]
243pub trait IShopUnitSelectMenuMethods: IShopUnitSelectMenu {
244    #[doc = "`get_m_HelpEventHandler()` overload"]
245    fn get_m_help_event_handler(self) -> crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler {
246        unsafe {
247            let __receiver = <ShopUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248            ::unity::il2cpp_call!((::unity::module_base()+0x21bb710usize)as*mut u8,crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler;
249(ShopUnitSelectMenu)__receiver)
250        }
251    }
252    #[doc = "`set_m_HelpEventHandler(crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler)` overload"]
253    fn set_m_help_event_handler(self, value: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler>) -> () {
254        unsafe {
255            let __receiver = <ShopUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256            ::unity::il2cpp_call!((::unity::module_base()+0x21bb720usize)as*mut u8,();
257(ShopUnitSelectMenu)__receiver,(crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler)::core::convert::Into::into(value))
258        }
259    }
260    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shopunitselectmenucontent::ShopUnitSelectMenuContent, crate::unity_engine::gameobject::GameObject, i32, i32, crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler, bool)` overload"]
261    fn ctor(
262        self,
263        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
264        menu_content: impl ::core::convert::Into<crate::app::shopunitselectmenucontent::ShopUnitSelectMenuContent>,
265        menu_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
266        default_menu_item_index: impl ::core::convert::Into<i32>,
267        default_scroll_index: impl ::core::convert::Into<i32>,
268        help_event_handler: impl ::core::convert::Into<crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler>,
269        show_god_ring_icon: impl ::core::convert::Into<bool>,
270    ) -> () {
271        unsafe {
272            let __receiver = <ShopUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            ::unity::il2cpp_call!((::unity::module_base()+0x21bba30usize)as*mut u8,();
274(ShopUnitSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::shopunitselectmenucontent::ShopUnitSelectMenuContent)::core::convert::Into::into(menu_content),(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(menu_object),(i32)::core::convert::Into::into(default_menu_item_index),(i32)::core::convert::Into::into(default_scroll_index),(crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler)::core::convert::Into::into(help_event_handler),(bool)::core::convert::Into::into(show_god_ring_icon))
275        }
276    }
277    #[doc = "`GetName()` overload"]
278    fn get_name(self) -> ::unity::Il2CppString {
279        unsafe {
280            let __receiver = <ShopUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281            {
282                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
283                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
284                    panic!(
285                        "unity: virtual slot {}
286 out of range (vtable len {}
287) on the runtime class behind {}
288 (method `{}
289`)",
290                        30usize,
291                        __vt.len(),
292                        <ShopUnitSelectMenu as ::unity::ClassIdentity>::NAME,
293                        "GetName",
294                    )
295                });
296                let __inner: extern "C" fn(ShopUnitSelectMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
297                    ::core::mem::transmute(__vi.method_ptr);
298                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
299                __inner(__receiver, __mi)
300            }
301        }
302    }
303    #[doc = "`XCall()` overload"]
304    fn x_call(self) -> crate::app::basicmenu::BasicMenu_Result {
305        unsafe {
306            let __receiver = <ShopUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307            {
308                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
309                let __vi = *__vt.get(52usize).unwrap_or_else(|| {
310                    panic!(
311                        "unity: virtual slot {}
312 out of range (vtable len {}
313) on the runtime class behind {}
314 (method `{}
315`)",
316                        52usize,
317                        __vt.len(),
318                        <ShopUnitSelectMenu as ::unity::ClassIdentity>::NAME,
319                        "XCall",
320                    )
321                });
322                let __inner: extern "C" fn(ShopUnitSelectMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
323                    ::core::mem::transmute(__vi.method_ptr);
324                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
325                __inner(__receiver, __mi)
326            }
327        }
328    }
329    #[doc = "`IsShowGodRingIcon()` overload"]
330    fn is_show_god_ring_icon(self) -> bool {
331        unsafe {
332            let __receiver = <ShopUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333            ::unity::il2cpp_call!((::unity::module_base()+0x21bbba0usize)as*mut u8,bool;
334(ShopUnitSelectMenu)__receiver)
335        }
336    }
337}
338
339#[cfg(feature = "app-shopunitselectmenu")]
340impl<__T: IShopUnitSelectMenu> IShopUnitSelectMenuMethods for __T {}
341
342#[cfg(feature = "app-shopunitselectmenu")]
343impl ShopUnitSelectMenu {
344    pub fn get_m_help_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
346    }
347
348    pub fn set_m_help_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
350    }
351
352    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
354    }
355
356    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
358    }
359
360    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
362    }
363
364    pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
366    }
367
368    pub fn is_show_god_ring_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
370    }
371}
372
373#[cfg(feature = "app-shopunitselectmenu")]
374impl ShopUnitSelectMenu {
375    #[doc = "Direct (non-virtual) call to `ShopUnitSelectMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
376    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
377        let __mi = Self::get_name_method_info();
378        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
379        __inner(this.into(), ::core::option::Option::None)
380    }
381
382    #[doc = "Direct (non-virtual) call to `ShopUnitSelectMenu`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
383    pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
384        let __mi = Self::x_call_method_info();
385        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
386            ::core::mem::transmute(__mi.method_ptr);
387        __inner(this.into(), ::core::option::Option::None)
388    }
389}
390
391#[cfg(feature = "app-shopunitselectmenu")]
392impl ShopUnitSelectMenu {
393    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shopunitselectmenucontent::ShopUnitSelectMenuContent, crate::unity_engine::gameobject::GameObject, i32, i32, crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler, bool)` — overload selector"]
394    pub fn new(
395        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
396        menu_content: crate::app::shopunitselectmenucontent::ShopUnitSelectMenuContent,
397        menu_object: crate::unity_engine::gameobject::GameObject,
398        default_menu_item_index: i32,
399        default_scroll_index: i32,
400        help_event_handler: crate::app::shopunitselectmenu::ShopUnitSelectMenu_HelpEventHandler,
401        show_god_ring_icon: bool,
402    ) -> Self {
403        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
404            panic!(
405                "{}
406::{}
407 failed to instantiate",
408                ::core::stringify!(ShopUnitSelectMenu),
409                ::core::stringify!(new),
410            )
411        });
412        <Self as IShopUnitSelectMenuMethods>::ctor(
413            this,
414            menu_item_list,
415            menu_content,
416            menu_object,
417            default_menu_item_index,
418            default_scroll_index,
419            help_event_handler,
420            show_god_ring_icon,
421        );
422        this
423    }
424}
425
426#[cfg(feature = "app-shopunitselectmenu")]
427pub trait IShopUnitSelectMenu_DecideEventHandlerMethods: IShopUnitSelectMenu_DecideEventHandler {
428    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
429    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
430        unsafe {
431            let __receiver = <ShopUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
432                <Self as ::unity::SystemObject>::as_instance(self),
433            );
434            ::unity::il2cpp_call!((::unity::module_base()+0x1d6d3b0usize)as*mut u8,();
435(ShopUnitSelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
436        }
437    }
438    #[doc = "`Invoke(crate::app::basicmenu::BasicMenu_Result, crate::app::unit::Unit, i32)` overload"]
439    fn invoke(
440        self,
441        result: impl ::core::convert::Into<crate::app::basicmenu::BasicMenu_Result>,
442        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
443        scroll_index: impl ::core::convert::Into<i32>,
444    ) -> () {
445        unsafe {
446            let __receiver = <ShopUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
447                <Self as ::unity::SystemObject>::as_instance(self),
448            );
449            {
450                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
451                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
452                    panic!(
453                        "unity: virtual slot {}
454 out of range (vtable len {}
455) on the runtime class behind {}
456 (method `{}
457`)",
458                        13usize,
459                        __vt.len(),
460                        <ShopUnitSelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
461                        "Invoke",
462                    )
463                });
464                let __inner: extern "C" fn(
465                    ShopUnitSelectMenu_DecideEventHandler,
466                    crate::app::basicmenu::BasicMenu_Result,
467                    crate::app::unit::Unit,
468                    i32,
469                    ::unity::OptionalMethod,
470                ) -> () = ::core::mem::transmute(__vi.method_ptr);
471                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
472                __inner(
473                    __receiver,
474                    ::core::convert::Into::into(result),
475                    ::core::convert::Into::into(unit),
476                    ::core::convert::Into::into(scroll_index),
477                    __mi,
478                )
479            }
480        }
481    }
482}
483
484#[cfg(feature = "app-shopunitselectmenu")]
485impl<__T: IShopUnitSelectMenu_DecideEventHandler> IShopUnitSelectMenu_DecideEventHandlerMethods for __T {}
486
487#[cfg(feature = "app-shopunitselectmenu")]
488impl ShopUnitSelectMenu_DecideEventHandler {
489    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
491    }
492
493    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
495    }
496}
497
498#[cfg(feature = "app-shopunitselectmenu")]
499impl ShopUnitSelectMenu_DecideEventHandler {
500    #[doc = "Direct (non-virtual) call to `ShopUnitSelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
501    pub unsafe fn invoke(
502        this: impl ::core::convert::Into<::unity::IlInstance>,
503        result: crate::app::basicmenu::BasicMenu_Result,
504        unit: crate::app::unit::Unit,
505        scroll_index: i32,
506    ) -> () {
507        let __mi = Self::invoke_method_info();
508        let __inner: extern "C" fn(
509            ::unity::IlInstance,
510            crate::app::basicmenu::BasicMenu_Result,
511            crate::app::unit::Unit,
512            i32,
513            ::unity::OptionalMethod,
514        ) -> () = ::core::mem::transmute(__mi.method_ptr);
515        __inner(this.into(), result, unit, scroll_index, ::core::option::Option::None)
516    }
517}
518
519#[cfg(feature = "app-shopunitselectmenu")]
520impl ShopUnitSelectMenu_DecideEventHandler {
521    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
522    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
523        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
524            panic!(
525                "{}
526::{}
527 failed to instantiate",
528                ::core::stringify!(ShopUnitSelectMenu_DecideEventHandler),
529                ::core::stringify!(new),
530            )
531        });
532        <Self as IShopUnitSelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
533        this
534    }
535}
536
537#[cfg(feature = "app-shopunitselectmenu")]
538#[doc(hidden)]
539pub mod prelude {
540    pub use super::{
541        IShopUnitSelectMenu, IShopUnitSelectMenuMethods, IShopUnitSelectMenu_DecideEventHandler, IShopUnitSelectMenu_DecideEventHandlerMethods,
542        IShopUnitSelectMenu_HelpEventHandler, IShopUnitSelectMenu_HelpEventHandlerMethods, IShopUnitSelectMenu_SelectEventHandler,
543        IShopUnitSelectMenu_SelectEventHandlerMethods, ShopUnitSelectMenu, ShopUnitSelectMenu_DecideEventHandler,
544        ShopUnitSelectMenu_HelpEventHandler, ShopUnitSelectMenu_SelectEventHandler,
545    };
546    #[cfg(feature = "app-basicmenu")]
547    pub use crate::app::basicmenu::IBasicMenuMethods;
548    #[cfg(feature = "app-procinst")]
549    pub use crate::app::procinst::IProcInstMethods;
550    #[cfg(feature = "system-delegate")]
551    pub use crate::system::delegate::IDelegateMethods;
552    #[cfg(feature = "system-multicastdelegate")]
553    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
554    #[cfg(feature = "system-object")]
555    pub use crate::system::object::IObjectMethods;
556    pub use crate::{
557        app::{basicmenu::IBasicMenu, procinst::IProcInst},
558        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
559    };
560}