Skip to main content

engage/generated/app/gmap/
enterchapteryesnodialog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-gmap-enterchapteryesnodialog-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicdialog::{BasicDialog, IBasicDialog},
11            basicdialogitem::{BasicDialogItem, IBasicDialogItem},
12            basicdialogitemno::{BasicDialogItemNo, IBasicDialogItemNo},
13            basicdialogitemyes::{BasicDialogItemYes, IBasicDialogItemYes},
14            basicmenu::{BasicMenu, IBasicMenu},
15            basicmenuitem::{BasicMenuItem, IBasicMenuItem},
16            procinst::{IProcInst, ProcInst},
17            yesnodialog::{IYesNoDialog, YesNoDialog},
18        },
19        system::{
20            object::{IObject, Object},
21            r#enum::{Enum, IEnum},
22            valuetype::{IValueType, ValueType},
23        },
24    };
25
26    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmap/enterchapteryesnodialog/EnterChapterYesNoDialog.md"))]
27    #[::unity::class(namespace = "App.Gmap", name = "EnterChapterYesNoDialog")]
28    #[parent(crate::app::yesnodialog::YesNoDialog)]
29    pub struct EnterChapterYesNoDialog {}
30
31    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmap/enterchapteryesnodialog/EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes.md"))]
32    #[::unity::class(namespace = "App.Gmap", name = "EnterChapterYesNoDialog.EnterChapterDialogRecollectionItemYes")]
33    #[parent(crate::app::basicdialogitemyes::BasicDialogItemYes)]
34    pub struct EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes {
35        #[offset(112)]
36        #[rename(name = "m_Callback")]
37        pub m_callback: crate::system::action::Action,
38    }
39
40    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmap/enterchapteryesnodialog/EnterChapterYesNoDialog_Type.md"))]
41    #[repr(C)]
42    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
43    pub struct EnterChapterYesNoDialog_Type {
44        pub value: i32,
45    }
46    impl ::unity::ClassIdentity for EnterChapterYesNoDialog_Type {
47        const NAME: &'static str = "EnterChapterYesNoDialog.Type";
48        const NAMESPACE: &'static str = "App.Gmap";
49
50        fn class() -> ::unity::Class {
51            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
52            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
53        }
54    }
55    impl ::unity::IlType for EnterChapterYesNoDialog_Type {
56        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
57            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
58        }
59    }
60    impl EnterChapterYesNoDialog_Type {
61        pub fn main() -> Self {
62            Self { value: 0 }
63        }
64
65        pub fn encount() -> Self {
66            Self { value: 1 }
67        }
68
69        pub fn training() -> Self {
70            Self { value: 2 }
71        }
72
73        pub fn recollection() -> Self {
74            Self { value: 3 }
75        }
76
77        pub fn select_battle() -> Self {
78            Self { value: 4 }
79        }
80    }
81
82    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmap/enterchapteryesnodialog/EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes.md"))]
83    #[::unity::class(namespace = "App.Gmap", name = "EnterChapterYesNoDialog.EnterChapterDialogEncountItemYes")]
84    #[parent(crate::app::basicdialogitemyes::BasicDialogItemYes)]
85    pub struct EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes {
86        #[offset(112)]
87        #[rename(name = "m_Callback")]
88        pub m_callback: crate::system::action::Action,
89    }
90
91    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmap/enterchapteryesnodialog/EnterChapterYesNoDialog_EnterChapterDialogMainItemYes.md"))]
92    #[::unity::class(namespace = "App.Gmap", name = "EnterChapterYesNoDialog.EnterChapterDialogMainItemYes")]
93    #[parent(crate::app::basicdialogitemyes::BasicDialogItemYes)]
94    pub struct EnterChapterYesNoDialog_EnterChapterDialogMainItemYes {
95        #[offset(112)]
96        #[rename(name = "m_Callback")]
97        pub m_callback: crate::system::action::Action,
98    }
99
100    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/gmap/enterchapteryesnodialog/EnterChapterYesNoDialog_EnterChapterDialogMainItemNo.md"))]
101    #[::unity::class(namespace = "App.Gmap", name = "EnterChapterYesNoDialog.EnterChapterDialogMainItemNo")]
102    #[parent(crate::app::basicdialogitemno::BasicDialogItemNo)]
103    pub struct EnterChapterYesNoDialog_EnterChapterDialogMainItemNo {}
104}
105
106#[cfg(feature = "app-gmap-enterchapteryesnodialog-types")]
107pub use __types::*;
108
109#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
110impl EnterChapterYesNoDialog {
111    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::gmap::enterchapteryesnodialog::EnterChapterYesNoDialog_Type, crate::app::gmapspot::GmapSpot, crate::system::action::Action, crate::system::action::Action)` overload"]
112    pub fn create_bind(
113        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
114        r#type: impl ::core::convert::Into<crate::app::gmap::enterchapteryesnodialog::EnterChapterYesNoDialog_Type>,
115        now_spot: impl ::core::convert::Into<crate::app::gmapspot::GmapSpot>,
116        yes_callback: impl ::core::convert::Into<crate::system::action::Action>,
117        yes_callback2: impl ::core::convert::Into<crate::system::action::Action>,
118    ) -> () {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x22ea9a0usize)as*mut u8,();
121(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::gmap::enterchapteryesnodialog::EnterChapterYesNoDialog_Type)::core::convert::Into::into(r#type),(crate::app::gmapspot::GmapSpot)::core::convert::Into::into(now_spot),(crate::system::action::Action)::core::convert::Into::into(yes_callback),(crate::system::action::Action)::core::convert::Into::into(yes_callback2))
122        }
123    }
124
125    #[doc = "`CreateBind(crate::app::procinst::ProcInst, ::unity::Il2CppString, crate::app::basicdialogitemyes::BasicDialogItemYes, crate::app::basicdialogitemyes::BasicDialogItemYes)` overload"]
126    pub fn create_bind_2(
127        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
128        message: impl ::core::convert::Into<::unity::Il2CppString>,
129        yes_item: impl ::core::convert::Into<crate::app::basicdialogitemyes::BasicDialogItemYes>,
130        yes_item2: impl ::core::convert::Into<crate::app::basicdialogitemyes::BasicDialogItemYes>,
131    ) -> crate::app::gmap::enterchapteryesnodialog::EnterChapterYesNoDialog {
132        unsafe {
133            ::unity::il2cpp_call!((::unity::module_base()+0x22ead00usize)as*mut u8,crate::app::gmap::enterchapteryesnodialog::EnterChapterYesNoDialog;
134(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(message),(crate::app::basicdialogitemyes::BasicDialogItemYes)::core::convert::Into::into(yes_item),(crate::app::basicdialogitemyes::BasicDialogItemYes)::core::convert::Into::into(yes_item2))
135        }
136    }
137}
138
139#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
140pub trait IEnterChapterYesNoDialogMethods: IEnterChapterYesNoDialog {
141    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` overload"]
142    fn ctor(
143        self,
144        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
145        menu_content: impl ::core::convert::Into<crate::app::basicdialogcontent::BasicDialogContent>,
146    ) -> () {
147        unsafe {
148            let __receiver =
149                <EnterChapterYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x22ea990usize)as*mut u8,();
151(EnterChapterYesNoDialog)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicdialogcontent::BasicDialogContent)::core::convert::Into::into(menu_content))
152        }
153    }
154}
155
156#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
157impl<__T: IEnterChapterYesNoDialog> IEnterChapterYesNoDialogMethods for __T {}
158
159#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
160impl EnterChapterYesNoDialog {
161    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
163    }
164
165    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
167    }
168
169    pub fn create_bind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
171    }
172}
173
174#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
175impl EnterChapterYesNoDialog {
176    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` — overload selector"]
177    pub fn new(
178        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
179        menu_content: crate::app::basicdialogcontent::BasicDialogContent,
180    ) -> Self {
181        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
182            panic!(
183                "{}
184::{}
185 failed to instantiate",
186                ::core::stringify!(EnterChapterYesNoDialog),
187                ::core::stringify!(new),
188            )
189        });
190        <Self as IEnterChapterYesNoDialogMethods>::ctor(this, menu_item_list, menu_content);
191        this
192    }
193}
194
195#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
196pub trait IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYesMethods:
197    IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes
198{
199    #[doc = "`.ctor(crate::system::action::Action)` overload"]
200    fn ctor(self, callback: impl ::core::convert::Into<crate::system::action::Action>) -> () {
201        unsafe {
202            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes as ::unity::FromIlInstance>::from_il_instance(
203                <Self as ::unity::SystemObject>::as_instance(self),
204            );
205            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8c50usize)as*mut u8,();
206(EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes)__receiver,(crate::system::action::Action)::core::convert::Into::into(callback))
207        }
208    }
209    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action::Action)` overload"]
210    fn ctor_2(
211        self,
212        label: impl ::core::convert::Into<::unity::Il2CppString>,
213        callback: impl ::core::convert::Into<crate::system::action::Action>,
214    ) -> () {
215        unsafe {
216            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes as ::unity::FromIlInstance>::from_il_instance(
217                <Self as ::unity::SystemObject>::as_instance(self),
218            );
219            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8d00usize)as*mut u8,();
220(EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes)__receiver,(::unity::Il2CppString)::core::convert::Into::into(label),(crate::system::action::Action)::core::convert::Into::into(callback))
221        }
222    }
223    #[doc = "`ACall()` overload"]
224    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
225        unsafe {
226            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes as ::unity::FromIlInstance>::from_il_instance(
227                <Self as ::unity::SystemObject>::as_instance(self),
228            );
229            {
230                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
231                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
232                    panic!(
233                        "unity: virtual slot {}
234 out of range (vtable len {}
235) on the runtime class behind {}
236 (method `{}
237`)",
238                        18usize,
239                        __vt.len(),
240                        <EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes as ::unity::ClassIdentity>::NAME,
241                        "ACall",
242                    )
243                });
244                let __inner: extern "C" fn(
245                    EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes,
246                    ::unity::OptionalMethod,
247                ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
248                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
249                __inner(__receiver, __mi)
250            }
251        }
252    }
253}
254
255#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
256impl<__T: IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes> IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYesMethods
257    for __T
258{
259}
260
261#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
262impl EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes {
263    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
265    }
266
267    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
269    }
270
271    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
273    }
274}
275
276#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
277impl EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes {
278    #[doc = "Direct (non-virtual) call to `EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
279    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
280        let __mi = Self::a_call_method_info();
281        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
282            ::core::mem::transmute(__mi.method_ptr);
283        __inner(this.into(), ::core::option::Option::None)
284    }
285}
286
287#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
288impl EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes {
289    #[doc = "`.ctor(crate::system::action::Action)` — overload selector"]
290    pub fn new(callback: crate::system::action::Action) -> Self {
291        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
292            panic!(
293                "{}
294::{}
295 failed to instantiate",
296                ::core::stringify!(EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes),
297                ::core::stringify!(new),
298            )
299        });
300        <Self as IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYesMethods>::ctor(this, callback);
301        this
302    }
303
304    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action::Action)` — overload selector"]
305    pub fn new_2(label: ::unity::Il2CppString, callback: crate::system::action::Action) -> Self {
306        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
307            panic!(
308                "{}
309::{}
310 failed to instantiate",
311                ::core::stringify!(EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes),
312                ::core::stringify!(new_2),
313            )
314        });
315        <Self as IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYesMethods>::ctor_2(this, label, callback);
316        this
317    }
318}
319
320#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
321pub trait IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYesMethods: IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYes {
322    #[doc = "`.ctor(crate::system::action::Action)` overload"]
323    fn ctor(self, callback: impl ::core::convert::Into<crate::system::action::Action>) -> () {
324        unsafe {
325            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes as ::unity::FromIlInstance>::from_il_instance(
326                <Self as ::unity::SystemObject>::as_instance(self),
327            );
328            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8960usize)as*mut u8,();
329(EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes)__receiver,(crate::system::action::Action)::core::convert::Into::into(callback))
330        }
331    }
332    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action::Action)` overload"]
333    fn ctor_2(
334        self,
335        label: impl ::core::convert::Into<::unity::Il2CppString>,
336        callback: impl ::core::convert::Into<crate::system::action::Action>,
337    ) -> () {
338        unsafe {
339            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes as ::unity::FromIlInstance>::from_il_instance(
340                <Self as ::unity::SystemObject>::as_instance(self),
341            );
342            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8a10usize)as*mut u8,();
343(EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes)__receiver,(::unity::Il2CppString)::core::convert::Into::into(label),(crate::system::action::Action)::core::convert::Into::into(callback))
344        }
345    }
346    #[doc = "`ACall()` overload"]
347    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
348        unsafe {
349            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes as ::unity::FromIlInstance>::from_il_instance(
350                <Self as ::unity::SystemObject>::as_instance(self),
351            );
352            {
353                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
354                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
355                    panic!(
356                        "unity: virtual slot {}
357 out of range (vtable len {}
358) on the runtime class behind {}
359 (method `{}
360`)",
361                        18usize,
362                        __vt.len(),
363                        <EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes as ::unity::ClassIdentity>::NAME,
364                        "ACall",
365                    )
366                });
367                let __inner: extern "C" fn(
368                    EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes,
369                    ::unity::OptionalMethod,
370                ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
371                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
372                __inner(__receiver, __mi)
373            }
374        }
375    }
376}
377
378#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
379impl<__T: IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYes> IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYesMethods for __T {}
380
381#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
382impl EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes {
383    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
385    }
386
387    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
389    }
390
391    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
393    }
394}
395
396#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
397impl EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes {
398    #[doc = "Direct (non-virtual) call to `EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
399    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
400        let __mi = Self::a_call_method_info();
401        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
402            ::core::mem::transmute(__mi.method_ptr);
403        __inner(this.into(), ::core::option::Option::None)
404    }
405}
406
407#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
408impl EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes {
409    #[doc = "`.ctor(crate::system::action::Action)` — overload selector"]
410    pub fn new(callback: crate::system::action::Action) -> Self {
411        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
412            panic!(
413                "{}
414::{}
415 failed to instantiate",
416                ::core::stringify!(EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes),
417                ::core::stringify!(new),
418            )
419        });
420        <Self as IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYesMethods>::ctor(this, callback);
421        this
422    }
423
424    #[doc = "`.ctor(::unity::Il2CppString, crate::system::action::Action)` — overload selector"]
425    pub fn new_2(label: ::unity::Il2CppString, callback: crate::system::action::Action) -> Self {
426        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
427            panic!(
428                "{}
429::{}
430 failed to instantiate",
431                ::core::stringify!(EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes),
432                ::core::stringify!(new_2),
433            )
434        });
435        <Self as IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYesMethods>::ctor_2(this, label, callback);
436        this
437    }
438}
439
440#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
441pub trait IEnterChapterYesNoDialog_EnterChapterDialogMainItemYesMethods: IEnterChapterYesNoDialog_EnterChapterDialogMainItemYes {
442    #[doc = "`.ctor(crate::system::action::Action)` overload"]
443    fn ctor(self, callback: impl ::core::convert::Into<crate::system::action::Action>) -> () {
444        unsafe {
445            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogMainItemYes as ::unity::FromIlInstance>::from_il_instance(
446                <Self as ::unity::SystemObject>::as_instance(self),
447            );
448            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8b70usize)as*mut u8,();
449(EnterChapterYesNoDialog_EnterChapterDialogMainItemYes)__receiver,(crate::system::action::Action)::core::convert::Into::into(callback))
450        }
451    }
452    #[doc = "`ACall()` overload"]
453    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
454        unsafe {
455            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogMainItemYes as ::unity::FromIlInstance>::from_il_instance(
456                <Self as ::unity::SystemObject>::as_instance(self),
457            );
458            {
459                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
460                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
461                    panic!(
462                        "unity: virtual slot {}
463 out of range (vtable len {}
464) on the runtime class behind {}
465 (method `{}
466`)",
467                        18usize,
468                        __vt.len(),
469                        <EnterChapterYesNoDialog_EnterChapterDialogMainItemYes as ::unity::ClassIdentity>::NAME,
470                        "ACall",
471                    )
472                });
473                let __inner: extern "C" fn(
474                    EnterChapterYesNoDialog_EnterChapterDialogMainItemYes,
475                    ::unity::OptionalMethod,
476                ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
477                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
478                __inner(__receiver, __mi)
479            }
480        }
481    }
482}
483
484#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
485impl<__T: IEnterChapterYesNoDialog_EnterChapterDialogMainItemYes> IEnterChapterYesNoDialog_EnterChapterDialogMainItemYesMethods for __T {}
486
487#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
488impl EnterChapterYesNoDialog_EnterChapterDialogMainItemYes {
489    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
491    }
492
493    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
495    }
496}
497
498#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
499impl EnterChapterYesNoDialog_EnterChapterDialogMainItemYes {
500    #[doc = "Direct (non-virtual) call to `EnterChapterYesNoDialog_EnterChapterDialogMainItemYes`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
501    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
502        let __mi = Self::a_call_method_info();
503        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
504            ::core::mem::transmute(__mi.method_ptr);
505        __inner(this.into(), ::core::option::Option::None)
506    }
507}
508
509#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
510impl EnterChapterYesNoDialog_EnterChapterDialogMainItemYes {
511    #[doc = "`.ctor(crate::system::action::Action)` — overload selector"]
512    pub fn new(callback: crate::system::action::Action) -> Self {
513        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
514            panic!(
515                "{}
516::{}
517 failed to instantiate",
518                ::core::stringify!(EnterChapterYesNoDialog_EnterChapterDialogMainItemYes),
519                ::core::stringify!(new),
520            )
521        });
522        <Self as IEnterChapterYesNoDialog_EnterChapterDialogMainItemYesMethods>::ctor(this, callback);
523        this
524    }
525}
526
527#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
528pub trait IEnterChapterYesNoDialog_EnterChapterDialogMainItemNoMethods: IEnterChapterYesNoDialog_EnterChapterDialogMainItemNo {
529    #[doc = "`.ctor()` overload"]
530    fn ctor(self) -> () {
531        unsafe {
532            let __receiver = <EnterChapterYesNoDialog_EnterChapterDialogMainItemNo as ::unity::FromIlInstance>::from_il_instance(
533                <Self as ::unity::SystemObject>::as_instance(self),
534            );
535            ::unity::il2cpp_call!((::unity::module_base()+0x1bd8ae0usize)as*mut u8,();
536(EnterChapterYesNoDialog_EnterChapterDialogMainItemNo)__receiver)
537        }
538    }
539}
540
541#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
542impl<__T: IEnterChapterYesNoDialog_EnterChapterDialogMainItemNo> IEnterChapterYesNoDialog_EnterChapterDialogMainItemNoMethods for __T {}
543
544#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
545impl EnterChapterYesNoDialog_EnterChapterDialogMainItemNo {
546    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
547        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
548    }
549}
550
551#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
552impl EnterChapterYesNoDialog_EnterChapterDialogMainItemNo {
553    #[doc = "`.ctor()` — no args"]
554    pub fn new() -> Self {
555        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
556            panic!(
557                "{}
558::{}
559 failed to instantiate",
560                ::core::stringify!(EnterChapterYesNoDialog_EnterChapterDialogMainItemNo),
561                ::core::stringify!(new),
562            )
563        });
564        <Self as IEnterChapterYesNoDialog_EnterChapterDialogMainItemNoMethods>::ctor(this);
565        this
566    }
567}
568
569#[cfg(feature = "app-gmap-enterchapteryesnodialog")]
570#[doc(hidden)]
571pub mod prelude {
572    pub use super::{
573        EnterChapterYesNoDialog, EnterChapterYesNoDialog_EnterChapterDialogEncountItemYes, EnterChapterYesNoDialog_EnterChapterDialogMainItemNo,
574        EnterChapterYesNoDialog_EnterChapterDialogMainItemYes, EnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes,
575        EnterChapterYesNoDialog_Type, IEnterChapterYesNoDialog, IEnterChapterYesNoDialogMethods,
576        IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYes, IEnterChapterYesNoDialog_EnterChapterDialogEncountItemYesMethods,
577        IEnterChapterYesNoDialog_EnterChapterDialogMainItemNo, IEnterChapterYesNoDialog_EnterChapterDialogMainItemNoMethods,
578        IEnterChapterYesNoDialog_EnterChapterDialogMainItemYes, IEnterChapterYesNoDialog_EnterChapterDialogMainItemYesMethods,
579        IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYes, IEnterChapterYesNoDialog_EnterChapterDialogRecollectionItemYesMethods,
580    };
581    #[cfg(feature = "app-basicdialog")]
582    pub use crate::app::basicdialog::IBasicDialogMethods;
583    #[cfg(feature = "app-basicdialogitem")]
584    pub use crate::app::basicdialogitem::IBasicDialogItemMethods;
585    #[cfg(feature = "app-basicdialogitemno")]
586    pub use crate::app::basicdialogitemno::IBasicDialogItemNoMethods;
587    #[cfg(feature = "app-basicdialogitemyes")]
588    pub use crate::app::basicdialogitemyes::IBasicDialogItemYesMethods;
589    #[cfg(feature = "app-basicmenu")]
590    pub use crate::app::basicmenu::IBasicMenuMethods;
591    #[cfg(feature = "app-basicmenuitem")]
592    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
593    #[cfg(feature = "app-procinst")]
594    pub use crate::app::procinst::IProcInstMethods;
595    #[cfg(feature = "app-yesnodialog")]
596    pub use crate::app::yesnodialog::IYesNoDialogMethods;
597    #[cfg(feature = "system-object")]
598    pub use crate::system::object::IObjectMethods;
599    #[cfg(feature = "system-enum")]
600    pub use crate::system::r#enum::IEnumMethods;
601    #[cfg(feature = "system-valuetype")]
602    pub use crate::system::valuetype::IValueTypeMethods;
603    pub use crate::{
604        app::{
605            basicdialog::IBasicDialog, basicdialogitem::IBasicDialogItem, basicdialogitemno::IBasicDialogItemNo,
606            basicdialogitemyes::IBasicDialogItemYes, basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst,
607            yesnodialog::IYesNoDialog,
608        },
609        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
610    };
611}