Skip to main content

engage/generated/app/
arenatopmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-arenatopmenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicmenu::{BasicMenu, IBasicMenu},
11            basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12            procinst::{IProcInst, ProcInst},
13        },
14        system::{
15            delegate::{Delegate, IDelegate},
16            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17            object::{IObject, Object},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/arenatopmenu/ArenaTopMenu_DecideEventHandler.md"))]
22    #[::unity::class(namespace = "App", name = "ArenaTopMenu.DecideEventHandler")]
23    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
24    pub struct ArenaTopMenu_DecideEventHandler {}
25
26    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/arenatopmenu/ArenaTopMenu_TrainingMenuItem.md"))]
27    #[::unity::class(namespace = "App", name = "ArenaTopMenu.TrainingMenuItem")]
28    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
29    pub struct ArenaTopMenu_TrainingMenuItem {
30        #[offset(104)]
31        #[rename(name = "m_DecideEventHandler")]
32        pub m_decide_event_handler: crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler,
33        #[offset(112)]
34        #[rename(name = "m_Index")]
35        pub m_index: i32,
36        #[offset(116)]
37        #[rename(name = "m_IsActive")]
38        pub m_is_active: bool,
39    }
40
41    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/arenatopmenu/ArenaTopMenu.md"))]
42    #[::unity::class(namespace = "App", name = "ArenaTopMenu")]
43    #[parent(crate::app::basicmenu::BasicMenu)]
44    pub struct ArenaTopMenu {
45        #[offset(200)]
46        #[rename(name = "m_DecideEventHandler")]
47        pub m_decide_event_handler: crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler,
48    }
49}
50
51#[cfg(feature = "app-arenatopmenu-types")]
52pub use __types::*;
53
54#[cfg(feature = "app-arenatopmenu")]
55pub trait IArenaTopMenu_DecideEventHandlerMethods: IArenaTopMenu_DecideEventHandler {
56    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
57    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
58        unsafe {
59            let __receiver =
60                <ArenaTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x1bae660usize)as*mut u8,();
62(ArenaTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
63        }
64    }
65    #[doc = "`Invoke(bool, i32)` overload"]
66    fn invoke(self, go_next: impl ::core::convert::Into<bool>, index: impl ::core::convert::Into<i32>) -> () {
67        unsafe {
68            let __receiver =
69                <ArenaTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            {
71                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
73                    panic!(
74                        "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79                        13usize,
80                        __vt.len(),
81                        <ArenaTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
82                        "Invoke",
83                    )
84                });
85                let __inner: extern "C" fn(ArenaTopMenu_DecideEventHandler, bool, i32, ::unity::OptionalMethod) -> () =
86                    ::core::mem::transmute(__vi.method_ptr);
87                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
88                __inner(__receiver, ::core::convert::Into::into(go_next), ::core::convert::Into::into(index), __mi)
89            }
90        }
91    }
92}
93
94#[cfg(feature = "app-arenatopmenu")]
95impl<__T: IArenaTopMenu_DecideEventHandler> IArenaTopMenu_DecideEventHandlerMethods for __T {}
96
97#[cfg(feature = "app-arenatopmenu")]
98impl ArenaTopMenu_DecideEventHandler {
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101    }
102
103    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
105    }
106}
107
108#[cfg(feature = "app-arenatopmenu")]
109impl ArenaTopMenu_DecideEventHandler {
110    #[doc = "Direct (non-virtual) call to `ArenaTopMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
111    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, go_next: bool, index: i32) -> () {
112        let __mi = Self::invoke_method_info();
113        let __inner: extern "C" fn(::unity::IlInstance, bool, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
114        __inner(this.into(), go_next, index, ::core::option::Option::None)
115    }
116}
117
118#[cfg(feature = "app-arenatopmenu")]
119impl ArenaTopMenu_DecideEventHandler {
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!(ArenaTopMenu_DecideEventHandler),
128                ::core::stringify!(new),
129            )
130        });
131        <Self as IArenaTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
132        this
133    }
134}
135
136#[cfg(feature = "app-arenatopmenu")]
137pub trait IArenaTopMenu_TrainingMenuItemMethods: IArenaTopMenu_TrainingMenuItem {
138    #[doc = "`.ctor(crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler, i32, bool)` overload"]
139    fn ctor(
140        self,
141        decide_event_handler: impl ::core::convert::Into<crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler>,
142        index: impl ::core::convert::Into<i32>,
143        is_active: impl ::core::convert::Into<bool>,
144    ) -> () {
145        unsafe {
146            let __receiver =
147                <ArenaTopMenu_TrainingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x1bae990usize)as*mut u8,();
149(ArenaTopMenu_TrainingMenuItem)__receiver,(crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(i32)::core::convert::Into::into(index),(bool)::core::convert::Into::into(is_active))
150        }
151    }
152    #[doc = "`BuildAttribute()` overload"]
153    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
154        unsafe {
155            let __receiver =
156                <ArenaTopMenu_TrainingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            {
158                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
160                    panic!(
161                        "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166                        8usize,
167                        __vt.len(),
168                        <ArenaTopMenu_TrainingMenuItem as ::unity::ClassIdentity>::NAME,
169                        "BuildAttribute",
170                    )
171                });
172                let __inner: extern "C" fn(
173                    ArenaTopMenu_TrainingMenuItem,
174                    ::unity::OptionalMethod,
175                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
176                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177                __inner(__receiver, __mi)
178            }
179        }
180    }
181    #[doc = "`OnSelect()` overload"]
182    fn on_select(self) -> () {
183        unsafe {
184            let __receiver =
185                <ArenaTopMenu_TrainingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            {
187                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
188                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
189                    panic!(
190                        "unity: virtual slot {}
191 out of range (vtable len {}
192) on the runtime class behind {}
193 (method `{}
194`)",
195                        12usize,
196                        __vt.len(),
197                        <ArenaTopMenu_TrainingMenuItem as ::unity::ClassIdentity>::NAME,
198                        "OnSelect",
199                    )
200                });
201                let __inner: extern "C" fn(ArenaTopMenu_TrainingMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
202                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
203                __inner(__receiver, __mi)
204            }
205        }
206    }
207    #[doc = "`ACall()` overload"]
208    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
209        unsafe {
210            let __receiver =
211                <ArenaTopMenu_TrainingMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            {
213                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
214                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
215                    panic!(
216                        "unity: virtual slot {}
217 out of range (vtable len {}
218) on the runtime class behind {}
219 (method `{}
220`)",
221                        18usize,
222                        __vt.len(),
223                        <ArenaTopMenu_TrainingMenuItem as ::unity::ClassIdentity>::NAME,
224                        "ACall",
225                    )
226                });
227                let __inner: extern "C" fn(ArenaTopMenu_TrainingMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
228                    ::core::mem::transmute(__vi.method_ptr);
229                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
230                __inner(__receiver, __mi)
231            }
232        }
233    }
234}
235
236#[cfg(feature = "app-arenatopmenu")]
237impl<__T: IArenaTopMenu_TrainingMenuItem> IArenaTopMenu_TrainingMenuItemMethods for __T {}
238
239#[cfg(feature = "app-arenatopmenu")]
240impl ArenaTopMenu_TrainingMenuItem {
241    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
243    }
244
245    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
247    }
248
249    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
251    }
252
253    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
255    }
256}
257
258#[cfg(feature = "app-arenatopmenu")]
259impl ArenaTopMenu_TrainingMenuItem {
260    #[doc = "Direct (non-virtual) call to `ArenaTopMenu_TrainingMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
262        let __mi = Self::build_attribute_method_info();
263        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
264            ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), ::core::option::Option::None)
266    }
267
268    #[doc = "Direct (non-virtual) call to `ArenaTopMenu_TrainingMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
270        let __mi = Self::on_select_method_info();
271        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
272        __inner(this.into(), ::core::option::Option::None)
273    }
274
275    #[doc = "Direct (non-virtual) call to `ArenaTopMenu_TrainingMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
277        let __mi = Self::a_call_method_info();
278        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
279            ::core::mem::transmute(__mi.method_ptr);
280        __inner(this.into(), ::core::option::Option::None)
281    }
282}
283
284#[cfg(feature = "app-arenatopmenu")]
285impl ArenaTopMenu_TrainingMenuItem {
286    #[doc = "`.ctor(crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler, i32, bool)` — overload selector"]
287    pub fn new(decide_event_handler: crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler, index: i32, is_active: bool) -> Self {
288        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
289            panic!(
290                "{}
291::{}
292 failed to instantiate",
293                ::core::stringify!(ArenaTopMenu_TrainingMenuItem),
294                ::core::stringify!(new),
295            )
296        });
297        <Self as IArenaTopMenu_TrainingMenuItemMethods>::ctor(this, decide_event_handler, index, is_active);
298        this
299    }
300}
301
302#[cfg(feature = "app-arenatopmenu")]
303impl ArenaTopMenu {
304    #[doc = "`CreateBind(crate::app::procinst::ProcInst, i32, crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler)` overload"]
305    pub fn create_bind(
306        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
307        default_index: impl ::core::convert::Into<i32>,
308        decide_event_handler: impl ::core::convert::Into<crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler>,
309    ) -> () {
310        unsafe {
311            ::unity::il2cpp_call!((::unity::module_base()+0x21175a0usize)as*mut u8,();
312(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(default_index),(crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
313        }
314    }
315}
316
317#[cfg(feature = "app-arenatopmenu")]
318pub trait IArenaTopMenuMethods: IArenaTopMenu {
319    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::arenatopmenucontent::ArenaTopMenuContent, crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler)` overload"]
320    fn ctor(
321        self,
322        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
323        menu_content: impl ::core::convert::Into<crate::app::arenatopmenucontent::ArenaTopMenuContent>,
324        decide_event_handler: impl ::core::convert::Into<crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler>,
325    ) -> () {
326        unsafe {
327            let __receiver = <ArenaTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328            ::unity::il2cpp_call!((::unity::module_base()+0x2117a30usize)as*mut u8,();
329(ArenaTopMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::arenatopmenucontent::ArenaTopMenuContent)::core::convert::Into::into(menu_content),(crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
330        }
331    }
332    #[doc = "`GetName()` overload"]
333    fn get_name(self) -> ::unity::Il2CppString {
334        unsafe {
335            let __receiver = <ArenaTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336            {
337                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
338                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
339                    panic!(
340                        "unity: virtual slot {}
341 out of range (vtable len {}
342) on the runtime class behind {}
343 (method `{}
344`)",
345                        30usize,
346                        __vt.len(),
347                        <ArenaTopMenu as ::unity::ClassIdentity>::NAME,
348                        "GetName",
349                    )
350                });
351                let __inner: extern "C" fn(ArenaTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
352                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
353                __inner(__receiver, __mi)
354            }
355        }
356    }
357    #[doc = "`ToggleNormal(i32)` overload"]
358    fn toggle_normal(self, index: impl ::core::convert::Into<i32>) -> () {
359        unsafe {
360            let __receiver = <ArenaTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
361            ::unity::il2cpp_call!((::unity::module_base()+0x2117ac0usize)as*mut u8,();
362(ArenaTopMenu)__receiver,(i32)::core::convert::Into::into(index))
363        }
364    }
365    #[doc = "`BCall()` overload"]
366    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
367        unsafe {
368            let __receiver = <ArenaTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369            {
370                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
371                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
372                    panic!(
373                        "unity: virtual slot {}
374 out of range (vtable len {}
375) on the runtime class behind {}
376 (method `{}
377`)",
378                        51usize,
379                        __vt.len(),
380                        <ArenaTopMenu as ::unity::ClassIdentity>::NAME,
381                        "BCall",
382                    )
383                });
384                let __inner: extern "C" fn(ArenaTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
385                    ::core::mem::transmute(__vi.method_ptr);
386                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
387                __inner(__receiver, __mi)
388            }
389        }
390    }
391}
392
393#[cfg(feature = "app-arenatopmenu")]
394impl<__T: IArenaTopMenu> IArenaTopMenuMethods for __T {}
395
396#[cfg(feature = "app-arenatopmenu")]
397impl ArenaTopMenu {
398    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
400    }
401
402    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
404    }
405
406    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
408    }
409
410    pub fn toggle_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
412    }
413
414    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
416    }
417}
418
419#[cfg(feature = "app-arenatopmenu")]
420impl ArenaTopMenu {
421    #[doc = "Direct (non-virtual) call to `ArenaTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
422    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
423        let __mi = Self::get_name_method_info();
424        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
425        __inner(this.into(), ::core::option::Option::None)
426    }
427
428    #[doc = "Direct (non-virtual) call to `ArenaTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
429    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
430        let __mi = Self::b_call_method_info();
431        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
432            ::core::mem::transmute(__mi.method_ptr);
433        __inner(this.into(), ::core::option::Option::None)
434    }
435}
436
437#[cfg(feature = "app-arenatopmenu")]
438impl ArenaTopMenu {
439    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::arenatopmenucontent::ArenaTopMenuContent, crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler)` — overload selector"]
440    pub fn new(
441        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
442        menu_content: crate::app::arenatopmenucontent::ArenaTopMenuContent,
443        decide_event_handler: crate::app::arenatopmenu::ArenaTopMenu_DecideEventHandler,
444    ) -> Self {
445        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
446            panic!(
447                "{}
448::{}
449 failed to instantiate",
450                ::core::stringify!(ArenaTopMenu),
451                ::core::stringify!(new),
452            )
453        });
454        <Self as IArenaTopMenuMethods>::ctor(this, menu_item_list, menu_content, decide_event_handler);
455        this
456    }
457}
458
459#[cfg(feature = "app-arenatopmenu")]
460#[doc(hidden)]
461pub mod prelude {
462    pub use super::{
463        ArenaTopMenu, ArenaTopMenu_DecideEventHandler, ArenaTopMenu_TrainingMenuItem, IArenaTopMenu, IArenaTopMenuMethods,
464        IArenaTopMenu_DecideEventHandler, IArenaTopMenu_DecideEventHandlerMethods, IArenaTopMenu_TrainingMenuItem,
465        IArenaTopMenu_TrainingMenuItemMethods,
466    };
467    #[cfg(feature = "app-basicmenu")]
468    pub use crate::app::basicmenu::IBasicMenuMethods;
469    #[cfg(feature = "app-basicmenuitem")]
470    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
471    #[cfg(feature = "app-procinst")]
472    pub use crate::app::procinst::IProcInstMethods;
473    #[cfg(feature = "system-delegate")]
474    pub use crate::system::delegate::IDelegateMethods;
475    #[cfg(feature = "system-multicastdelegate")]
476    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
477    #[cfg(feature = "system-object")]
478    pub use crate::system::object::IObjectMethods;
479    pub use crate::{
480        app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
481        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
482    };
483}