1#[cfg(feature = "app-exchangeitemyesnodialog-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 basicdialogitemyes::{BasicDialogItemYes, IBasicDialogItemYes},
13 basicmenu::{BasicMenu, IBasicMenu},
14 basicmenuitem::{BasicMenuItem, IBasicMenuItem},
15 procinst::{IProcInst, ProcInst},
16 yesnodialog::{IYesNoDialog, YesNoDialog},
17 },
18 system::{
19 delegate::{Delegate, IDelegate},
20 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
21 object::{IObject, Object},
22 },
23 };
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/exchangeitemyesnodialog/ExchangeItemYesNoDialog_YesMenuItem.md"))]
26 #[::unity::class(namespace = "App", name = "ExchangeItemYesNoDialog.YesMenuItem")]
27 #[parent(crate::app::basicdialogitemyes::BasicDialogItemYes)]
28 pub struct ExchangeItemYesNoDialog_YesMenuItem {
29 #[offset(112)]
30 #[rename(name = "m_YesEventHandler")]
31 pub m_yes_event_handler: crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler,
32 }
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/exchangeitemyesnodialog/ExchangeItemYesNoDialog_YesEventHandler.md"))]
35 #[::unity::class(namespace = "App", name = "ExchangeItemYesNoDialog.YesEventHandler")]
36 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
37 pub struct ExchangeItemYesNoDialog_YesEventHandler {}
38
39 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/exchangeitemyesnodialog/ExchangeItemYesNoDialog.md"))]
40 #[::unity::class(namespace = "App", name = "ExchangeItemYesNoDialog")]
41 #[parent(crate::app::yesnodialog::YesNoDialog)]
42 pub struct ExchangeItemYesNoDialog {}
43}
44
45#[cfg(feature = "app-exchangeitemyesnodialog-types")]
46pub use __types::*;
47
48#[cfg(feature = "app-exchangeitemyesnodialog")]
49pub trait IExchangeItemYesNoDialog_YesMenuItemMethods: IExchangeItemYesNoDialog_YesMenuItem {
50 #[doc = "`.ctor(crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler)` overload"]
51 fn ctor(self, yes_event_handler: impl ::core::convert::Into<crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler>) -> () {
52 unsafe {
53 let __receiver = <ExchangeItemYesNoDialog_YesMenuItem as ::unity::FromIlInstance>::from_il_instance(
54 <Self as ::unity::SystemObject>::as_instance(self),
55 );
56 ::unity::il2cpp_call!((::unity::module_base()+0x1e59520usize)as*mut u8,();
57(ExchangeItemYesNoDialog_YesMenuItem)__receiver,(crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
58 }
59 }
60 #[doc = "`ACall()` overload"]
61 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
62 unsafe {
63 let __receiver = <ExchangeItemYesNoDialog_YesMenuItem as ::unity::FromIlInstance>::from_il_instance(
64 <Self as ::unity::SystemObject>::as_instance(self),
65 );
66 {
67 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
68 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
69 panic!(
70 "unity: virtual slot {}
71 out of range (vtable len {}
72) on the runtime class behind {}
73 (method `{}
74`)",
75 18usize,
76 __vt.len(),
77 <ExchangeItemYesNoDialog_YesMenuItem as ::unity::ClassIdentity>::NAME,
78 "ACall",
79 )
80 });
81 let __inner: extern "C" fn(ExchangeItemYesNoDialog_YesMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
82 ::core::mem::transmute(__vi.method_ptr);
83 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84 __inner(__receiver, __mi)
85 }
86 }
87 }
88 #[doc = "`BCall()` overload"]
89 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
90 unsafe {
91 let __receiver = <ExchangeItemYesNoDialog_YesMenuItem as ::unity::FromIlInstance>::from_il_instance(
92 <Self as ::unity::SystemObject>::as_instance(self),
93 );
94 {
95 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
97 panic!(
98 "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103 19usize,
104 __vt.len(),
105 <ExchangeItemYesNoDialog_YesMenuItem as ::unity::ClassIdentity>::NAME,
106 "BCall",
107 )
108 });
109 let __inner: extern "C" fn(ExchangeItemYesNoDialog_YesMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
110 ::core::mem::transmute(__vi.method_ptr);
111 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112 __inner(__receiver, __mi)
113 }
114 }
115 }
116}
117
118#[cfg(feature = "app-exchangeitemyesnodialog")]
119impl<__T: IExchangeItemYesNoDialog_YesMenuItem> IExchangeItemYesNoDialog_YesMenuItemMethods for __T {}
120
121#[cfg(feature = "app-exchangeitemyesnodialog")]
122impl ExchangeItemYesNoDialog_YesMenuItem {
123 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125 }
126
127 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129 }
130
131 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133 }
134}
135
136#[cfg(feature = "app-exchangeitemyesnodialog")]
137impl ExchangeItemYesNoDialog_YesMenuItem {
138 #[doc = "Direct (non-virtual) call to `ExchangeItemYesNoDialog_YesMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
139 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
140 let __mi = Self::a_call_method_info();
141 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
142 ::core::mem::transmute(__mi.method_ptr);
143 __inner(this.into(), ::core::option::Option::None)
144 }
145
146 #[doc = "Direct (non-virtual) call to `ExchangeItemYesNoDialog_YesMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
147 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
148 let __mi = Self::b_call_method_info();
149 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
150 ::core::mem::transmute(__mi.method_ptr);
151 __inner(this.into(), ::core::option::Option::None)
152 }
153}
154
155#[cfg(feature = "app-exchangeitemyesnodialog")]
156impl ExchangeItemYesNoDialog_YesMenuItem {
157 #[doc = "`.ctor(crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler)` — overload selector"]
158 pub fn new(yes_event_handler: crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler) -> Self {
159 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
160 panic!(
161 "{}
162::{}
163 failed to instantiate",
164 ::core::stringify!(ExchangeItemYesNoDialog_YesMenuItem),
165 ::core::stringify!(new),
166 )
167 });
168 <Self as IExchangeItemYesNoDialog_YesMenuItemMethods>::ctor(this, yes_event_handler);
169 this
170 }
171}
172
173#[cfg(feature = "app-exchangeitemyesnodialog")]
174pub trait IExchangeItemYesNoDialog_YesEventHandlerMethods: IExchangeItemYesNoDialog_YesEventHandler {
175 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
176 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
177 unsafe {
178 let __receiver = <ExchangeItemYesNoDialog_YesEventHandler as ::unity::FromIlInstance>::from_il_instance(
179 <Self as ::unity::SystemObject>::as_instance(self),
180 );
181 ::unity::il2cpp_call!((::unity::module_base()+0x1e592b0usize)as*mut u8,();
182(ExchangeItemYesNoDialog_YesEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
183 }
184 }
185 #[doc = "`Invoke()` overload"]
186 fn invoke(self) -> () {
187 unsafe {
188 let __receiver = <ExchangeItemYesNoDialog_YesEventHandler as ::unity::FromIlInstance>::from_il_instance(
189 <Self as ::unity::SystemObject>::as_instance(self),
190 );
191 {
192 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
193 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
194 panic!(
195 "unity: virtual slot {}
196 out of range (vtable len {}
197) on the runtime class behind {}
198 (method `{}
199`)",
200 13usize,
201 __vt.len(),
202 <ExchangeItemYesNoDialog_YesEventHandler as ::unity::ClassIdentity>::NAME,
203 "Invoke",
204 )
205 });
206 let __inner: extern "C" fn(ExchangeItemYesNoDialog_YesEventHandler, ::unity::OptionalMethod) -> () =
207 ::core::mem::transmute(__vi.method_ptr);
208 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
209 __inner(__receiver, __mi)
210 }
211 }
212 }
213}
214
215#[cfg(feature = "app-exchangeitemyesnodialog")]
216impl<__T: IExchangeItemYesNoDialog_YesEventHandler> IExchangeItemYesNoDialog_YesEventHandlerMethods for __T {}
217
218#[cfg(feature = "app-exchangeitemyesnodialog")]
219impl ExchangeItemYesNoDialog_YesEventHandler {
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
222 }
223
224 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
226 }
227}
228
229#[cfg(feature = "app-exchangeitemyesnodialog")]
230impl ExchangeItemYesNoDialog_YesEventHandler {
231 #[doc = "Direct (non-virtual) call to `ExchangeItemYesNoDialog_YesEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
232 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
233 let __mi = Self::invoke_method_info();
234 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
235 __inner(this.into(), ::core::option::Option::None)
236 }
237}
238
239#[cfg(feature = "app-exchangeitemyesnodialog")]
240impl ExchangeItemYesNoDialog_YesEventHandler {
241 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
242 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
243 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
244 panic!(
245 "{}
246::{}
247 failed to instantiate",
248 ::core::stringify!(ExchangeItemYesNoDialog_YesEventHandler),
249 ::core::stringify!(new),
250 )
251 });
252 <Self as IExchangeItemYesNoDialog_YesEventHandlerMethods>::ctor(this, object, method);
253 this
254 }
255}
256
257#[cfg(feature = "app-exchangeitemyesnodialog")]
258impl ExchangeItemYesNoDialog {
259 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::system::collections::generic::list_1::List_1<crate::app::unititem::UnitItem>, i32, crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler)` overload"]
260 pub fn create_bind(
261 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
262 unit_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unititem::UnitItem>>,
263 expected: impl ::core::convert::Into<i32>,
264 yes_event_handler: impl ::core::convert::Into<crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler>,
265 ) -> crate::app::exchangeyesnodialog::ExchangeYesNoDialog {
266 unsafe {
267 ::unity::il2cpp_call!((::unity::module_base()+0x24e6010usize)as*mut u8,crate::app::exchangeyesnodialog::ExchangeYesNoDialog;
268(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(expected),(crate::app::exchangeitemyesnodialog::ExchangeItemYesNoDialog_YesEventHandler)::core::convert::Into::into(yes_event_handler))
269 }
270 }
271}
272
273#[cfg(feature = "app-exchangeitemyesnodialog")]
274pub trait IExchangeItemYesNoDialogMethods: IExchangeItemYesNoDialog {
275 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` overload"]
276 fn ctor(
277 self,
278 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
279 menu_content: impl ::core::convert::Into<crate::app::basicdialogcontent::BasicDialogContent>,
280 ) -> () {
281 unsafe {
282 let __receiver =
283 <ExchangeItemYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x24e6b50usize)as*mut u8,();
285(ExchangeItemYesNoDialog)__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))
286 }
287 }
288 #[doc = "`OnClose()` overload"]
289 fn on_close(self) -> () {
290 unsafe {
291 let __receiver =
292 <ExchangeItemYesNoDialog as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293 {
294 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
295 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
296 panic!(
297 "unity: virtual slot {}
298 out of range (vtable len {}
299) on the runtime class behind {}
300 (method `{}
301`)",
302 26usize,
303 __vt.len(),
304 <ExchangeItemYesNoDialog as ::unity::ClassIdentity>::NAME,
305 "OnClose",
306 )
307 });
308 let __inner: extern "C" fn(ExchangeItemYesNoDialog, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
309 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
310 __inner(__receiver, __mi)
311 }
312 }
313 }
314}
315
316#[cfg(feature = "app-exchangeitemyesnodialog")]
317impl<__T: IExchangeItemYesNoDialog> IExchangeItemYesNoDialogMethods for __T {}
318
319#[cfg(feature = "app-exchangeitemyesnodialog")]
320impl ExchangeItemYesNoDialog {
321 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
323 }
324
325 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
327 }
328
329 pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
331 }
332}
333
334#[cfg(feature = "app-exchangeitemyesnodialog")]
335impl ExchangeItemYesNoDialog {
336 #[doc = "Direct (non-virtual) call to `ExchangeItemYesNoDialog`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
337 pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
338 let __mi = Self::on_close_method_info();
339 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
340 __inner(this.into(), ::core::option::Option::None)
341 }
342}
343
344#[cfg(feature = "app-exchangeitemyesnodialog")]
345impl ExchangeItemYesNoDialog {
346 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicdialogcontent::BasicDialogContent)` — overload selector"]
347 pub fn new(
348 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
349 menu_content: crate::app::basicdialogcontent::BasicDialogContent,
350 ) -> Self {
351 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
352 panic!(
353 "{}
354::{}
355 failed to instantiate",
356 ::core::stringify!(ExchangeItemYesNoDialog),
357 ::core::stringify!(new),
358 )
359 });
360 <Self as IExchangeItemYesNoDialogMethods>::ctor(this, menu_item_list, menu_content);
361 this
362 }
363}
364
365#[cfg(feature = "app-exchangeitemyesnodialog")]
366#[doc(hidden)]
367pub mod prelude {
368 pub use super::{
369 ExchangeItemYesNoDialog, ExchangeItemYesNoDialog_YesEventHandler, ExchangeItemYesNoDialog_YesMenuItem, IExchangeItemYesNoDialog,
370 IExchangeItemYesNoDialogMethods, IExchangeItemYesNoDialog_YesEventHandler, IExchangeItemYesNoDialog_YesEventHandlerMethods,
371 IExchangeItemYesNoDialog_YesMenuItem, IExchangeItemYesNoDialog_YesMenuItemMethods,
372 };
373 #[cfg(feature = "app-basicdialog")]
374 pub use crate::app::basicdialog::IBasicDialogMethods;
375 #[cfg(feature = "app-basicdialogitem")]
376 pub use crate::app::basicdialogitem::IBasicDialogItemMethods;
377 #[cfg(feature = "app-basicdialogitemyes")]
378 pub use crate::app::basicdialogitemyes::IBasicDialogItemYesMethods;
379 #[cfg(feature = "app-basicmenu")]
380 pub use crate::app::basicmenu::IBasicMenuMethods;
381 #[cfg(feature = "app-basicmenuitem")]
382 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
383 #[cfg(feature = "app-procinst")]
384 pub use crate::app::procinst::IProcInstMethods;
385 #[cfg(feature = "app-yesnodialog")]
386 pub use crate::app::yesnodialog::IYesNoDialogMethods;
387 #[cfg(feature = "system-delegate")]
388 pub use crate::system::delegate::IDelegateMethods;
389 #[cfg(feature = "system-multicastdelegate")]
390 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
391 #[cfg(feature = "system-object")]
392 pub use crate::system::object::IObjectMethods;
393 pub use crate::{
394 app::{
395 basicdialog::IBasicDialog, basicdialogitem::IBasicDialogItem, basicdialogitemyes::IBasicDialogItemYes, basicmenu::IBasicMenu,
396 basicmenuitem::IBasicMenuItem, procinst::IProcInst, yesnodialog::IYesNoDialog,
397 },
398 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
399 };
400}