Skip to main content

engage/generated/app/
amiiboautoexchangedialog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-amiiboautoexchangedialog-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            basicmenu::{BasicMenu, IBasicMenu},
14            basicmenuitem::{BasicMenuItem, IBasicMenuItem},
15            exchangeyesnodialog::{ExchangeYesNoDialog, IExchangeYesNoDialog},
16            procinst::{IProcInst, ProcInst},
17        },
18        system::{
19            object::{IObject, Object},
20            r#enum::{Enum, IEnum},
21            valuetype::{IValueType, ValueType},
22        },
23    };
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/amiiboautoexchangedialog/AmiiboAutoExchangeDialog.md"))]
26    #[::unity::class(namespace = "App", name = "AmiiboAutoExchangeDialog")]
27    #[parent(crate::app::exchangeyesnodialog::ExchangeYesNoDialog)]
28    pub struct AmiiboAutoExchangeDialog {}
29
30    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/amiiboautoexchangedialog/AmiiboAutoExchangeDialog_ConfirmDialogNo.md"))]
31    #[::unity::class(namespace = "App", name = "AmiiboAutoExchangeDialog.ConfirmDialogNo")]
32    #[parent(crate::app::basicdialogitemno::BasicDialogItemNo)]
33    pub struct AmiiboAutoExchangeDialog_ConfirmDialogNo {}
34
35    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/amiiboautoexchangedialog/AmiiboAutoExchangeDialog_Type.md"))]
36    #[repr(C)]
37    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
38    pub struct AmiiboAutoExchangeDialog_Type {
39        pub value: i32,
40    }
41    impl ::unity::ClassIdentity for AmiiboAutoExchangeDialog_Type {
42        const NAME: &'static str = "AmiiboAutoExchangeDialog.Type";
43        const NAMESPACE: &'static str = "App";
44
45        fn class() -> ::unity::Class {
46            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
47            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
48        }
49    }
50    impl ::unity::IlType for AmiiboAutoExchangeDialog_Type {
51        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
52            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
53        }
54    }
55    impl AmiiboAutoExchangeDialog_Type {
56        pub fn sound() -> Self {
57            Self { value: 0 }
58        }
59
60        pub fn accessory() -> Self {
61            Self { value: 1 }
62        }
63    }
64}
65
66#[cfg(feature = "app-amiiboautoexchangedialog-types")]
67pub use __types::*;
68
69#[cfg(feature = "app-amiiboautoexchangedialog")]
70impl AmiiboAutoExchangeDialog {
71    #[doc = "`CreateBind(crate::app::procinst::ProcInst, i32, crate::app::amiiboautoexchangedialog::AmiiboAutoExchangeDialog_Type)` overload"]
72    pub fn create_bind(
73        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
74        ticket_num: impl ::core::convert::Into<i32>,
75        r#type: impl ::core::convert::Into<crate::app::amiiboautoexchangedialog::AmiiboAutoExchangeDialog_Type>,
76    ) -> () {
77        unsafe {
78            ::unity::il2cpp_call!((::unity::module_base()+0x1d31370usize)as*mut u8,();
79(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(i32)::core::convert::Into::into(ticket_num),(crate::app::amiiboautoexchangedialog::AmiiboAutoExchangeDialog_Type)::core::convert::Into::into(r#type))
80        }
81    }
82}
83
84#[cfg(feature = "app-amiiboautoexchangedialog")]
85pub trait IAmiiboAutoExchangeDialogMethods: IAmiiboAutoExchangeDialog {
86    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::exchangedialogcontent::ExchangeDialogContent, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam, ::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam)` overload"]
87    fn ctor(
88        self,
89        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
90        menu_content: impl ::core::convert::Into<crate::app::exchangedialogcontent::ExchangeDialogContent>,
91        top_message: impl ::core::convert::Into<::unity::Il2CppString>,
92        get_item_title: impl ::core::convert::Into<::unity::Il2CppString>,
93        get_item_param_list: impl ::core::convert::Into<
94            crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
95        >,
96        get_money_param: impl ::core::convert::Into<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam>,
97        cost_item_title: impl ::core::convert::Into<::unity::Il2CppString>,
98        cost_item_param_list: impl ::core::convert::Into<
99            crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
100        >,
101        cost_money_param: impl ::core::convert::Into<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam>,
102    ) -> () {
103        unsafe {
104            let __receiver =
105                <AmiiboAutoExchangeDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x1d32bf0usize)as*mut u8,();
107(AmiiboAutoExchangeDialog)__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::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>)::core::convert::Into::into(get_item_param_list),(crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam)::core::convert::Into::into(get_money_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))
108        }
109    }
110}
111
112#[cfg(feature = "app-amiiboautoexchangedialog")]
113impl<__T: IAmiiboAutoExchangeDialog> IAmiiboAutoExchangeDialogMethods for __T {}
114
115#[cfg(feature = "app-amiiboautoexchangedialog")]
116impl AmiiboAutoExchangeDialog {
117    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
119    }
120
121    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
123    }
124}
125
126#[cfg(feature = "app-amiiboautoexchangedialog")]
127impl AmiiboAutoExchangeDialog {
128    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::exchangedialogcontent::ExchangeDialogContent, ::unity::Il2CppString, ::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam, ::unity::Il2CppString, crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>, crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam)` — overload selector"]
129    pub fn new(
130        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
131        menu_content: crate::app::exchangedialogcontent::ExchangeDialogContent,
132        top_message: ::unity::Il2CppString,
133        get_item_title: ::unity::Il2CppString,
134        get_item_param_list: crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
135        get_money_param: crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam,
136        cost_item_title: ::unity::Il2CppString,
137        cost_item_param_list: crate::system::collections::generic::list_1::List_1<crate::app::exchangeyesnodialog::ExchangeYesNoDialog_ItemParam>,
138        cost_money_param: crate::app::exchangeyesnodialog::ExchangeYesNoDialog_MoneyParam,
139    ) -> Self {
140        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
141            panic!(
142                "{}
143::{}
144 failed to instantiate",
145                ::core::stringify!(AmiiboAutoExchangeDialog),
146                ::core::stringify!(new),
147            )
148        });
149        <Self as IAmiiboAutoExchangeDialogMethods>::ctor(
150            this,
151            menu_item_list,
152            menu_content,
153            top_message,
154            get_item_title,
155            get_item_param_list,
156            get_money_param,
157            cost_item_title,
158            cost_item_param_list,
159            cost_money_param,
160        );
161        this
162    }
163}
164
165#[cfg(feature = "app-amiiboautoexchangedialog")]
166pub trait IAmiiboAutoExchangeDialog_ConfirmDialogNoMethods: IAmiiboAutoExchangeDialog_ConfirmDialogNo {
167    #[doc = "`.ctor()` overload"]
168    fn ctor(self) -> () {
169        unsafe {
170            let __receiver = <AmiiboAutoExchangeDialog_ConfirmDialogNo as ::unity::FromIlInstance>::from_il_instance(
171                <Self as ::unity::SystemObject>::as_instance(self),
172            );
173            ::unity::il2cpp_call!((::unity::module_base()+0x1ba3260usize)as*mut u8,();
174(AmiiboAutoExchangeDialog_ConfirmDialogNo)__receiver)
175        }
176    }
177}
178
179#[cfg(feature = "app-amiiboautoexchangedialog")]
180impl<__T: IAmiiboAutoExchangeDialog_ConfirmDialogNo> IAmiiboAutoExchangeDialog_ConfirmDialogNoMethods for __T {}
181
182#[cfg(feature = "app-amiiboautoexchangedialog")]
183impl AmiiboAutoExchangeDialog_ConfirmDialogNo {
184    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
186    }
187}
188
189#[cfg(feature = "app-amiiboautoexchangedialog")]
190impl AmiiboAutoExchangeDialog_ConfirmDialogNo {
191    #[doc = "`.ctor()` — no args"]
192    pub fn new() -> Self {
193        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
194            panic!(
195                "{}
196::{}
197 failed to instantiate",
198                ::core::stringify!(AmiiboAutoExchangeDialog_ConfirmDialogNo),
199                ::core::stringify!(new),
200            )
201        });
202        <Self as IAmiiboAutoExchangeDialog_ConfirmDialogNoMethods>::ctor(this);
203        this
204    }
205}
206
207#[cfg(feature = "app-amiiboautoexchangedialog")]
208#[doc(hidden)]
209pub mod prelude {
210    pub use super::{
211        AmiiboAutoExchangeDialog, AmiiboAutoExchangeDialog_ConfirmDialogNo, AmiiboAutoExchangeDialog_Type, IAmiiboAutoExchangeDialog,
212        IAmiiboAutoExchangeDialogMethods, IAmiiboAutoExchangeDialog_ConfirmDialogNo, IAmiiboAutoExchangeDialog_ConfirmDialogNoMethods,
213    };
214    #[cfg(feature = "app-basicdialog")]
215    pub use crate::app::basicdialog::IBasicDialogMethods;
216    #[cfg(feature = "app-basicdialogitem")]
217    pub use crate::app::basicdialogitem::IBasicDialogItemMethods;
218    #[cfg(feature = "app-basicdialogitemno")]
219    pub use crate::app::basicdialogitemno::IBasicDialogItemNoMethods;
220    #[cfg(feature = "app-basicmenu")]
221    pub use crate::app::basicmenu::IBasicMenuMethods;
222    #[cfg(feature = "app-basicmenuitem")]
223    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
224    #[cfg(feature = "app-exchangeyesnodialog")]
225    pub use crate::app::exchangeyesnodialog::IExchangeYesNoDialogMethods;
226    #[cfg(feature = "app-procinst")]
227    pub use crate::app::procinst::IProcInstMethods;
228    #[cfg(feature = "system-object")]
229    pub use crate::system::object::IObjectMethods;
230    #[cfg(feature = "system-enum")]
231    pub use crate::system::r#enum::IEnumMethods;
232    #[cfg(feature = "system-valuetype")]
233    pub use crate::system::valuetype::IValueTypeMethods;
234    pub use crate::{
235        app::{
236            basicdialog::IBasicDialog, basicdialogitem::IBasicDialogItem, basicdialogitemno::IBasicDialogItemNo, basicmenu::IBasicMenu,
237            basicmenuitem::IBasicMenuItem, exchangeyesnodialog::IExchangeYesNoDialog, procinst::IProcInst,
238        },
239        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
240    };
241}