Skip to main content

engage/generated/app/
shopbuyyesnodialog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-shopbuyyesnodialog-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            procinst::{IProcInst, ProcInst},
13            yesnodialog::{IYesNoDialog, YesNoDialog},
14        },
15        system::{
16            delegate::{Delegate, IDelegate},
17            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
18            object::{IObject, Object},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopbuyyesnodialog/ShopBuyYesNoDialog_YesEventHandler.md"))]
23    #[::unity::class(namespace = "App", name = "ShopBuyYesNoDialog.YesEventHandler")]
24    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25    pub struct ShopBuyYesNoDialog_YesEventHandler {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopbuyyesnodialog/ShopBuyYesNoDialog.md"))]
28    #[::unity::class(namespace = "App", name = "ShopBuyYesNoDialog")]
29    #[parent(crate::app::yesnodialog::YesNoDialog)]
30    pub struct ShopBuyYesNoDialog {}
31}
32
33#[cfg(feature = "app-shopbuyyesnodialog-types")]
34pub use __types::*;
35
36#[cfg(feature = "app-shopbuyyesnodialog")]
37pub trait IShopBuyYesNoDialog_YesEventHandlerMethods: IShopBuyYesNoDialog_YesEventHandler {
38    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
39    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
40        unsafe {
41            let __receiver =
42                <ShopBuyYesNoDialog_YesEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x1d6a640usize)as*mut u8,();
44(ShopBuyYesNoDialog_YesEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
45        }
46    }
47    #[doc = "`Invoke()` overload"]
48    fn invoke(self) -> () {
49        unsafe {
50            let __receiver =
51                <ShopBuyYesNoDialog_YesEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52            {
53                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
54                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
55                    panic!(
56                        "unity: virtual slot {}
57 out of range (vtable len {}
58) on the runtime class behind {}
59 (method `{}
60`)",
61                        13usize,
62                        __vt.len(),
63                        <ShopBuyYesNoDialog_YesEventHandler as ::unity::ClassIdentity>::NAME,
64                        "Invoke",
65                    )
66                });
67                let __inner: extern "C" fn(ShopBuyYesNoDialog_YesEventHandler, ::unity::OptionalMethod) -> () =
68                    ::core::mem::transmute(__vi.method_ptr);
69                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
70                __inner(__receiver, __mi)
71            }
72        }
73    }
74}
75
76#[cfg(feature = "app-shopbuyyesnodialog")]
77impl<__T: IShopBuyYesNoDialog_YesEventHandler> IShopBuyYesNoDialog_YesEventHandlerMethods for __T {}
78
79#[cfg(feature = "app-shopbuyyesnodialog")]
80impl ShopBuyYesNoDialog_YesEventHandler {
81    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
83    }
84
85    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
87    }
88}
89
90#[cfg(feature = "app-shopbuyyesnodialog")]
91impl ShopBuyYesNoDialog_YesEventHandler {
92    #[doc = "Direct (non-virtual) call to `ShopBuyYesNoDialog_YesEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
93    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
94        let __mi = Self::invoke_method_info();
95        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
96        __inner(this.into(), ::core::option::Option::None)
97    }
98}
99
100#[cfg(feature = "app-shopbuyyesnodialog")]
101impl ShopBuyYesNoDialog_YesEventHandler {
102    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
103    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
104        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
105            panic!(
106                "{}
107::{}
108 failed to instantiate",
109                ::core::stringify!(ShopBuyYesNoDialog_YesEventHandler),
110                ::core::stringify!(new),
111            )
112        });
113        <Self as IShopBuyYesNoDialog_YesEventHandlerMethods>::ctor(this, object, method);
114        this
115    }
116}
117
118#[cfg(feature = "app-shopbuyyesnodialog")]
119impl ShopBuyYesNoDialog {
120    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::itemdata::ItemData, i32, crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)` overload"]
121    pub fn create_bind(
122        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
123        item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
124        num: impl ::core::convert::Into<i32>,
125        yes_event_handler: impl ::core::convert::Into<crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler>,
126    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x21ab9a0usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
129(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data),(i32)::core::convert::Into::into(num),(crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
130        }
131    }
132
133    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::itemdata::ItemData, i32, bool, crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)` overload"]
134    pub fn create_bind_2(
135        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
136        item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>,
137        num: impl ::core::convert::Into<i32>,
138        enabled_price_down: impl ::core::convert::Into<bool>,
139        yes_event_handler: impl ::core::convert::Into<crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler>,
140    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
141        unsafe {
142            ::unity::il2cpp_call!((::unity::module_base()+0x21abcf0usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
143(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data),(i32)::core::convert::Into::into(num),(bool)::core::convert::Into::into(enabled_price_down),(crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
144        }
145    }
146
147    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::accessorydata::AccessoryData, crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)` overload"]
148    pub fn create_bind_3(
149        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
150        accessory_data: impl ::core::convert::Into<crate::app::accessorydata::AccessoryData>,
151        yes_event_handler: impl ::core::convert::Into<crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler>,
152    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
153        unsafe {
154            ::unity::il2cpp_call!((::unity::module_base()+0x21ac0a0usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
155(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::accessorydata::AccessoryData)::core::convert::Into::into(accessory_data),(crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
156        }
157    }
158
159    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unititem::UnitItem, crate::app::unititem::UnitItem, i32, i32, i32, i32, crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)` overload"]
160    pub fn create_bind_4(
161        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
162        base_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
163        refined_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
164        iron_num: impl ::core::convert::Into<i32>,
165        steel_num: impl ::core::convert::Into<i32>,
166        silver_num: impl ::core::convert::Into<i32>,
167        price: impl ::core::convert::Into<i32>,
168        yes_event_handler: impl ::core::convert::Into<crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler>,
169    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
170        unsafe {
171            ::unity::il2cpp_call!((::unity::module_base()+0x21ac600usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
172(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unititem::UnitItem)::core::convert::Into::into(base_unit_item),(crate::app::unititem::UnitItem)::core::convert::Into::into(refined_unit_item),(i32)::core::convert::Into::into(iron_num),(i32)::core::convert::Into::into(steel_num),(i32)::core::convert::Into::into(silver_num),(i32)::core::convert::Into::into(price),(crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
173        }
174    }
175
176    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unititem::UnitItem, crate::app::unititem::UnitItem, crate::app::itemevolvedata::ItemEvolveData, crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)` overload"]
177    pub fn create_bind_5(
178        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
179        base_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
180        evolved_unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>,
181        item_evolve_data: impl ::core::convert::Into<crate::app::itemevolvedata::ItemEvolveData>,
182        yes_event_handler: impl ::core::convert::Into<crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler>,
183    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
184        unsafe {
185            ::unity::il2cpp_call!((::unity::module_base()+0x21ad100usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
186(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unititem::UnitItem)::core::convert::Into::into(base_unit_item),(crate::app::unititem::UnitItem)::core::convert::Into::into(evolved_unit_item),(crate::app::itemevolvedata::ItemEvolveData)::core::convert::Into::into(item_evolve_data),(crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
187        }
188    }
189
190    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::skilldata::SkillData, i32, crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)` overload"]
191    pub fn create_bind_6(
192        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
193        skill_data: impl ::core::convert::Into<crate::app::skilldata::SkillData>,
194        cost: impl ::core::convert::Into<i32>,
195        yes_event_handler: impl ::core::convert::Into<crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler>,
196    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x21ade70usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
199(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::skilldata::SkillData)::core::convert::Into::into(skill_data),(i32)::core::convert::Into::into(cost),(crate::app::shopbuyyesnodialog::ShopBuyYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
200        }
201    }
202}
203
204#[cfg(feature = "app-shopbuyyesnodialog")]
205pub trait IShopBuyYesNoDialogMethods: IShopBuyYesNoDialog {
206    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` overload"]
207    fn ctor(
208        self,
209        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
210        menu_content: impl ::core::convert::Into<crate::app::basicdialogcontent::BasicDialogContent>,
211    ) -> () {
212        unsafe {
213            let __receiver = <ShopBuyYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x21ae1a0usize)as*mut u8,();
215(ShopBuyYesNoDialog)__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))
216        }
217    }
218    #[doc = "`OnClose()` overload"]
219    fn on_close(self) -> () {
220        unsafe {
221            let __receiver = <ShopBuyYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            {
223                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
224                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
225                    panic!(
226                        "unity: virtual slot {}
227 out of range (vtable len {}
228) on the runtime class behind {}
229 (method `{}
230`)",
231                        26usize,
232                        __vt.len(),
233                        <ShopBuyYesNoDialog as ::unity::ClassIdentity>::NAME,
234                        "OnClose",
235                    )
236                });
237                let __inner: extern "C" fn(ShopBuyYesNoDialog, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
238                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
239                __inner(__receiver, __mi)
240            }
241        }
242    }
243}
244
245#[cfg(feature = "app-shopbuyyesnodialog")]
246impl<__T: IShopBuyYesNoDialog> IShopBuyYesNoDialogMethods for __T {}
247
248#[cfg(feature = "app-shopbuyyesnodialog")]
249impl ShopBuyYesNoDialog {
250    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
252    }
253
254    pub fn create_bind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
256    }
257
258    pub fn create_bind_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
260    }
261
262    pub fn create_bind_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
264    }
265
266    pub fn create_bind_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
268    }
269
270    pub fn create_bind_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
272    }
273
274    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
276    }
277
278    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
280    }
281}
282
283#[cfg(feature = "app-shopbuyyesnodialog")]
284impl ShopBuyYesNoDialog {
285    #[doc = "Direct (non-virtual) call to `ShopBuyYesNoDialog`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
286    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
287        let __mi = Self::on_close_method_info();
288        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
289        __inner(this.into(), ::core::option::Option::None)
290    }
291}
292
293#[cfg(feature = "app-shopbuyyesnodialog")]
294impl ShopBuyYesNoDialog {
295    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` — overload selector"]
296    pub fn new(
297        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
298        menu_content: crate::app::basicdialogcontent::BasicDialogContent,
299    ) -> Self {
300        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
301            panic!(
302                "{}
303::{}
304 failed to instantiate",
305                ::core::stringify!(ShopBuyYesNoDialog),
306                ::core::stringify!(new),
307            )
308        });
309        <Self as IShopBuyYesNoDialogMethods>::ctor(this, menu_item_list, menu_content);
310        this
311    }
312}
313
314#[cfg(feature = "app-shopbuyyesnodialog")]
315#[doc(hidden)]
316pub mod prelude {
317    pub use super::{
318        IShopBuyYesNoDialog, IShopBuyYesNoDialogMethods, IShopBuyYesNoDialog_YesEventHandler, IShopBuyYesNoDialog_YesEventHandlerMethods,
319        ShopBuyYesNoDialog, ShopBuyYesNoDialog_YesEventHandler,
320    };
321    #[cfg(feature = "app-basicdialog")]
322    pub use crate::app::basicdialog::IBasicDialogMethods;
323    #[cfg(feature = "app-basicmenu")]
324    pub use crate::app::basicmenu::IBasicMenuMethods;
325    #[cfg(feature = "app-procinst")]
326    pub use crate::app::procinst::IProcInstMethods;
327    #[cfg(feature = "app-yesnodialog")]
328    pub use crate::app::yesnodialog::IYesNoDialogMethods;
329    #[cfg(feature = "system-delegate")]
330    pub use crate::system::delegate::IDelegateMethods;
331    #[cfg(feature = "system-multicastdelegate")]
332    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
333    #[cfg(feature = "system-object")]
334    pub use crate::system::object::IObjectMethods;
335    pub use crate::{
336        app::{basicdialog::IBasicDialog, basicmenu::IBasicMenu, procinst::IProcInst, yesnodialog::IYesNoDialog},
337        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
338    };
339}