Skip to main content

engage/generated/app/
amiiboticketyesnodialogsound.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-amiiboticketyesnodialogsound-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicdialog::{BasicDialog, IBasicDialog},
11            basicmenu::{BasicMenu, IBasicMenu},
12            exchangeyesnodialog::{ExchangeYesNoDialog, IExchangeYesNoDialog},
13            procinst::{IProcInst, ProcInst},
14        },
15        system::object::{IObject, Object},
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/amiiboticketyesnodialogsound/AmiiboTicketYesNoDialogSound.md"))]
19    #[::unity::class(namespace = "App", name = "AmiiboTicketYesNoDialogSound")]
20    #[parent(crate::app::exchangeyesnodialog::ExchangeYesNoDialog)]
21    pub struct AmiiboTicketYesNoDialogSound {}
22}
23
24#[cfg(feature = "app-amiiboticketyesnodialogsound-types")]
25pub use __types::*;
26
27#[cfg(feature = "app-amiiboticketyesnodialogsound")]
28impl AmiiboTicketYesNoDialogSound {
29    #[doc = "`CreateBind(crate::app::procinst::ProcInst, ::unity::Il2CppString, ::unity::Il2CppString, i32, crate::system::action::Action)` overload"]
30    pub fn create_bind(
31        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
32        music_name: impl ::core::convert::Into<::unity::Il2CppString>,
33        event_name: impl ::core::convert::Into<::unity::Il2CppString>,
34        ticket_num: impl ::core::convert::Into<i32>,
35        yes_event_handler: impl ::core::convert::Into<crate::system::action::Action>,
36    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
37        unsafe {
38            ::unity::il2cpp_call!((::unity::module_base()+0x1c8a440usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
39(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(::unity::Il2CppString)::core::convert::Into::into(music_name),(::unity::Il2CppString)::core::convert::Into::into(event_name),(i32)::core::convert::Into::into(ticket_num),(crate::system::action::Action)::core::convert::Into::into(yes_event_handler))
40        }
41    }
42}
43
44#[cfg(feature = "app-amiiboticketyesnodialogsound")]
45pub trait IAmiiboTicketYesNoDialogSoundMethods: IAmiiboTicketYesNoDialogSound {
46    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::exchangedialogcontent::ExchangeDialogContent, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam, ::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam)` overload"]
47    fn ctor(
48        self,
49        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
50        menu_content: impl ::core::convert::Into<crate::app::exchangedialogcontent::ExchangeDialogContent>,
51        top_message: impl ::core::convert::Into<::unity::Il2CppString>,
52        get_item_title: impl ::core::convert::Into<::unity::Il2CppString>,
53        get_item_param: impl ::core::convert::Into<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
54        cost_item_title: impl ::core::convert::Into<::unity::Il2CppString>,
55        cost_item_param_list: impl ::core::convert::Into<
56            crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
57        >,
58        cost_money_param: impl ::core::convert::Into<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam>,
59    ) -> () {
60        unsafe {
61            let __receiver =
62                <AmiiboTicketYesNoDialogSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x1c8bfc0usize)as*mut u8,();
64(AmiiboTicketYesNoDialogSound)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::exchangedialogcontent::ExchangeDialogContent)::core::convert::Into::into(menu_content),(::unity::Il2CppString)::core::convert::Into::into(top_message),(::unity::Il2CppString)::core::convert::Into::into(get_item_title),(crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam)::core::convert::Into::into(get_item_param),(::unity::Il2CppString)::core::convert::Into::into(cost_item_title),(crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>)::core::convert::Into::into(cost_item_param_list),(crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam)::core::convert::Into::into(cost_money_param))
65        }
66    }
67    #[doc = "`OnClose()` overload"]
68    fn on_close(self) -> () {
69        unsafe {
70            let __receiver =
71                <AmiiboTicketYesNoDialogSound as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            {
73                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
75                    panic!(
76                        "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81                        26usize,
82                        __vt.len(),
83                        <AmiiboTicketYesNoDialogSound as ::unity::ClassIdentity>::NAME,
84                        "OnClose",
85                    )
86                });
87                let __inner: extern "C" fn(AmiiboTicketYesNoDialogSound, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
88                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89                __inner(__receiver, __mi)
90            }
91        }
92    }
93}
94
95#[cfg(feature = "app-amiiboticketyesnodialogsound")]
96impl<__T: IAmiiboTicketYesNoDialogSound> IAmiiboTicketYesNoDialogSoundMethods for __T {}
97
98#[cfg(feature = "app-amiiboticketyesnodialogsound")]
99impl AmiiboTicketYesNoDialogSound {
100    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
102    }
103
104    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
106    }
107
108    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
110    }
111}
112
113#[cfg(feature = "app-amiiboticketyesnodialogsound")]
114impl AmiiboTicketYesNoDialogSound {
115    #[doc = "Direct (non-virtual) call to `AmiiboTicketYesNoDialogSound`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
116    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
117        let __mi = Self::on_close_method_info();
118        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
119        __inner(this.into(), ::core::option::Option::None)
120    }
121}
122
123#[cfg(feature = "app-amiiboticketyesnodialogsound")]
124impl AmiiboTicketYesNoDialogSound {
125    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::exchangedialogcontent::ExchangeDialogContent, ::unity::Il2CppString, ::unity::Il2CppString, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam, ::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam)` — overload selector"]
126    pub fn new(
127        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
128        menu_content: crate::app::exchangedialogcontent::ExchangeDialogContent,
129        top_message: ::unity::Il2CppString,
130        get_item_title: ::unity::Il2CppString,
131        get_item_param: crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam,
132        cost_item_title: ::unity::Il2CppString,
133        cost_item_param_list: crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
134        cost_money_param: crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam,
135    ) -> Self {
136        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
137            panic!(
138                "{}
139::{}
140 failed to instantiate",
141                ::core::stringify!(AmiiboTicketYesNoDialogSound),
142                ::core::stringify!(new),
143            )
144        });
145        <Self as IAmiiboTicketYesNoDialogSoundMethods>::ctor(
146            this,
147            menu_item_list,
148            menu_content,
149            top_message,
150            get_item_title,
151            get_item_param,
152            cost_item_title,
153            cost_item_param_list,
154            cost_money_param,
155        );
156        this
157    }
158}
159
160#[cfg(feature = "app-amiiboticketyesnodialogsound")]
161#[doc(hidden)]
162pub mod prelude {
163    pub use super::{AmiiboTicketYesNoDialogSound, IAmiiboTicketYesNoDialogSound, IAmiiboTicketYesNoDialogSoundMethods};
164    #[cfg(feature = "app-basicdialog")]
165    pub use crate::app::basicdialog::IBasicDialogMethods;
166    #[cfg(feature = "app-basicmenu")]
167    pub use crate::app::basicmenu::IBasicMenuMethods;
168    #[cfg(feature = "app-exchangeyesnodialog")]
169    pub use crate::app::exchangeyesnodialog::IExchangeYesNoDialogMethods;
170    #[cfg(feature = "app-procinst")]
171    pub use crate::app::procinst::IProcInstMethods;
172    #[cfg(feature = "system-object")]
173    pub use crate::system::object::IObjectMethods;
174    pub use crate::{
175        app::{basicdialog::IBasicDialog, basicmenu::IBasicMenu, exchangeyesnodialog::IExchangeYesNoDialog, procinst::IProcInst},
176        system::object::IObject,
177    };
178}