Skip to main content

engage/generated/app/
refreshunitselectmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-refreshunitselectmenu-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/refreshunitselectmenu/RefreshUnitSelectMenu_CloseEventHandler.md"))]
21    #[::unity::class(namespace = "App", name = "RefreshUnitSelectMenu.CloseEventHandler")]
22    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23    pub struct RefreshUnitSelectMenu_CloseEventHandler {}
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitselectmenu/RefreshUnitSelectMenu_SelectEventHandler.md"))]
26    #[::unity::class(namespace = "App", name = "RefreshUnitSelectMenu.SelectEventHandler")]
27    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
28    pub struct RefreshUnitSelectMenu_SelectEventHandler {}
29
30    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitselectmenu/RefreshUnitSelectMenu.md"))]
31    #[::unity::class(namespace = "App", name = "RefreshUnitSelectMenu")]
32    #[parent(crate::app::basicmenu::BasicMenu)]
33    pub struct RefreshUnitSelectMenu {
34        #[static_field]
35        #[rename(name = "m_MenuItemIndexNone")]
36        pub m_menu_item_index_none: i32,
37        #[static_field]
38        #[rename(name = "m_MenuItemIndexEmpty")]
39        pub m_menu_item_index_empty: i32,
40        #[offset(196)]
41        #[rename(name = "m_DecidedMenuItemIndex")]
42        pub m_decided_menu_item_index: i32,
43        #[offset(200)]
44        #[rename(name = "m_UnselectableUnit")]
45        pub m_unselectable_unit: crate::app::unit::Unit,
46        #[offset(208)]
47        #[rename(name = "m_DecideEventHandler")]
48        pub m_decide_event_handler: crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler,
49        #[offset(216)]
50        #[rename(name = "m_CloseEventHandler")]
51        pub m_close_event_handler: crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler,
52        #[offset(224)]
53        #[rename(name = "m_DisposeEventHandler")]
54        pub m_dispose_event_handler: crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler,
55    }
56
57    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitselectmenu/RefreshUnitSelectMenu_DecideEventHandler.md"))]
58    #[::unity::class(namespace = "App", name = "RefreshUnitSelectMenu.DecideEventHandler")]
59    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
60    pub struct RefreshUnitSelectMenu_DecideEventHandler {}
61
62    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refreshunitselectmenu/RefreshUnitSelectMenu_DisposeEventHandler.md"))]
63    #[::unity::class(namespace = "App", name = "RefreshUnitSelectMenu.DisposeEventHandler")]
64    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
65    pub struct RefreshUnitSelectMenu_DisposeEventHandler {}
66}
67
68#[cfg(feature = "app-refreshunitselectmenu-types")]
69pub use __types::*;
70
71#[cfg(feature = "app-refreshunitselectmenu")]
72pub trait IRefreshUnitSelectMenu_CloseEventHandlerMethods: IRefreshUnitSelectMenu_CloseEventHandler {
73    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
74    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
75        unsafe {
76            let __receiver = <RefreshUnitSelectMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
77                <Self as ::unity::SystemObject>::as_instance(self),
78            );
79            ::unity::il2cpp_call!((::unity::module_base()+0x1b01270usize)as*mut u8,();
80(RefreshUnitSelectMenu_CloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
81        }
82    }
83    #[doc = "`Invoke()` overload"]
84    fn invoke(self) -> () {
85        unsafe {
86            let __receiver = <RefreshUnitSelectMenu_CloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
87                <Self as ::unity::SystemObject>::as_instance(self),
88            );
89            {
90                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
91                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
92                    panic!(
93                        "unity: virtual slot {}
94 out of range (vtable len {}
95) on the runtime class behind {}
96 (method `{}
97`)",
98                        13usize,
99                        __vt.len(),
100                        <RefreshUnitSelectMenu_CloseEventHandler as ::unity::ClassIdentity>::NAME,
101                        "Invoke",
102                    )
103                });
104                let __inner: extern "C" fn(RefreshUnitSelectMenu_CloseEventHandler, ::unity::OptionalMethod) -> () =
105                    ::core::mem::transmute(__vi.method_ptr);
106                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
107                __inner(__receiver, __mi)
108            }
109        }
110    }
111}
112
113#[cfg(feature = "app-refreshunitselectmenu")]
114impl<__T: IRefreshUnitSelectMenu_CloseEventHandler> IRefreshUnitSelectMenu_CloseEventHandlerMethods for __T {}
115
116#[cfg(feature = "app-refreshunitselectmenu")]
117impl RefreshUnitSelectMenu_CloseEventHandler {
118    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120    }
121
122    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124    }
125}
126
127#[cfg(feature = "app-refreshunitselectmenu")]
128impl RefreshUnitSelectMenu_CloseEventHandler {
129    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu_CloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
130    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
131        let __mi = Self::invoke_method_info();
132        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
133        __inner(this.into(), ::core::option::Option::None)
134    }
135}
136
137#[cfg(feature = "app-refreshunitselectmenu")]
138impl RefreshUnitSelectMenu_CloseEventHandler {
139    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
140    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
141        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
142            panic!(
143                "{}
144::{}
145 failed to instantiate",
146                ::core::stringify!(RefreshUnitSelectMenu_CloseEventHandler),
147                ::core::stringify!(new),
148            )
149        });
150        <Self as IRefreshUnitSelectMenu_CloseEventHandlerMethods>::ctor(this, object, method);
151        this
152    }
153}
154
155#[cfg(feature = "app-refreshunitselectmenu")]
156pub trait IRefreshUnitSelectMenu_SelectEventHandlerMethods: IRefreshUnitSelectMenu_SelectEventHandler {
157    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
158    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
159        unsafe {
160            let __receiver = <RefreshUnitSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
161                <Self as ::unity::SystemObject>::as_instance(self),
162            );
163            ::unity::il2cpp_call!((::unity::module_base()+0x1b01bf0usize)as*mut u8,();
164(RefreshUnitSelectMenu_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
165        }
166    }
167    #[doc = "`Invoke(crate::app::unit::Unit, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
168    fn invoke(
169        self,
170        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
171        caption_mid: impl ::core::convert::Into<::unity::Il2CppString>,
172        message_mid: impl ::core::convert::Into<::unity::Il2CppString>,
173    ) -> () {
174        unsafe {
175            let __receiver = <RefreshUnitSelectMenu_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
176                <Self as ::unity::SystemObject>::as_instance(self),
177            );
178            {
179                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
181                    panic!(
182                        "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187                        13usize,
188                        __vt.len(),
189                        <RefreshUnitSelectMenu_SelectEventHandler as ::unity::ClassIdentity>::NAME,
190                        "Invoke",
191                    )
192                });
193                let __inner: extern "C" fn(
194                    RefreshUnitSelectMenu_SelectEventHandler,
195                    crate::app::unit::Unit,
196                    ::unity::Il2CppString,
197                    ::unity::Il2CppString,
198                    ::unity::OptionalMethod,
199                ) -> () = ::core::mem::transmute(__vi.method_ptr);
200                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
201                __inner(
202                    __receiver,
203                    ::core::convert::Into::into(unit),
204                    ::core::convert::Into::into(caption_mid),
205                    ::core::convert::Into::into(message_mid),
206                    __mi,
207                )
208            }
209        }
210    }
211}
212
213#[cfg(feature = "app-refreshunitselectmenu")]
214impl<__T: IRefreshUnitSelectMenu_SelectEventHandler> IRefreshUnitSelectMenu_SelectEventHandlerMethods for __T {}
215
216#[cfg(feature = "app-refreshunitselectmenu")]
217impl RefreshUnitSelectMenu_SelectEventHandler {
218    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
220    }
221
222    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
224    }
225}
226
227#[cfg(feature = "app-refreshunitselectmenu")]
228impl RefreshUnitSelectMenu_SelectEventHandler {
229    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn invoke(
231        this: impl ::core::convert::Into<::unity::IlInstance>,
232        unit: crate::app::unit::Unit,
233        caption_mid: ::unity::Il2CppString,
234        message_mid: ::unity::Il2CppString,
235    ) -> () {
236        let __mi = Self::invoke_method_info();
237        let __inner: extern "C" fn(
238            ::unity::IlInstance,
239            crate::app::unit::Unit,
240            ::unity::Il2CppString,
241            ::unity::Il2CppString,
242            ::unity::OptionalMethod,
243        ) -> () = ::core::mem::transmute(__mi.method_ptr);
244        __inner(this.into(), unit, caption_mid, message_mid, ::core::option::Option::None)
245    }
246}
247
248#[cfg(feature = "app-refreshunitselectmenu")]
249impl RefreshUnitSelectMenu_SelectEventHandler {
250    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
251    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
252        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
253            panic!(
254                "{}
255::{}
256 failed to instantiate",
257                ::core::stringify!(RefreshUnitSelectMenu_SelectEventHandler),
258                ::core::stringify!(new),
259            )
260        });
261        <Self as IRefreshUnitSelectMenu_SelectEventHandlerMethods>::ctor(this, object, method);
262        this
263    }
264}
265
266#[cfg(feature = "app-refreshunitselectmenu")]
267impl RefreshUnitSelectMenu {
268    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent, crate::app::unit::Unit, crate::app::unit::Unit, bool, i32, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_SelectEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler)` overload"]
269    pub fn create_bind(
270        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
271        menu_content: impl ::core::convert::Into<crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent>,
272        initial_selected_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
273        unselectable_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
274        selected_entrust: impl ::core::convert::Into<bool>,
275        initial_scroll_index: impl ::core::convert::Into<i32>,
276        select_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_SelectEventHandler>,
277        decide_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler>,
278        close_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler>,
279        dispose_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler>,
280    ) -> crate::app::refreshunitselectmenu::RefreshUnitSelectMenu {
281        unsafe {
282            ::unity::il2cpp_call!((::unity::module_base()+0x22bfb60usize)as*mut u8,crate::app::refreshunitselectmenu::RefreshUnitSelectMenu;
283(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent)::core::convert::Into::into(menu_content),(crate::app::unit::Unit)::core::convert::Into::into(initial_selected_unit),(crate::app::unit::Unit)::core::convert::Into::into(unselectable_unit),(bool)::core::convert::Into::into(selected_entrust),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler)::core::convert::Into::into(dispose_event_handler))
284        }
285    }
286
287    #[doc = "`CreateMenuItem(crate::app::unit::Unit, crate::app::unit::Unit, bool, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_SelectEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler, *muti32)` overload"]
288    pub fn create_menu_item(
289        initial_selected_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
290        unselectable_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
291        selected_entrust: impl ::core::convert::Into<bool>,
292        select_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_SelectEventHandler>,
293        decide_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler>,
294    ) -> (
295        crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
296        i32,
297    ) {
298        unsafe {
299            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
300            let __ret = {
301                ::unity::il2cpp_call!((::unity::module_base()+0x22c1510usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
302(crate::app::unit::Unit)::core::convert::Into::into(initial_selected_unit),(crate::app::unit::Unit)::core::convert::Into::into(unselectable_unit),(bool)::core::convert::Into::into(selected_entrust),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(*mut i32)__out_0.as_mut_ptr())
303            };
304            (__ret, __out_0.assume_init())
305        }
306    }
307
308    #[doc = "`.cctor()` overload"]
309    pub fn cctor() -> () {
310        unsafe {
311            ::unity::il2cpp_call!((::unity::module_base()+0x22c2110usize)as*mut u8,();
312            )
313        }
314    }
315}
316
317#[cfg(feature = "app-refreshunitselectmenu")]
318pub trait IRefreshUnitSelectMenuMethods: IRefreshUnitSelectMenu {
319    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent, i32, crate::app::unit::Unit, i32, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler)` 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::refreshunitselectmenucontent::RefreshUnitSelectMenuContent>,
324        initial_select_index: impl ::core::convert::Into<i32>,
325        unselectable_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
326        initial_scroll_index: impl ::core::convert::Into<i32>,
327        decide_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler>,
328        close_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler>,
329        dispose_event_handler: impl ::core::convert::Into<crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler>,
330    ) -> () {
331        unsafe {
332            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333            ::unity::il2cpp_call!((::unity::module_base()+0x22c1820usize)as*mut u8,();
334(RefreshUnitSelectMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent)::core::convert::Into::into(menu_content),(i32)::core::convert::Into::into(initial_select_index),(crate::app::unit::Unit)::core::convert::Into::into(unselectable_unit),(i32)::core::convert::Into::into(initial_scroll_index),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler)::core::convert::Into::into(close_event_handler),(crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler)::core::convert::Into::into(dispose_event_handler))
335        }
336    }
337    #[doc = "`OnBuild(bool)` overload"]
338    fn on_build(self, is_first_build: impl ::core::convert::Into<bool>) -> () {
339        unsafe {
340            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341            {
342                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
343                let __vi = *__vt.get(24usize).unwrap_or_else(|| {
344                    panic!(
345                        "unity: virtual slot {}
346 out of range (vtable len {}
347) on the runtime class behind {}
348 (method `{}
349`)",
350                        24usize,
351                        __vt.len(),
352                        <RefreshUnitSelectMenu as ::unity::ClassIdentity>::NAME,
353                        "OnBuild",
354                    )
355                });
356                let __inner: extern "C" fn(RefreshUnitSelectMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
357                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
358                __inner(__receiver, ::core::convert::Into::into(is_first_build), __mi)
359            }
360        }
361    }
362    #[doc = "`GetName()` overload"]
363    fn get_name(self) -> ::unity::Il2CppString {
364        unsafe {
365            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
366            {
367                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
368                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
369                    panic!(
370                        "unity: virtual slot {}
371 out of range (vtable len {}
372) on the runtime class behind {}
373 (method `{}
374`)",
375                        30usize,
376                        __vt.len(),
377                        <RefreshUnitSelectMenu as ::unity::ClassIdentity>::NAME,
378                        "GetName",
379                    )
380                });
381                let __inner: extern "C" fn(RefreshUnitSelectMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
382                    ::core::mem::transmute(__vi.method_ptr);
383                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
384                __inner(__receiver, __mi)
385            }
386        }
387    }
388    #[doc = "`AdjustScrollIndex()` overload"]
389    fn adjust_scroll_index(self) -> () {
390        unsafe {
391            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392            {
393                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
394                let __vi = *__vt.get(35usize).unwrap_or_else(|| {
395                    panic!(
396                        "unity: virtual slot {}
397 out of range (vtable len {}
398) on the runtime class behind {}
399 (method `{}
400`)",
401                        35usize,
402                        __vt.len(),
403                        <RefreshUnitSelectMenu as ::unity::ClassIdentity>::NAME,
404                        "AdjustScrollIndex",
405                    )
406                });
407                let __inner: extern "C" fn(RefreshUnitSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
408                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
409                __inner(__receiver, __mi)
410            }
411        }
412    }
413    #[doc = "`GetUnselectableUnit()` overload"]
414    fn get_unselectable_unit(self) -> crate::app::unit::Unit {
415        unsafe {
416            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
417            ::unity::il2cpp_call!((::unity::module_base()+0x22c1b30usize)as*mut u8,crate::app::unit::Unit;
418(RefreshUnitSelectMenu)__receiver)
419        }
420    }
421    #[doc = "`SetDecidedMenuItem(i32)` overload"]
422    fn set_decided_menu_item(self, menu_item_index: impl ::core::convert::Into<i32>) -> bool {
423        unsafe {
424            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
425            ::unity::il2cpp_call!((::unity::module_base()+0x22c1b40usize)as*mut u8,bool;
426(RefreshUnitSelectMenu)__receiver,(i32)::core::convert::Into::into(menu_item_index))
427        }
428    }
429    #[doc = "`CancelSetDecidedMenuItem()` overload"]
430    fn cancel_set_decided_menu_item(self) -> () {
431        unsafe {
432            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
433            ::unity::il2cpp_call!((::unity::module_base()+0x22c1e20usize)as*mut u8,();
434(RefreshUnitSelectMenu)__receiver)
435        }
436    }
437    #[doc = "`BCall()` overload"]
438    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
439        unsafe {
440            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
441            {
442                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
443                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
444                    panic!(
445                        "unity: virtual slot {}
446 out of range (vtable len {}
447) on the runtime class behind {}
448 (method `{}
449`)",
450                        51usize,
451                        __vt.len(),
452                        <RefreshUnitSelectMenu as ::unity::ClassIdentity>::NAME,
453                        "BCall",
454                    )
455                });
456                let __inner: extern "C" fn(RefreshUnitSelectMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
457                    ::core::mem::transmute(__vi.method_ptr);
458                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
459                __inner(__receiver, __mi)
460            }
461        }
462    }
463    #[doc = "`OnClose()` overload"]
464    fn on_close(self) -> () {
465        unsafe {
466            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467            {
468                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
469                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
470                    panic!(
471                        "unity: virtual slot {}
472 out of range (vtable len {}
473) on the runtime class behind {}
474 (method `{}
475`)",
476                        26usize,
477                        __vt.len(),
478                        <RefreshUnitSelectMenu as ::unity::ClassIdentity>::NAME,
479                        "OnClose",
480                    )
481                });
482                let __inner: extern "C" fn(RefreshUnitSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
483                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
484                __inner(__receiver, __mi)
485            }
486        }
487    }
488    #[doc = "`OnDispose()` overload"]
489    fn on_dispose(self) -> () {
490        unsafe {
491            let __receiver = <RefreshUnitSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
492            {
493                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
494                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
495                    panic!(
496                        "unity: virtual slot {}
497 out of range (vtable len {}
498) on the runtime class behind {}
499 (method `{}
500`)",
501                        10usize,
502                        __vt.len(),
503                        <RefreshUnitSelectMenu as ::unity::ClassIdentity>::NAME,
504                        "OnDispose",
505                    )
506                });
507                let __inner: extern "C" fn(RefreshUnitSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
508                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
509                __inner(__receiver, __mi)
510            }
511        }
512    }
513}
514
515#[cfg(feature = "app-refreshunitselectmenu")]
516impl<__T: IRefreshUnitSelectMenu> IRefreshUnitSelectMenuMethods for __T {}
517
518#[cfg(feature = "app-refreshunitselectmenu")]
519impl RefreshUnitSelectMenu {
520    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
522    }
523
524    pub fn create_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
525        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
526    }
527
528    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
529        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
530    }
531
532    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
533        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
534    }
535
536    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
537        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
538    }
539
540    pub fn adjust_scroll_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
541        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
542    }
543
544    pub fn get_unselectable_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
545        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
546    }
547
548    pub fn set_decided_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
549        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
550    }
551
552    pub fn cancel_set_decided_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
554    }
555
556    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
558    }
559
560    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
562    }
563
564    pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
565        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
566    }
567
568    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
569        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
570    }
571}
572
573#[cfg(feature = "app-refreshunitselectmenu")]
574impl RefreshUnitSelectMenu {
575    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
576    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>, is_first_build: bool) -> () {
577        let __mi = Self::on_build_method_info();
578        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
579        __inner(this.into(), is_first_build, ::core::option::Option::None)
580    }
581
582    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
583    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
584        let __mi = Self::get_name_method_info();
585        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
586        __inner(this.into(), ::core::option::Option::None)
587    }
588
589    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu`'s own `AdjustScrollIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
590    pub unsafe fn adjust_scroll_index(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
591        let __mi = Self::adjust_scroll_index_method_info();
592        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
593        __inner(this.into(), ::core::option::Option::None)
594    }
595
596    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
597    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
598        let __mi = Self::b_call_method_info();
599        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
600            ::core::mem::transmute(__mi.method_ptr);
601        __inner(this.into(), ::core::option::Option::None)
602    }
603
604    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
605    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
606        let __mi = Self::on_close_method_info();
607        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
608        __inner(this.into(), ::core::option::Option::None)
609    }
610
611    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
612    pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
613        let __mi = Self::on_dispose_method_info();
614        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
615        __inner(this.into(), ::core::option::Option::None)
616    }
617}
618
619#[cfg(feature = "app-refreshunitselectmenu")]
620impl RefreshUnitSelectMenu {
621    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent, i32, crate::app::unit::Unit, i32, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler, crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler)` — overload selector"]
622    pub fn new(
623        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
624        menu_content: crate::app::refreshunitselectmenucontent::RefreshUnitSelectMenuContent,
625        initial_select_index: i32,
626        unselectable_unit: crate::app::unit::Unit,
627        initial_scroll_index: i32,
628        decide_event_handler: crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DecideEventHandler,
629        close_event_handler: crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_CloseEventHandler,
630        dispose_event_handler: crate::app::refreshunitselectmenu::RefreshUnitSelectMenu_DisposeEventHandler,
631    ) -> Self {
632        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
633            panic!(
634                "{}
635::{}
636 failed to instantiate",
637                ::core::stringify!(RefreshUnitSelectMenu),
638                ::core::stringify!(new),
639            )
640        });
641        <Self as IRefreshUnitSelectMenuMethods>::ctor(
642            this,
643            menu_item_list,
644            menu_content,
645            initial_select_index,
646            unselectable_unit,
647            initial_scroll_index,
648            decide_event_handler,
649            close_event_handler,
650            dispose_event_handler,
651        );
652        this
653    }
654}
655
656#[cfg(feature = "app-refreshunitselectmenu")]
657pub trait IRefreshUnitSelectMenu_DecideEventHandlerMethods: IRefreshUnitSelectMenu_DecideEventHandler {
658    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
659    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
660        unsafe {
661            let __receiver = <RefreshUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
662                <Self as ::unity::SystemObject>::as_instance(self),
663            );
664            ::unity::il2cpp_call!((::unity::module_base()+0x1b014e0usize)as*mut u8,();
665(RefreshUnitSelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
666        }
667    }
668    #[doc = "`Invoke(crate::app::unit::Unit, bool, i32)` overload"]
669    fn invoke(
670        self,
671        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
672        selected_entrust: impl ::core::convert::Into<bool>,
673        scroll_index: impl ::core::convert::Into<i32>,
674    ) -> () {
675        unsafe {
676            let __receiver = <RefreshUnitSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
677                <Self as ::unity::SystemObject>::as_instance(self),
678            );
679            {
680                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
681                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
682                    panic!(
683                        "unity: virtual slot {}
684 out of range (vtable len {}
685) on the runtime class behind {}
686 (method `{}
687`)",
688                        13usize,
689                        __vt.len(),
690                        <RefreshUnitSelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
691                        "Invoke",
692                    )
693                });
694                let __inner: extern "C" fn(
695                    RefreshUnitSelectMenu_DecideEventHandler,
696                    crate::app::unit::Unit,
697                    bool,
698                    i32,
699                    ::unity::OptionalMethod,
700                ) -> () = ::core::mem::transmute(__vi.method_ptr);
701                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
702                __inner(
703                    __receiver,
704                    ::core::convert::Into::into(unit),
705                    ::core::convert::Into::into(selected_entrust),
706                    ::core::convert::Into::into(scroll_index),
707                    __mi,
708                )
709            }
710        }
711    }
712}
713
714#[cfg(feature = "app-refreshunitselectmenu")]
715impl<__T: IRefreshUnitSelectMenu_DecideEventHandler> IRefreshUnitSelectMenu_DecideEventHandlerMethods for __T {}
716
717#[cfg(feature = "app-refreshunitselectmenu")]
718impl RefreshUnitSelectMenu_DecideEventHandler {
719    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
720        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
721    }
722
723    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
724        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
725    }
726}
727
728#[cfg(feature = "app-refreshunitselectmenu")]
729impl RefreshUnitSelectMenu_DecideEventHandler {
730    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
731    pub unsafe fn invoke(
732        this: impl ::core::convert::Into<::unity::IlInstance>,
733        unit: crate::app::unit::Unit,
734        selected_entrust: bool,
735        scroll_index: i32,
736    ) -> () {
737        let __mi = Self::invoke_method_info();
738        let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, bool, i32, ::unity::OptionalMethod) -> () =
739            ::core::mem::transmute(__mi.method_ptr);
740        __inner(this.into(), unit, selected_entrust, scroll_index, ::core::option::Option::None)
741    }
742}
743
744#[cfg(feature = "app-refreshunitselectmenu")]
745impl RefreshUnitSelectMenu_DecideEventHandler {
746    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
747    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
748        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
749            panic!(
750                "{}
751::{}
752 failed to instantiate",
753                ::core::stringify!(RefreshUnitSelectMenu_DecideEventHandler),
754                ::core::stringify!(new),
755            )
756        });
757        <Self as IRefreshUnitSelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
758        this
759    }
760}
761
762#[cfg(feature = "app-refreshunitselectmenu")]
763pub trait IRefreshUnitSelectMenu_DisposeEventHandlerMethods: IRefreshUnitSelectMenu_DisposeEventHandler {
764    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
765    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
766        unsafe {
767            let __receiver = <RefreshUnitSelectMenu_DisposeEventHandler as ::unity::FromIlInstance>::from_il_instance(
768                <Self as ::unity::SystemObject>::as_instance(self),
769            );
770            ::unity::il2cpp_call!((::unity::module_base()+0x1b01980usize)as*mut u8,();
771(RefreshUnitSelectMenu_DisposeEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
772        }
773    }
774    #[doc = "`Invoke()` overload"]
775    fn invoke(self) -> () {
776        unsafe {
777            let __receiver = <RefreshUnitSelectMenu_DisposeEventHandler as ::unity::FromIlInstance>::from_il_instance(
778                <Self as ::unity::SystemObject>::as_instance(self),
779            );
780            {
781                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
782                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
783                    panic!(
784                        "unity: virtual slot {}
785 out of range (vtable len {}
786) on the runtime class behind {}
787 (method `{}
788`)",
789                        13usize,
790                        __vt.len(),
791                        <RefreshUnitSelectMenu_DisposeEventHandler as ::unity::ClassIdentity>::NAME,
792                        "Invoke",
793                    )
794                });
795                let __inner: extern "C" fn(RefreshUnitSelectMenu_DisposeEventHandler, ::unity::OptionalMethod) -> () =
796                    ::core::mem::transmute(__vi.method_ptr);
797                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
798                __inner(__receiver, __mi)
799            }
800        }
801    }
802}
803
804#[cfg(feature = "app-refreshunitselectmenu")]
805impl<__T: IRefreshUnitSelectMenu_DisposeEventHandler> IRefreshUnitSelectMenu_DisposeEventHandlerMethods for __T {}
806
807#[cfg(feature = "app-refreshunitselectmenu")]
808impl RefreshUnitSelectMenu_DisposeEventHandler {
809    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
810        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
811    }
812
813    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
814        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
815    }
816}
817
818#[cfg(feature = "app-refreshunitselectmenu")]
819impl RefreshUnitSelectMenu_DisposeEventHandler {
820    #[doc = "Direct (non-virtual) call to `RefreshUnitSelectMenu_DisposeEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
821    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
822        let __mi = Self::invoke_method_info();
823        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
824        __inner(this.into(), ::core::option::Option::None)
825    }
826}
827
828#[cfg(feature = "app-refreshunitselectmenu")]
829impl RefreshUnitSelectMenu_DisposeEventHandler {
830    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
831    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
832        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
833            panic!(
834                "{}
835::{}
836 failed to instantiate",
837                ::core::stringify!(RefreshUnitSelectMenu_DisposeEventHandler),
838                ::core::stringify!(new),
839            )
840        });
841        <Self as IRefreshUnitSelectMenu_DisposeEventHandlerMethods>::ctor(this, object, method);
842        this
843    }
844}
845
846#[cfg(feature = "app-refreshunitselectmenu")]
847#[doc(hidden)]
848pub mod prelude {
849    pub use super::{
850        IRefreshUnitSelectMenu, IRefreshUnitSelectMenuMethods, IRefreshUnitSelectMenu_CloseEventHandler,
851        IRefreshUnitSelectMenu_CloseEventHandlerMethods, IRefreshUnitSelectMenu_DecideEventHandler, IRefreshUnitSelectMenu_DecideEventHandlerMethods,
852        IRefreshUnitSelectMenu_DisposeEventHandler, IRefreshUnitSelectMenu_DisposeEventHandlerMethods, IRefreshUnitSelectMenu_SelectEventHandler,
853        IRefreshUnitSelectMenu_SelectEventHandlerMethods, RefreshUnitSelectMenu, RefreshUnitSelectMenu_CloseEventHandler,
854        RefreshUnitSelectMenu_DecideEventHandler, RefreshUnitSelectMenu_DisposeEventHandler, RefreshUnitSelectMenu_SelectEventHandler,
855    };
856    #[cfg(feature = "app-basicmenu")]
857    pub use crate::app::basicmenu::IBasicMenuMethods;
858    #[cfg(feature = "app-procinst")]
859    pub use crate::app::procinst::IProcInstMethods;
860    #[cfg(feature = "system-delegate")]
861    pub use crate::system::delegate::IDelegateMethods;
862    #[cfg(feature = "system-multicastdelegate")]
863    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
864    #[cfg(feature = "system-object")]
865    pub use crate::system::object::IObjectMethods;
866    pub use crate::{
867        app::{basicmenu::IBasicMenu, procinst::IProcInst},
868        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
869    };
870}