Skip to main content

engage/generated/app/
shopsellyesnodialog.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-shopsellyesnodialog-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/shopsellyesnodialog/ShopSellYesNoDialog.md"))]
23    #[::unity::class(namespace = "App", name = "ShopSellYesNoDialog")]
24    #[parent(crate::app::yesnodialog::YesNoDialog)]
25    pub struct ShopSellYesNoDialog {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopsellyesnodialog/ShopSellYesNoDialog_YesEventHandler.md"))]
28    #[::unity::class(namespace = "App", name = "ShopSellYesNoDialog.YesEventHandler")]
29    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
30    pub struct ShopSellYesNoDialog_YesEventHandler {}
31}
32
33#[cfg(feature = "app-shopsellyesnodialog-types")]
34pub use __types::*;
35
36#[cfg(feature = "app-shopsellyesnodialog")]
37impl ShopSellYesNoDialog {
38    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::system::collections::generic::list_1::List_1<crate::app::unititem::UnitItem>, i32, crate::app::shopsellyesnodialog::ShopSellYesNoDialog_YesEventHandler)` overload"]
39    pub fn create_bind(
40        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
41        unit_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unititem::UnitItem>>,
42        total_value: impl ::core::convert::Into<i32>,
43        yes_event_handler: impl ::core::convert::Into<crate::app::shopsellyesnodialog::ShopSellYesNoDialog_YesEventHandler>,
44    ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x21b9c20usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
47(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::system::collections::generic::list_1::List_1<crate::app::unititem::UnitItem>)::core::convert::Into::into(unit_item_list),(i32)::core::convert::Into::into(total_value),(crate::app::shopsellyesnodialog::ShopSellYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
48        }
49    }
50}
51
52#[cfg(feature = "app-shopsellyesnodialog")]
53pub trait IShopSellYesNoDialogMethods: IShopSellYesNoDialog {
54    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` overload"]
55    fn ctor(
56        self,
57        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
58        menu_content: impl ::core::convert::Into<crate::app::basicdialogcontent::BasicDialogContent>,
59    ) -> () {
60        unsafe {
61            let __receiver = <ShopSellYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            ::unity::il2cpp_call!((::unity::module_base()+0x21ba7b0usize)as*mut u8,();
63(ShopSellYesNoDialog)__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))
64        }
65    }
66    #[doc = "`OnClose()` overload"]
67    fn on_close(self) -> () {
68        unsafe {
69            let __receiver = <ShopSellYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            {
71                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
73                    panic!(
74                        "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79                        26usize,
80                        __vt.len(),
81                        <ShopSellYesNoDialog as ::unity::ClassIdentity>::NAME,
82                        "OnClose",
83                    )
84                });
85                let __inner: extern "C" fn(ShopSellYesNoDialog, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
86                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
87                __inner(__receiver, __mi)
88            }
89        }
90    }
91}
92
93#[cfg(feature = "app-shopsellyesnodialog")]
94impl<__T: IShopSellYesNoDialog> IShopSellYesNoDialogMethods for __T {}
95
96#[cfg(feature = "app-shopsellyesnodialog")]
97impl ShopSellYesNoDialog {
98    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100    }
101
102    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104    }
105
106    pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
108    }
109}
110
111#[cfg(feature = "app-shopsellyesnodialog")]
112impl ShopSellYesNoDialog {
113    #[doc = "Direct (non-virtual) call to `ShopSellYesNoDialog`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
114    pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
115        let __mi = Self::on_close_method_info();
116        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
117        __inner(this.into(), ::core::option::Option::None)
118    }
119}
120
121#[cfg(feature = "app-shopsellyesnodialog")]
122impl ShopSellYesNoDialog {
123    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` — overload selector"]
124    pub fn new(
125        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
126        menu_content: crate::app::basicdialogcontent::BasicDialogContent,
127    ) -> Self {
128        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
129            panic!(
130                "{}
131::{}
132 failed to instantiate",
133                ::core::stringify!(ShopSellYesNoDialog),
134                ::core::stringify!(new),
135            )
136        });
137        <Self as IShopSellYesNoDialogMethods>::ctor(this, menu_item_list, menu_content);
138        this
139    }
140}
141
142#[cfg(feature = "app-shopsellyesnodialog")]
143pub trait IShopSellYesNoDialog_YesEventHandlerMethods: IShopSellYesNoDialog_YesEventHandler {
144    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
145    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
146        unsafe {
147            let __receiver = <ShopSellYesNoDialog_YesEventHandler as ::unity::FromIlInstance>::from_il_instance(
148                <Self as ::unity::SystemObject>::as_instance(self),
149            );
150            ::unity::il2cpp_call!((::unity::module_base()+0x1d6c870usize)as*mut u8,();
151(ShopSellYesNoDialog_YesEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
152        }
153    }
154    #[doc = "`Invoke()` overload"]
155    fn invoke(self) -> () {
156        unsafe {
157            let __receiver = <ShopSellYesNoDialog_YesEventHandler as ::unity::FromIlInstance>::from_il_instance(
158                <Self as ::unity::SystemObject>::as_instance(self),
159            );
160            {
161                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
163                    panic!(
164                        "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169                        13usize,
170                        __vt.len(),
171                        <ShopSellYesNoDialog_YesEventHandler as ::unity::ClassIdentity>::NAME,
172                        "Invoke",
173                    )
174                });
175                let __inner: extern "C" fn(ShopSellYesNoDialog_YesEventHandler, ::unity::OptionalMethod) -> () =
176                    ::core::mem::transmute(__vi.method_ptr);
177                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
178                __inner(__receiver, __mi)
179            }
180        }
181    }
182}
183
184#[cfg(feature = "app-shopsellyesnodialog")]
185impl<__T: IShopSellYesNoDialog_YesEventHandler> IShopSellYesNoDialog_YesEventHandlerMethods for __T {}
186
187#[cfg(feature = "app-shopsellyesnodialog")]
188impl ShopSellYesNoDialog_YesEventHandler {
189    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
191    }
192
193    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
195    }
196}
197
198#[cfg(feature = "app-shopsellyesnodialog")]
199impl ShopSellYesNoDialog_YesEventHandler {
200    #[doc = "Direct (non-virtual) call to `ShopSellYesNoDialog_YesEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
201    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
202        let __mi = Self::invoke_method_info();
203        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
204        __inner(this.into(), ::core::option::Option::None)
205    }
206}
207
208#[cfg(feature = "app-shopsellyesnodialog")]
209impl ShopSellYesNoDialog_YesEventHandler {
210    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
211    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
212        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
213            panic!(
214                "{}
215::{}
216 failed to instantiate",
217                ::core::stringify!(ShopSellYesNoDialog_YesEventHandler),
218                ::core::stringify!(new),
219            )
220        });
221        <Self as IShopSellYesNoDialog_YesEventHandlerMethods>::ctor(this, object, method);
222        this
223    }
224}
225
226#[cfg(feature = "app-shopsellyesnodialog")]
227#[doc(hidden)]
228pub mod prelude {
229    pub use super::{
230        IShopSellYesNoDialog, IShopSellYesNoDialogMethods, IShopSellYesNoDialog_YesEventHandler, IShopSellYesNoDialog_YesEventHandlerMethods,
231        ShopSellYesNoDialog, ShopSellYesNoDialog_YesEventHandler,
232    };
233    #[cfg(feature = "app-basicdialog")]
234    pub use crate::app::basicdialog::IBasicDialogMethods;
235    #[cfg(feature = "app-basicmenu")]
236    pub use crate::app::basicmenu::IBasicMenuMethods;
237    #[cfg(feature = "app-procinst")]
238    pub use crate::app::procinst::IProcInstMethods;
239    #[cfg(feature = "app-yesnodialog")]
240    pub use crate::app::yesnodialog::IYesNoDialogMethods;
241    #[cfg(feature = "system-delegate")]
242    pub use crate::system::delegate::IDelegateMethods;
243    #[cfg(feature = "system-multicastdelegate")]
244    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
245    #[cfg(feature = "system-object")]
246    pub use crate::system::object::IObjectMethods;
247    pub use crate::{
248        app::{basicdialog::IBasicDialog, basicmenu::IBasicMenu, procinst::IProcInst, yesnodialog::IYesNoDialog},
249        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
250    };
251}