Skip to main content

engage/generated/app/
myroomtopmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-myroomtopmenu-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            r#enum::{Enum, IEnum},
19            valuetype::{IValueType, ValueType},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomtopmenu/MyRoomTopMenu_MenuResult.md"))]
24    #[repr(C)]
25    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26    pub struct MyRoomTopMenu_MenuResult {
27        pub value: i32,
28    }
29    impl ::unity::ClassIdentity for MyRoomTopMenu_MenuResult {
30        const NAME: &'static str = "MyRoomTopMenu.MenuResult";
31        const NAMESPACE: &'static str = "App";
32
33        fn class() -> ::unity::Class {
34            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36        }
37    }
38    impl ::unity::IlType for MyRoomTopMenu_MenuResult {
39        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41        }
42    }
43    impl MyRoomTopMenu_MenuResult {
44        pub fn sleep() -> Self {
45            Self { value: 0 }
46        }
47
48        pub fn recall() -> Self {
49            Self { value: 1 }
50        }
51
52        pub fn set_difficulty() -> Self {
53            Self { value: 2 }
54        }
55
56        pub fn end() -> Self {
57            Self { value: 3 }
58        }
59    }
60
61    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomtopmenu/MyRoomTopMenu_DecideEventHandler.md"))]
62    #[::unity::class(namespace = "App", name = "MyRoomTopMenu.DecideEventHandler")]
63    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
64    pub struct MyRoomTopMenu_DecideEventHandler {}
65
66    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomtopmenu/MyRoomTopMenu_RecallSelectMenuItem.md"))]
67    #[::unity::class(namespace = "App", name = "MyRoomTopMenu.RecallSelectMenuItem")]
68    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
69    pub struct MyRoomTopMenu_RecallSelectMenuItem {
70        #[offset(104)]
71        #[rename(name = "m_DecideEventHandler")]
72        pub m_decide_event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler,
73    }
74
75    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomtopmenu/MyRoomTopMenu.md"))]
76    #[::unity::class(namespace = "App", name = "MyRoomTopMenu")]
77    #[parent(crate::app::basicmenu::BasicMenu)]
78    pub struct MyRoomTopMenu {}
79
80    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomtopmenu/MyRoomTopMenu_SleepSelectMenuItem.md"))]
81    #[::unity::class(namespace = "App", name = "MyRoomTopMenu.SleepSelectMenuItem")]
82    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
83    pub struct MyRoomTopMenu_SleepSelectMenuItem {
84        #[offset(104)]
85        #[rename(name = "m_DecideEventHandler")]
86        pub m_decide_event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler,
87    }
88
89    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/myroomtopmenu/MyRoomTopMenu_SetDifficultySelectMenuItem.md"))]
90    #[::unity::class(namespace = "App", name = "MyRoomTopMenu.SetDifficultySelectMenuItem")]
91    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
92    pub struct MyRoomTopMenu_SetDifficultySelectMenuItem {
93        #[offset(104)]
94        #[rename(name = "m_DecideEventHandler")]
95        pub m_decide_event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler,
96    }
97}
98
99#[cfg(feature = "app-myroomtopmenu-types")]
100pub use __types::*;
101
102#[cfg(feature = "app-myroomtopmenu")]
103pub trait IMyRoomTopMenu_DecideEventHandlerMethods: IMyRoomTopMenu_DecideEventHandler {
104    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
105    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
106        unsafe {
107            let __receiver =
108                <MyRoomTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            ::unity::il2cpp_call!((::unity::module_base()+0x209a610usize)as*mut u8,();
110(MyRoomTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
111        }
112    }
113    #[doc = "`Invoke(crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult)` overload"]
114    fn invoke(self, result: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult>) -> () {
115        unsafe {
116            let __receiver =
117                <MyRoomTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            {
119                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
121                    panic!(
122                        "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127                        13usize,
128                        __vt.len(),
129                        <MyRoomTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
130                        "Invoke",
131                    )
132                });
133                let __inner: extern "C" fn(
134                    MyRoomTopMenu_DecideEventHandler,
135                    crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult,
136                    ::unity::OptionalMethod,
137                ) -> () = ::core::mem::transmute(__vi.method_ptr);
138                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
139                __inner(__receiver, ::core::convert::Into::into(result), __mi)
140            }
141        }
142    }
143}
144
145#[cfg(feature = "app-myroomtopmenu")]
146impl<__T: IMyRoomTopMenu_DecideEventHandler> IMyRoomTopMenu_DecideEventHandlerMethods for __T {}
147
148#[cfg(feature = "app-myroomtopmenu")]
149impl MyRoomTopMenu_DecideEventHandler {
150    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
151        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
152    }
153
154    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
156    }
157}
158
159#[cfg(feature = "app-myroomtopmenu")]
160impl MyRoomTopMenu_DecideEventHandler {
161    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
162    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, result: crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult) -> () {
163        let __mi = Self::invoke_method_info();
164        let __inner: extern "C" fn(::unity::IlInstance, crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult, ::unity::OptionalMethod) -> () =
165            ::core::mem::transmute(__mi.method_ptr);
166        __inner(this.into(), result, ::core::option::Option::None)
167    }
168}
169
170#[cfg(feature = "app-myroomtopmenu")]
171impl MyRoomTopMenu_DecideEventHandler {
172    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
173    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
174        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
175            panic!(
176                "{}
177::{}
178 failed to instantiate",
179                ::core::stringify!(MyRoomTopMenu_DecideEventHandler),
180                ::core::stringify!(new),
181            )
182        });
183        <Self as IMyRoomTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
184        this
185    }
186}
187
188#[cfg(feature = "app-myroomtopmenu")]
189pub trait IMyRoomTopMenu_RecallSelectMenuItemMethods: IMyRoomTopMenu_RecallSelectMenuItem {
190    #[doc = "`.ctor(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` overload"]
191    fn ctor(self, event_handler: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler>) -> () {
192        unsafe {
193            let __receiver =
194                <MyRoomTopMenu_RecallSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195            ::unity::il2cpp_call!((::unity::module_base()+0x209a930usize)as*mut u8,();
196(MyRoomTopMenu_RecallSelectMenuItem)__receiver,(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
197        }
198    }
199    #[doc = "`GetName()` overload"]
200    fn get_name(self) -> ::unity::Il2CppString {
201        unsafe {
202            let __receiver =
203                <MyRoomTopMenu_RecallSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204            {
205                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
206                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
207                    panic!(
208                        "unity: virtual slot {}
209 out of range (vtable len {}
210) on the runtime class behind {}
211 (method `{}
212`)",
213                        4usize,
214                        __vt.len(),
215                        <MyRoomTopMenu_RecallSelectMenuItem as ::unity::ClassIdentity>::NAME,
216                        "GetName",
217                    )
218                });
219                let __inner: extern "C" fn(MyRoomTopMenu_RecallSelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
220                    ::core::mem::transmute(__vi.method_ptr);
221                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
222                __inner(__receiver, __mi)
223            }
224        }
225    }
226    #[doc = "`BuildAttribute()` overload"]
227    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
228        unsafe {
229            let __receiver =
230                <MyRoomTopMenu_RecallSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            {
232                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
233                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
234                    panic!(
235                        "unity: virtual slot {}
236 out of range (vtable len {}
237) on the runtime class behind {}
238 (method `{}
239`)",
240                        8usize,
241                        __vt.len(),
242                        <MyRoomTopMenu_RecallSelectMenuItem as ::unity::ClassIdentity>::NAME,
243                        "BuildAttribute",
244                    )
245                });
246                let __inner: extern "C" fn(
247                    MyRoomTopMenu_RecallSelectMenuItem,
248                    ::unity::OptionalMethod,
249                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
250                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
251                __inner(__receiver, __mi)
252            }
253        }
254    }
255    #[doc = "`ACall()` overload"]
256    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
257        unsafe {
258            let __receiver =
259                <MyRoomTopMenu_RecallSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260            {
261                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
262                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
263                    panic!(
264                        "unity: virtual slot {}
265 out of range (vtable len {}
266) on the runtime class behind {}
267 (method `{}
268`)",
269                        18usize,
270                        __vt.len(),
271                        <MyRoomTopMenu_RecallSelectMenuItem as ::unity::ClassIdentity>::NAME,
272                        "ACall",
273                    )
274                });
275                let __inner: extern "C" fn(MyRoomTopMenu_RecallSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
276                    ::core::mem::transmute(__vi.method_ptr);
277                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
278                __inner(__receiver, __mi)
279            }
280        }
281    }
282    #[doc = "`BCall()` overload"]
283    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
284        unsafe {
285            let __receiver =
286                <MyRoomTopMenu_RecallSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            {
288                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
289                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
290                    panic!(
291                        "unity: virtual slot {}
292 out of range (vtable len {}
293) on the runtime class behind {}
294 (method `{}
295`)",
296                        19usize,
297                        __vt.len(),
298                        <MyRoomTopMenu_RecallSelectMenuItem as ::unity::ClassIdentity>::NAME,
299                        "BCall",
300                    )
301                });
302                let __inner: extern "C" fn(MyRoomTopMenu_RecallSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
303                    ::core::mem::transmute(__vi.method_ptr);
304                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305                __inner(__receiver, __mi)
306            }
307        }
308    }
309}
310
311#[cfg(feature = "app-myroomtopmenu")]
312impl<__T: IMyRoomTopMenu_RecallSelectMenuItem> IMyRoomTopMenu_RecallSelectMenuItemMethods for __T {}
313
314#[cfg(feature = "app-myroomtopmenu")]
315impl MyRoomTopMenu_RecallSelectMenuItem {
316    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
318    }
319
320    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
322    }
323
324    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
326    }
327
328    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
330    }
331
332    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
334    }
335}
336
337#[cfg(feature = "app-myroomtopmenu")]
338impl MyRoomTopMenu_RecallSelectMenuItem {
339    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_RecallSelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
340    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
341        let __mi = Self::get_name_method_info();
342        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
343        __inner(this.into(), ::core::option::Option::None)
344    }
345
346    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_RecallSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
347    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
348        let __mi = Self::build_attribute_method_info();
349        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
350            ::core::mem::transmute(__mi.method_ptr);
351        __inner(this.into(), ::core::option::Option::None)
352    }
353
354    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_RecallSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
355    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
356        let __mi = Self::a_call_method_info();
357        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
358            ::core::mem::transmute(__mi.method_ptr);
359        __inner(this.into(), ::core::option::Option::None)
360    }
361
362    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_RecallSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
364        let __mi = Self::b_call_method_info();
365        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
366            ::core::mem::transmute(__mi.method_ptr);
367        __inner(this.into(), ::core::option::Option::None)
368    }
369}
370
371#[cfg(feature = "app-myroomtopmenu")]
372impl MyRoomTopMenu_RecallSelectMenuItem {
373    #[doc = "`.ctor(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` — overload selector"]
374    pub fn new(event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler) -> Self {
375        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
376            panic!(
377                "{}
378::{}
379 failed to instantiate",
380                ::core::stringify!(MyRoomTopMenu_RecallSelectMenuItem),
381                ::core::stringify!(new),
382            )
383        });
384        <Self as IMyRoomTopMenu_RecallSelectMenuItemMethods>::ctor(this, event_handler);
385        this
386    }
387}
388
389#[cfg(feature = "app-myroomtopmenu")]
390impl MyRoomTopMenu {
391    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult, crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` overload"]
392    pub fn create_bind(
393        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
394        initial_selected: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult>,
395        event_handler: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler>,
396    ) -> () {
397        unsafe {
398            ::unity::il2cpp_call!((::unity::module_base()+0x239bed0usize)as*mut u8,();
399(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult)::core::convert::Into::into(initial_selected),(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
400        }
401    }
402}
403
404#[cfg(feature = "app-myroomtopmenu")]
405pub trait IMyRoomTopMenuMethods: IMyRoomTopMenu {
406    #[doc = "`get_m_DecideEventHandler()` overload"]
407    fn get_m_decide_event_handler(self) -> crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler {
408        unsafe {
409            let __receiver = <MyRoomTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
410            ::unity::il2cpp_call!((::unity::module_base()+0x23a2470usize)as*mut u8,crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler;
411(MyRoomTopMenu)__receiver)
412        }
413    }
414    #[doc = "`set_m_DecideEventHandler(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` overload"]
415    fn set_m_decide_event_handler(self, value: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler>) -> () {
416        unsafe {
417            let __receiver = <MyRoomTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
418            ::unity::il2cpp_call!((::unity::module_base()+0x23a2480usize)as*mut u8,();
419(MyRoomTopMenu)__receiver,(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)::core::convert::Into::into(value))
420        }
421    }
422    #[doc = "`BCall()` overload"]
423    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
424        unsafe {
425            let __receiver = <MyRoomTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426            {
427                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
428                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
429                    panic!(
430                        "unity: virtual slot {}
431 out of range (vtable len {}
432) on the runtime class behind {}
433 (method `{}
434`)",
435                        51usize,
436                        __vt.len(),
437                        <MyRoomTopMenu as ::unity::ClassIdentity>::NAME,
438                        "BCall",
439                    )
440                });
441                let __inner: extern "C" fn(MyRoomTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
442                    ::core::mem::transmute(__vi.method_ptr);
443                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
444                __inner(__receiver, __mi)
445            }
446        }
447    }
448    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult, crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` overload"]
449    fn ctor(
450        self,
451        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
452        menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
453        initial_selected: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult>,
454        event_handler: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler>,
455    ) -> () {
456        unsafe {
457            let __receiver = <MyRoomTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458            ::unity::il2cpp_call!((::unity::module_base()+0x23a2530usize)as*mut u8,();
459(MyRoomTopMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult)::core::convert::Into::into(initial_selected),(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
460        }
461    }
462    #[doc = "`GetName()` overload"]
463    fn get_name(self) -> ::unity::Il2CppString {
464        unsafe {
465            let __receiver = <MyRoomTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            {
467                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
468                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
469                    panic!(
470                        "unity: virtual slot {}
471 out of range (vtable len {}
472) on the runtime class behind {}
473 (method `{}
474`)",
475                        30usize,
476                        __vt.len(),
477                        <MyRoomTopMenu as ::unity::ClassIdentity>::NAME,
478                        "GetName",
479                    )
480                });
481                let __inner: extern "C" fn(MyRoomTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
482                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
483                __inner(__receiver, __mi)
484            }
485        }
486    }
487    #[doc = "`OnClose()` overload"]
488    fn on_close(self) -> () {
489        unsafe {
490            let __receiver = <MyRoomTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491            {
492                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
493                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
494                    panic!(
495                        "unity: virtual slot {}
496 out of range (vtable len {}
497) on the runtime class behind {}
498 (method `{}
499`)",
500                        26usize,
501                        __vt.len(),
502                        <MyRoomTopMenu as ::unity::ClassIdentity>::NAME,
503                        "OnClose",
504                    )
505                });
506                let __inner: extern "C" fn(MyRoomTopMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
507                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
508                __inner(__receiver, __mi)
509            }
510        }
511    }
512}
513
514#[cfg(feature = "app-myroomtopmenu")]
515impl<__T: IMyRoomTopMenu> IMyRoomTopMenuMethods for __T {}
516
517#[cfg(feature = "app-myroomtopmenu")]
518impl MyRoomTopMenu {
519    pub fn get_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
521    }
522
523    pub fn set_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
525    }
526
527    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
529    }
530
531    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
533    }
534
535    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
537    }
538
539    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
541    }
542
543    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
545    }
546}
547
548#[cfg(feature = "app-myroomtopmenu")]
549impl MyRoomTopMenu {
550    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
551    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
552        let __mi = Self::b_call_method_info();
553        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
554            ::core::mem::transmute(__mi.method_ptr);
555        __inner(this.into(), ::core::option::Option::None)
556    }
557
558    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
559    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
560        let __mi = Self::get_name_method_info();
561        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
562        __inner(this.into(), ::core::option::Option::None)
563    }
564
565    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
566    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
567        let __mi = Self::on_close_method_info();
568        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
569        __inner(this.into(), ::core::option::Option::None)
570    }
571}
572
573#[cfg(feature = "app-myroomtopmenu")]
574impl MyRoomTopMenu {
575    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult, crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` — overload selector"]
576    pub fn new(
577        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
578        menu_content: crate::app::basicmenucontent::BasicMenuContent,
579        initial_selected: crate::app::myroomtopmenu::MyRoomTopMenu_MenuResult,
580        event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler,
581    ) -> Self {
582        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
583            panic!(
584                "{}
585::{}
586 failed to instantiate",
587                ::core::stringify!(MyRoomTopMenu),
588                ::core::stringify!(new),
589            )
590        });
591        <Self as IMyRoomTopMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, event_handler);
592        this
593    }
594}
595
596#[cfg(feature = "app-myroomtopmenu")]
597pub trait IMyRoomTopMenu_SleepSelectMenuItemMethods: IMyRoomTopMenu_SleepSelectMenuItem {
598    #[doc = "`.ctor(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` overload"]
599    fn ctor(self, event_handler: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler>) -> () {
600        unsafe {
601            let __receiver =
602                <MyRoomTopMenu_SleepSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
603            ::unity::il2cpp_call!((::unity::module_base()+0x209ab50usize)as*mut u8,();
604(MyRoomTopMenu_SleepSelectMenuItem)__receiver,(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
605        }
606    }
607    #[doc = "`GetName()` overload"]
608    fn get_name(self) -> ::unity::Il2CppString {
609        unsafe {
610            let __receiver =
611                <MyRoomTopMenu_SleepSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
612            {
613                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
614                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
615                    panic!(
616                        "unity: virtual slot {}
617 out of range (vtable len {}
618) on the runtime class behind {}
619 (method `{}
620`)",
621                        4usize,
622                        __vt.len(),
623                        <MyRoomTopMenu_SleepSelectMenuItem as ::unity::ClassIdentity>::NAME,
624                        "GetName",
625                    )
626                });
627                let __inner: extern "C" fn(MyRoomTopMenu_SleepSelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
628                    ::core::mem::transmute(__vi.method_ptr);
629                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
630                __inner(__receiver, __mi)
631            }
632        }
633    }
634    #[doc = "`BuildAttribute()` overload"]
635    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
636        unsafe {
637            let __receiver =
638                <MyRoomTopMenu_SleepSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
639            {
640                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
641                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
642                    panic!(
643                        "unity: virtual slot {}
644 out of range (vtable len {}
645) on the runtime class behind {}
646 (method `{}
647`)",
648                        8usize,
649                        __vt.len(),
650                        <MyRoomTopMenu_SleepSelectMenuItem as ::unity::ClassIdentity>::NAME,
651                        "BuildAttribute",
652                    )
653                });
654                let __inner: extern "C" fn(
655                    MyRoomTopMenu_SleepSelectMenuItem,
656                    ::unity::OptionalMethod,
657                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
658                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
659                __inner(__receiver, __mi)
660            }
661        }
662    }
663    #[doc = "`ACall()` overload"]
664    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
665        unsafe {
666            let __receiver =
667                <MyRoomTopMenu_SleepSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
668            {
669                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
670                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
671                    panic!(
672                        "unity: virtual slot {}
673 out of range (vtable len {}
674) on the runtime class behind {}
675 (method `{}
676`)",
677                        18usize,
678                        __vt.len(),
679                        <MyRoomTopMenu_SleepSelectMenuItem as ::unity::ClassIdentity>::NAME,
680                        "ACall",
681                    )
682                });
683                let __inner: extern "C" fn(MyRoomTopMenu_SleepSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
684                    ::core::mem::transmute(__vi.method_ptr);
685                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
686                __inner(__receiver, __mi)
687            }
688        }
689    }
690    #[doc = "`BCall()` overload"]
691    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
692        unsafe {
693            let __receiver =
694                <MyRoomTopMenu_SleepSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
695            {
696                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
697                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
698                    panic!(
699                        "unity: virtual slot {}
700 out of range (vtable len {}
701) on the runtime class behind {}
702 (method `{}
703`)",
704                        19usize,
705                        __vt.len(),
706                        <MyRoomTopMenu_SleepSelectMenuItem as ::unity::ClassIdentity>::NAME,
707                        "BCall",
708                    )
709                });
710                let __inner: extern "C" fn(MyRoomTopMenu_SleepSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
711                    ::core::mem::transmute(__vi.method_ptr);
712                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
713                __inner(__receiver, __mi)
714            }
715        }
716    }
717}
718
719#[cfg(feature = "app-myroomtopmenu")]
720impl<__T: IMyRoomTopMenu_SleepSelectMenuItem> IMyRoomTopMenu_SleepSelectMenuItemMethods for __T {}
721
722#[cfg(feature = "app-myroomtopmenu")]
723impl MyRoomTopMenu_SleepSelectMenuItem {
724    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
725        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
726    }
727
728    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
730    }
731
732    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
734    }
735
736    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
738    }
739
740    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
742    }
743}
744
745#[cfg(feature = "app-myroomtopmenu")]
746impl MyRoomTopMenu_SleepSelectMenuItem {
747    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SleepSelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
748    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
749        let __mi = Self::get_name_method_info();
750        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
751        __inner(this.into(), ::core::option::Option::None)
752    }
753
754    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SleepSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
755    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
756        let __mi = Self::build_attribute_method_info();
757        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
758            ::core::mem::transmute(__mi.method_ptr);
759        __inner(this.into(), ::core::option::Option::None)
760    }
761
762    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SleepSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
763    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
764        let __mi = Self::a_call_method_info();
765        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
766            ::core::mem::transmute(__mi.method_ptr);
767        __inner(this.into(), ::core::option::Option::None)
768    }
769
770    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SleepSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
771    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
772        let __mi = Self::b_call_method_info();
773        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
774            ::core::mem::transmute(__mi.method_ptr);
775        __inner(this.into(), ::core::option::Option::None)
776    }
777}
778
779#[cfg(feature = "app-myroomtopmenu")]
780impl MyRoomTopMenu_SleepSelectMenuItem {
781    #[doc = "`.ctor(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` — overload selector"]
782    pub fn new(event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler) -> Self {
783        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
784            panic!(
785                "{}
786::{}
787 failed to instantiate",
788                ::core::stringify!(MyRoomTopMenu_SleepSelectMenuItem),
789                ::core::stringify!(new),
790            )
791        });
792        <Self as IMyRoomTopMenu_SleepSelectMenuItemMethods>::ctor(this, event_handler);
793        this
794    }
795}
796
797#[cfg(feature = "app-myroomtopmenu")]
798pub trait IMyRoomTopMenu_SetDifficultySelectMenuItemMethods: IMyRoomTopMenu_SetDifficultySelectMenuItem {
799    #[doc = "`.ctor(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` overload"]
800    fn ctor(self, event_handler: impl ::core::convert::Into<crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler>) -> () {
801        unsafe {
802            let __receiver = <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
803                <Self as ::unity::SystemObject>::as_instance(self),
804            );
805            ::unity::il2cpp_call!((::unity::module_base()+0x209aa40usize)as*mut u8,();
806(MyRoomTopMenu_SetDifficultySelectMenuItem)__receiver,(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
807        }
808    }
809    #[doc = "`GetName()` overload"]
810    fn get_name(self) -> ::unity::Il2CppString {
811        unsafe {
812            let __receiver = <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
813                <Self as ::unity::SystemObject>::as_instance(self),
814            );
815            {
816                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
817                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
818                    panic!(
819                        "unity: virtual slot {}
820 out of range (vtable len {}
821) on the runtime class behind {}
822 (method `{}
823`)",
824                        4usize,
825                        __vt.len(),
826                        <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::ClassIdentity>::NAME,
827                        "GetName",
828                    )
829                });
830                let __inner: extern "C" fn(MyRoomTopMenu_SetDifficultySelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
831                    ::core::mem::transmute(__vi.method_ptr);
832                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
833                __inner(__receiver, __mi)
834            }
835        }
836    }
837    #[doc = "`BuildAttribute()` overload"]
838    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
839        unsafe {
840            let __receiver = <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
841                <Self as ::unity::SystemObject>::as_instance(self),
842            );
843            {
844                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
845                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
846                    panic!(
847                        "unity: virtual slot {}
848 out of range (vtable len {}
849) on the runtime class behind {}
850 (method `{}
851`)",
852                        8usize,
853                        __vt.len(),
854                        <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::ClassIdentity>::NAME,
855                        "BuildAttribute",
856                    )
857                });
858                let __inner: extern "C" fn(
859                    MyRoomTopMenu_SetDifficultySelectMenuItem,
860                    ::unity::OptionalMethod,
861                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
862                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
863                __inner(__receiver, __mi)
864            }
865        }
866    }
867    #[doc = "`ACall()` overload"]
868    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
869        unsafe {
870            let __receiver = <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
871                <Self as ::unity::SystemObject>::as_instance(self),
872            );
873            {
874                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
875                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
876                    panic!(
877                        "unity: virtual slot {}
878 out of range (vtable len {}
879) on the runtime class behind {}
880 (method `{}
881`)",
882                        18usize,
883                        __vt.len(),
884                        <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::ClassIdentity>::NAME,
885                        "ACall",
886                    )
887                });
888                let __inner: extern "C" fn(
889                    MyRoomTopMenu_SetDifficultySelectMenuItem,
890                    ::unity::OptionalMethod,
891                ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
892                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
893                __inner(__receiver, __mi)
894            }
895        }
896    }
897    #[doc = "`BCall()` overload"]
898    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
899        unsafe {
900            let __receiver = <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::FromIlInstance>::from_il_instance(
901                <Self as ::unity::SystemObject>::as_instance(self),
902            );
903            {
904                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
905                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
906                    panic!(
907                        "unity: virtual slot {}
908 out of range (vtable len {}
909) on the runtime class behind {}
910 (method `{}
911`)",
912                        19usize,
913                        __vt.len(),
914                        <MyRoomTopMenu_SetDifficultySelectMenuItem as ::unity::ClassIdentity>::NAME,
915                        "BCall",
916                    )
917                });
918                let __inner: extern "C" fn(
919                    MyRoomTopMenu_SetDifficultySelectMenuItem,
920                    ::unity::OptionalMethod,
921                ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
922                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
923                __inner(__receiver, __mi)
924            }
925        }
926    }
927}
928
929#[cfg(feature = "app-myroomtopmenu")]
930impl<__T: IMyRoomTopMenu_SetDifficultySelectMenuItem> IMyRoomTopMenu_SetDifficultySelectMenuItemMethods for __T {}
931
932#[cfg(feature = "app-myroomtopmenu")]
933impl MyRoomTopMenu_SetDifficultySelectMenuItem {
934    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
935        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
936    }
937
938    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
939        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
940    }
941
942    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
943        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
944    }
945
946    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
947        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
948    }
949
950    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
951        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
952    }
953}
954
955#[cfg(feature = "app-myroomtopmenu")]
956impl MyRoomTopMenu_SetDifficultySelectMenuItem {
957    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SetDifficultySelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
958    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
959        let __mi = Self::get_name_method_info();
960        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
961        __inner(this.into(), ::core::option::Option::None)
962    }
963
964    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SetDifficultySelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
965    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
966        let __mi = Self::build_attribute_method_info();
967        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
968            ::core::mem::transmute(__mi.method_ptr);
969        __inner(this.into(), ::core::option::Option::None)
970    }
971
972    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SetDifficultySelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
973    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
974        let __mi = Self::a_call_method_info();
975        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
976            ::core::mem::transmute(__mi.method_ptr);
977        __inner(this.into(), ::core::option::Option::None)
978    }
979
980    #[doc = "Direct (non-virtual) call to `MyRoomTopMenu_SetDifficultySelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
981    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
982        let __mi = Self::b_call_method_info();
983        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
984            ::core::mem::transmute(__mi.method_ptr);
985        __inner(this.into(), ::core::option::Option::None)
986    }
987}
988
989#[cfg(feature = "app-myroomtopmenu")]
990impl MyRoomTopMenu_SetDifficultySelectMenuItem {
991    #[doc = "`.ctor(crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler)` — overload selector"]
992    pub fn new(event_handler: crate::app::myroomtopmenu::MyRoomTopMenu_DecideEventHandler) -> Self {
993        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
994            panic!(
995                "{}
996::{}
997 failed to instantiate",
998                ::core::stringify!(MyRoomTopMenu_SetDifficultySelectMenuItem),
999                ::core::stringify!(new),
1000            )
1001        });
1002        <Self as IMyRoomTopMenu_SetDifficultySelectMenuItemMethods>::ctor(this, event_handler);
1003        this
1004    }
1005}
1006
1007#[cfg(feature = "app-myroomtopmenu")]
1008#[doc(hidden)]
1009pub mod prelude {
1010    pub use super::{
1011        IMyRoomTopMenu, IMyRoomTopMenuMethods, IMyRoomTopMenu_DecideEventHandler, IMyRoomTopMenu_DecideEventHandlerMethods,
1012        IMyRoomTopMenu_RecallSelectMenuItem, IMyRoomTopMenu_RecallSelectMenuItemMethods, IMyRoomTopMenu_SetDifficultySelectMenuItem,
1013        IMyRoomTopMenu_SetDifficultySelectMenuItemMethods, IMyRoomTopMenu_SleepSelectMenuItem, IMyRoomTopMenu_SleepSelectMenuItemMethods,
1014        MyRoomTopMenu, MyRoomTopMenu_DecideEventHandler, MyRoomTopMenu_MenuResult, MyRoomTopMenu_RecallSelectMenuItem,
1015        MyRoomTopMenu_SetDifficultySelectMenuItem, MyRoomTopMenu_SleepSelectMenuItem,
1016    };
1017    #[cfg(feature = "app-basicmenu")]
1018    pub use crate::app::basicmenu::IBasicMenuMethods;
1019    #[cfg(feature = "app-basicmenuitem")]
1020    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
1021    #[cfg(feature = "app-procinst")]
1022    pub use crate::app::procinst::IProcInstMethods;
1023    #[cfg(feature = "system-delegate")]
1024    pub use crate::system::delegate::IDelegateMethods;
1025    #[cfg(feature = "system-multicastdelegate")]
1026    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1027    #[cfg(feature = "system-object")]
1028    pub use crate::system::object::IObjectMethods;
1029    #[cfg(feature = "system-enum")]
1030    pub use crate::system::r#enum::IEnumMethods;
1031    #[cfg(feature = "system-valuetype")]
1032    pub use crate::system::valuetype::IValueTypeMethods;
1033    pub use crate::{
1034        app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
1035        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
1036    };
1037}