Skip to main content

engage/generated/app/
dragonridedifficultselectmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-dragonridedifficultselectmenu-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/dragonridedifficultselectmenu/DragonRideDifficultSelectMenu.md"))]
24    #[::unity::class(namespace = "App", name = "DragonRideDifficultSelectMenu")]
25    #[parent(crate::app::basicmenu::BasicMenu)]
26    pub struct DragonRideDifficultSelectMenu {
27        #[offset(200)]
28        #[rename(name = "m_EnableChecker")]
29        pub m_enable_checker: ::unity::Array<bool>,
30    }
31
32    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dragonridedifficultselectmenu/DragonRideDifficultSelectMenu_Result2.md"))]
33    #[repr(C)]
34    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
35    pub struct DragonRideDifficultSelectMenu_Result2 {
36        pub value: i32,
37    }
38    impl ::unity::ClassIdentity for DragonRideDifficultSelectMenu_Result2 {
39        const NAME: &'static str = "DragonRideDifficultSelectMenu.Result2";
40        const NAMESPACE: &'static str = "App";
41
42        fn class() -> ::unity::Class {
43            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
44            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
45        }
46    }
47    impl ::unity::IlType for DragonRideDifficultSelectMenu_Result2 {
48        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
49            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
50        }
51    }
52    impl DragonRideDifficultSelectMenu_Result2 {
53        pub fn cancel() -> Self {
54            Self { value: 0 }
55        }
56
57        pub fn normal() -> Self {
58            Self { value: 1 }
59        }
60
61        pub fn hard() -> Self {
62            Self { value: 2 }
63        }
64
65        pub fn expert() -> Self {
66            Self { value: 3 }
67        }
68    }
69
70    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dragonridedifficultselectmenu/DragonRideDifficultSelectMenu_DifficultyItem.md"))]
71    #[::unity::class(namespace = "App", name = "DragonRideDifficultSelectMenu.DifficultyItem")]
72    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
73    pub struct DragonRideDifficultSelectMenu_DifficultyItem {
74        #[offset(104)]
75        #[rename(name = "m_DifficultID")]
76        pub m_difficult_id: ::unity::Il2CppString,
77        #[offset(112)]
78        #[rename(name = "m_IsEnable")]
79        pub m_is_enable: bool,
80        #[offset(113)]
81        #[rename(name = "m_IsExpert")]
82        pub m_is_expert: bool,
83    }
84
85    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/dragonridedifficultselectmenu/DragonRideDifficultSelectMenu_DecideEventHandler.md"))]
86    #[::unity::class(namespace = "App", name = "DragonRideDifficultSelectMenu.DecideEventHandler")]
87    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
88    pub struct DragonRideDifficultSelectMenu_DecideEventHandler {}
89}
90
91#[cfg(feature = "app-dragonridedifficultselectmenu-types")]
92pub use __types::*;
93
94#[cfg(feature = "app-dragonridedifficultselectmenu")]
95impl DragonRideDifficultSelectMenu {
96    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2, crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler)` overload"]
97    pub fn create_bind(
98        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
99        initial_selected: impl ::core::convert::Into<crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2>,
100        event_handler: impl ::core::convert::Into<crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler>,
101    ) -> () {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x2ac35e0usize)as*mut u8,();
104(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
105        }
106    }
107}
108
109#[cfg(feature = "app-dragonridedifficultselectmenu")]
110pub trait IDragonRideDifficultSelectMenuMethods: IDragonRideDifficultSelectMenu {
111    #[doc = "`get_m_DecideEventHandler()` overload"]
112    fn get_m_decide_event_handler(self) -> crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler {
113        unsafe {
114            let __receiver =
115                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            ::unity::il2cpp_call!((::unity::module_base()+0x2ac3450usize)as*mut u8,crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler;
117(DragonRideDifficultSelectMenu)__receiver)
118        }
119    }
120    #[doc = "`set_m_DecideEventHandler(crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler)` overload"]
121    fn set_m_decide_event_handler(
122        self,
123        value: impl ::core::convert::Into<crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler>,
124    ) -> () {
125        unsafe {
126            let __receiver =
127                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x2ac3460usize)as*mut u8,();
129(DragonRideDifficultSelectMenu)__receiver,(crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler)::core::convert::Into::into(value))
130        }
131    }
132    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2, crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler, ::unity::Array<bool>)` overload"]
133    fn ctor(
134        self,
135        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
136        menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
137        initial_selected: impl ::core::convert::Into<crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2>,
138        event_handler: impl ::core::convert::Into<crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler>,
139        set_array: impl ::core::convert::Into<::unity::Array<bool>>,
140    ) -> () {
141        unsafe {
142            let __receiver =
143                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x2ac3470usize)as*mut u8,();
145(DragonRideDifficultSelectMenu)__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::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler)::core::convert::Into::into(event_handler),(::unity::Array<bool>)::core::convert::Into::into(set_array))
146        }
147    }
148    #[doc = "`GetName()` overload"]
149    fn get_name(self) -> ::unity::Il2CppString {
150        unsafe {
151            let __receiver =
152                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            {
154                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
156                    panic!(
157                        "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162                        30usize,
163                        __vt.len(),
164                        <DragonRideDifficultSelectMenu as ::unity::ClassIdentity>::NAME,
165                        "GetName",
166                    )
167                });
168                let __inner: extern "C" fn(DragonRideDifficultSelectMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
169                    ::core::mem::transmute(__vi.method_ptr);
170                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171                __inner(__receiver, __mi)
172            }
173        }
174    }
175    #[doc = "`OnClose()` overload"]
176    fn on_close(self) -> () {
177        unsafe {
178            let __receiver =
179                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            {
181                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
183                    panic!(
184                        "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189                        26usize,
190                        __vt.len(),
191                        <DragonRideDifficultSelectMenu as ::unity::ClassIdentity>::NAME,
192                        "OnClose",
193                    )
194                });
195                let __inner: extern "C" fn(DragonRideDifficultSelectMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
196                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197                __inner(__receiver, __mi)
198            }
199        }
200    }
201    #[doc = "`ACall()` overload"]
202    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
203        unsafe {
204            let __receiver =
205                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            {
207                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
208                let __vi = *__vt.get(50usize).unwrap_or_else(|| {
209                    panic!(
210                        "unity: virtual slot {}
211 out of range (vtable len {}
212) on the runtime class behind {}
213 (method `{}
214`)",
215                        50usize,
216                        __vt.len(),
217                        <DragonRideDifficultSelectMenu as ::unity::ClassIdentity>::NAME,
218                        "ACall",
219                    )
220                });
221                let __inner: extern "C" fn(DragonRideDifficultSelectMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
222                    ::core::mem::transmute(__vi.method_ptr);
223                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
224                __inner(__receiver, __mi)
225            }
226        }
227    }
228    #[doc = "`BCall()` overload"]
229    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
230        unsafe {
231            let __receiver =
232                <DragonRideDifficultSelectMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            {
234                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
235                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
236                    panic!(
237                        "unity: virtual slot {}
238 out of range (vtable len {}
239) on the runtime class behind {}
240 (method `{}
241`)",
242                        51usize,
243                        __vt.len(),
244                        <DragonRideDifficultSelectMenu as ::unity::ClassIdentity>::NAME,
245                        "BCall",
246                    )
247                });
248                let __inner: extern "C" fn(DragonRideDifficultSelectMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
249                    ::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 = "`XCall()` overload"]
256    fn x_call(self) -> crate::app::basicmenu::BasicMenu_Result {
257        unsafe {
258            let __receiver =
259                <DragonRideDifficultSelectMenu 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(52usize).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                        52usize,
270                        __vt.len(),
271                        <DragonRideDifficultSelectMenu as ::unity::ClassIdentity>::NAME,
272                        "XCall",
273                    )
274                });
275                let __inner: extern "C" fn(DragonRideDifficultSelectMenu, ::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 = "`PlusCall()` overload"]
283    fn plus_call(self) -> crate::app::basicmenu::BasicMenu_Result {
284        unsafe {
285            let __receiver =
286                <DragonRideDifficultSelectMenu 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(56usize).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                        56usize,
297                        __vt.len(),
298                        <DragonRideDifficultSelectMenu as ::unity::ClassIdentity>::NAME,
299                        "PlusCall",
300                    )
301                });
302                let __inner: extern "C" fn(DragonRideDifficultSelectMenu, ::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-dragonridedifficultselectmenu")]
312impl<__T: IDragonRideDifficultSelectMenu> IDragonRideDifficultSelectMenuMethods for __T {}
313
314#[cfg(feature = "app-dragonridedifficultselectmenu")]
315impl DragonRideDifficultSelectMenu {
316    pub fn get_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
318    }
319
320    pub fn set_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
322    }
323
324    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
326    }
327
328    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
330    }
331
332    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
334    }
335
336    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
338    }
339
340    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
342    }
343
344    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
346    }
347
348    pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
350    }
351
352    pub fn plus_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
354    }
355}
356
357#[cfg(feature = "app-dragonridedifficultselectmenu")]
358impl DragonRideDifficultSelectMenu {
359    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
360    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
361        let __mi = Self::get_name_method_info();
362        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
363        __inner(this.into(), ::core::option::Option::None)
364    }
365
366    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
367    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
368        let __mi = Self::on_close_method_info();
369        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
370        __inner(this.into(), ::core::option::Option::None)
371    }
372
373    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
375        let __mi = Self::a_call_method_info();
376        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
377            ::core::mem::transmute(__mi.method_ptr);
378        __inner(this.into(), ::core::option::Option::None)
379    }
380
381    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
382    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
383        let __mi = Self::b_call_method_info();
384        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
385            ::core::mem::transmute(__mi.method_ptr);
386        __inner(this.into(), ::core::option::Option::None)
387    }
388
389    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
390    pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
391        let __mi = Self::x_call_method_info();
392        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
393            ::core::mem::transmute(__mi.method_ptr);
394        __inner(this.into(), ::core::option::Option::None)
395    }
396
397    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu`'s own `PlusCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
398    pub unsafe fn plus_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
399        let __mi = Self::plus_call_method_info();
400        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
401            ::core::mem::transmute(__mi.method_ptr);
402        __inner(this.into(), ::core::option::Option::None)
403    }
404}
405
406#[cfg(feature = "app-dragonridedifficultselectmenu")]
407impl DragonRideDifficultSelectMenu {
408    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2, crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler, ::unity::Array<bool>)` — overload selector"]
409    pub fn new(
410        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
411        menu_content: crate::app::basicmenucontent::BasicMenuContent,
412        initial_selected: crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2,
413        event_handler: crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_DecideEventHandler,
414        set_array: ::unity::Array<bool>,
415    ) -> Self {
416        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
417            panic!(
418                "{}
419::{}
420 failed to instantiate",
421                ::core::stringify!(DragonRideDifficultSelectMenu),
422                ::core::stringify!(new),
423            )
424        });
425        <Self as IDragonRideDifficultSelectMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, event_handler, set_array);
426        this
427    }
428}
429
430#[cfg(feature = "app-dragonridedifficultselectmenu")]
431pub trait IDragonRideDifficultSelectMenu_DifficultyItemMethods: IDragonRideDifficultSelectMenu_DifficultyItem {
432    #[doc = "`.ctor(::unity::Il2CppString, bool, bool)` overload"]
433    fn ctor(
434        self,
435        difficult_id: impl ::core::convert::Into<::unity::Il2CppString>,
436        enable: impl ::core::convert::Into<bool>,
437        is_expert: impl ::core::convert::Into<bool>,
438    ) -> () {
439        unsafe {
440            let __receiver = <DragonRideDifficultSelectMenu_DifficultyItem as ::unity::FromIlInstance>::from_il_instance(
441                <Self as ::unity::SystemObject>::as_instance(self),
442            );
443            ::unity::il2cpp_call!((::unity::module_base()+0x1bd41a0usize)as*mut u8,();
444(DragonRideDifficultSelectMenu_DifficultyItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(difficult_id),(bool)::core::convert::Into::into(enable),(bool)::core::convert::Into::into(is_expert))
445        }
446    }
447    #[doc = "`GetName()` overload"]
448    fn get_name(self) -> ::unity::Il2CppString {
449        unsafe {
450            let __receiver = <DragonRideDifficultSelectMenu_DifficultyItem as ::unity::FromIlInstance>::from_il_instance(
451                <Self as ::unity::SystemObject>::as_instance(self),
452            );
453            {
454                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
455                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
456                    panic!(
457                        "unity: virtual slot {}
458 out of range (vtable len {}
459) on the runtime class behind {}
460 (method `{}
461`)",
462                        4usize,
463                        __vt.len(),
464                        <DragonRideDifficultSelectMenu_DifficultyItem as ::unity::ClassIdentity>::NAME,
465                        "GetName",
466                    )
467                });
468                let __inner: extern "C" fn(DragonRideDifficultSelectMenu_DifficultyItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
469                    ::core::mem::transmute(__vi.method_ptr);
470                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
471                __inner(__receiver, __mi)
472            }
473        }
474    }
475    #[doc = "`BuildAttribute()` overload"]
476    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
477        unsafe {
478            let __receiver = <DragonRideDifficultSelectMenu_DifficultyItem as ::unity::FromIlInstance>::from_il_instance(
479                <Self as ::unity::SystemObject>::as_instance(self),
480            );
481            {
482                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
483                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
484                    panic!(
485                        "unity: virtual slot {}
486 out of range (vtable len {}
487) on the runtime class behind {}
488 (method `{}
489`)",
490                        8usize,
491                        __vt.len(),
492                        <DragonRideDifficultSelectMenu_DifficultyItem as ::unity::ClassIdentity>::NAME,
493                        "BuildAttribute",
494                    )
495                });
496                let __inner: extern "C" fn(
497                    DragonRideDifficultSelectMenu_DifficultyItem,
498                    ::unity::OptionalMethod,
499                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
500                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
501                __inner(__receiver, __mi)
502            }
503        }
504    }
505}
506
507#[cfg(feature = "app-dragonridedifficultselectmenu")]
508impl<__T: IDragonRideDifficultSelectMenu_DifficultyItem> IDragonRideDifficultSelectMenu_DifficultyItemMethods for __T {}
509
510#[cfg(feature = "app-dragonridedifficultselectmenu")]
511impl DragonRideDifficultSelectMenu_DifficultyItem {
512    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
513        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
514    }
515
516    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
517        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
518    }
519
520    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
521        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
522    }
523}
524
525#[cfg(feature = "app-dragonridedifficultselectmenu")]
526impl DragonRideDifficultSelectMenu_DifficultyItem {
527    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu_DifficultyItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
528    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
529        let __mi = Self::get_name_method_info();
530        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
531        __inner(this.into(), ::core::option::Option::None)
532    }
533
534    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu_DifficultyItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
535    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
536        let __mi = Self::build_attribute_method_info();
537        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
538            ::core::mem::transmute(__mi.method_ptr);
539        __inner(this.into(), ::core::option::Option::None)
540    }
541}
542
543#[cfg(feature = "app-dragonridedifficultselectmenu")]
544impl DragonRideDifficultSelectMenu_DifficultyItem {
545    #[doc = "`.ctor(::unity::Il2CppString, bool, bool)` — overload selector"]
546    pub fn new(difficult_id: ::unity::Il2CppString, enable: bool, is_expert: bool) -> Self {
547        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
548            panic!(
549                "{}
550::{}
551 failed to instantiate",
552                ::core::stringify!(DragonRideDifficultSelectMenu_DifficultyItem),
553                ::core::stringify!(new),
554            )
555        });
556        <Self as IDragonRideDifficultSelectMenu_DifficultyItemMethods>::ctor(this, difficult_id, enable, is_expert);
557        this
558    }
559}
560
561#[cfg(feature = "app-dragonridedifficultselectmenu")]
562pub trait IDragonRideDifficultSelectMenu_DecideEventHandlerMethods: IDragonRideDifficultSelectMenu_DecideEventHandler {
563    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
564    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
565        unsafe {
566            let __receiver = <DragonRideDifficultSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
567                <Self as ::unity::SystemObject>::as_instance(self),
568            );
569            ::unity::il2cpp_call!((::unity::module_base()+0x1bd3e80usize)as*mut u8,();
570(DragonRideDifficultSelectMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
571        }
572    }
573    #[doc = "`Invoke(crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2)` overload"]
574    fn invoke(self, result: impl ::core::convert::Into<crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2>) -> () {
575        unsafe {
576            let __receiver = <DragonRideDifficultSelectMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
577                <Self as ::unity::SystemObject>::as_instance(self),
578            );
579            {
580                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
581                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
582                    panic!(
583                        "unity: virtual slot {}
584 out of range (vtable len {}
585) on the runtime class behind {}
586 (method `{}
587`)",
588                        13usize,
589                        __vt.len(),
590                        <DragonRideDifficultSelectMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
591                        "Invoke",
592                    )
593                });
594                let __inner: extern "C" fn(
595                    DragonRideDifficultSelectMenu_DecideEventHandler,
596                    crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2,
597                    ::unity::OptionalMethod,
598                ) -> () = ::core::mem::transmute(__vi.method_ptr);
599                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
600                __inner(__receiver, ::core::convert::Into::into(result), __mi)
601            }
602        }
603    }
604}
605
606#[cfg(feature = "app-dragonridedifficultselectmenu")]
607impl<__T: IDragonRideDifficultSelectMenu_DecideEventHandler> IDragonRideDifficultSelectMenu_DecideEventHandlerMethods for __T {}
608
609#[cfg(feature = "app-dragonridedifficultselectmenu")]
610impl DragonRideDifficultSelectMenu_DecideEventHandler {
611    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
613    }
614
615    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
617    }
618}
619
620#[cfg(feature = "app-dragonridedifficultselectmenu")]
621impl DragonRideDifficultSelectMenu_DecideEventHandler {
622    #[doc = "Direct (non-virtual) call to `DragonRideDifficultSelectMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
623    pub unsafe fn invoke(
624        this: impl ::core::convert::Into<::unity::IlInstance>,
625        result: crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2,
626    ) -> () {
627        let __mi = Self::invoke_method_info();
628        let __inner: extern "C" fn(
629            ::unity::IlInstance,
630            crate::app::dragonridedifficultselectmenu::DragonRideDifficultSelectMenu_Result2,
631            ::unity::OptionalMethod,
632        ) -> () = ::core::mem::transmute(__mi.method_ptr);
633        __inner(this.into(), result, ::core::option::Option::None)
634    }
635}
636
637#[cfg(feature = "app-dragonridedifficultselectmenu")]
638impl DragonRideDifficultSelectMenu_DecideEventHandler {
639    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
640    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
641        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
642            panic!(
643                "{}
644::{}
645 failed to instantiate",
646                ::core::stringify!(DragonRideDifficultSelectMenu_DecideEventHandler),
647                ::core::stringify!(new),
648            )
649        });
650        <Self as IDragonRideDifficultSelectMenu_DecideEventHandlerMethods>::ctor(this, object, method);
651        this
652    }
653}
654
655#[cfg(feature = "app-dragonridedifficultselectmenu")]
656#[doc(hidden)]
657pub mod prelude {
658    pub use super::{
659        DragonRideDifficultSelectMenu, DragonRideDifficultSelectMenu_DecideEventHandler, DragonRideDifficultSelectMenu_DifficultyItem,
660        DragonRideDifficultSelectMenu_Result2, IDragonRideDifficultSelectMenu, IDragonRideDifficultSelectMenuMethods,
661        IDragonRideDifficultSelectMenu_DecideEventHandler, IDragonRideDifficultSelectMenu_DecideEventHandlerMethods,
662        IDragonRideDifficultSelectMenu_DifficultyItem, IDragonRideDifficultSelectMenu_DifficultyItemMethods,
663    };
664    #[cfg(feature = "app-basicmenu")]
665    pub use crate::app::basicmenu::IBasicMenuMethods;
666    #[cfg(feature = "app-basicmenuitem")]
667    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
668    #[cfg(feature = "app-procinst")]
669    pub use crate::app::procinst::IProcInstMethods;
670    #[cfg(feature = "system-delegate")]
671    pub use crate::system::delegate::IDelegateMethods;
672    #[cfg(feature = "system-multicastdelegate")]
673    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
674    #[cfg(feature = "system-object")]
675    pub use crate::system::object::IObjectMethods;
676    #[cfg(feature = "system-enum")]
677    pub use crate::system::r#enum::IEnumMethods;
678    #[cfg(feature = "system-valuetype")]
679    pub use crate::system::valuetype::IValueTypeMethods;
680    pub use crate::{
681        app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
682        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
683    };
684}