1#[cfg(feature = "app-welltopmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12 procinst::{IProcInst, ProcInst},
13 },
14 system::{
15 delegate::{Delegate, IDelegate},
16 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
17 object::{IObject, Object},
18 r#enum::{Enum, IEnum},
19 valuetype::{IValueType, ValueType},
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/welltopmenu/WellTopMenu_MenuResult.md"))]
24 #[repr(C)]
25 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26 pub struct WellTopMenu_MenuResult {
27 pub value: i32,
28 }
29 impl ::unity::ClassIdentity for WellTopMenu_MenuResult {
30 const NAME: &'static str = "WellTopMenu.MenuResult";
31 const NAMESPACE: &'static str = "App";
32
33 fn class() -> ::unity::Class {
34 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36 }
37 }
38 impl ::unity::IlType for WellTopMenu_MenuResult {
39 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41 }
42 }
43 impl WellTopMenu_MenuResult {
44 pub fn item_exchange() -> Self {
45 Self { value: 0 }
46 }
47
48 pub fn evil_map_first() -> Self {
49 Self { value: 1 }
50 }
51
52 pub fn evil_map() -> Self {
53 Self { value: 2 }
54 }
55
56 pub fn evil_cannot_start() -> Self {
57 Self { value: 3 }
58 }
59
60 pub fn change_difficulty() -> Self {
61 Self { value: 4 }
62 }
63
64 pub fn end() -> Self {
65 Self { value: 5 }
66 }
67 }
68
69 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/welltopmenu/WellTopMenu_DecideEventHandler.md"))]
70 #[::unity::class(namespace = "App", name = "WellTopMenu.DecideEventHandler")]
71 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
72 pub struct WellTopMenu_DecideEventHandler {}
73
74 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/welltopmenu/WellTopMenu_EvilMapStartMenuItem.md"))]
75 #[::unity::class(namespace = "App", name = "WellTopMenu.EvilMapStartMenuItem")]
76 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
77 pub struct WellTopMenu_EvilMapStartMenuItem {
78 #[offset(104)]
79 #[rename(name = "m_DecideEventHandler")]
80 pub m_decide_event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler,
81 }
82
83 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/welltopmenu/WellTopMenu_ItemExchangeMenuItem.md"))]
84 #[::unity::class(namespace = "App", name = "WellTopMenu.ItemExchangeMenuItem")]
85 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
86 pub struct WellTopMenu_ItemExchangeMenuItem {
87 #[offset(104)]
88 #[rename(name = "m_DecideEventHandler")]
89 pub m_decide_event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler,
90 }
91
92 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/welltopmenu/WellTopMenu.md"))]
93 #[::unity::class(namespace = "App", name = "WellTopMenu")]
94 #[parent(crate::app::basicmenu::BasicMenu)]
95 pub struct WellTopMenu {}
96
97 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/welltopmenu/WellTopMenu_EvilMapChangeDifficultyMenuItem.md"))]
98 #[::unity::class(namespace = "App", name = "WellTopMenu.EvilMapChangeDifficultyMenuItem")]
99 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
100 pub struct WellTopMenu_EvilMapChangeDifficultyMenuItem {
101 #[offset(104)]
102 #[rename(name = "m_DecideEventHandler")]
103 pub m_decide_event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler,
104 }
105}
106
107#[cfg(feature = "app-welltopmenu-types")]
108pub use __types::*;
109
110#[cfg(feature = "app-welltopmenu")]
111pub trait IWellTopMenu_DecideEventHandlerMethods: IWellTopMenu_DecideEventHandler {
112 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
113 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
114 unsafe {
115 let __receiver =
116 <WellTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117 ::unity::il2cpp_call!((::unity::module_base()+0x1b2ce40usize)as*mut u8,();
118(WellTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
119 }
120 }
121 #[doc = "`Invoke(crate::app::welltopmenu::WellTopMenu_MenuResult)` overload"]
122 fn invoke(self, result: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_MenuResult>) -> () {
123 unsafe {
124 let __receiver =
125 <WellTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 {
127 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
128 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
129 panic!(
130 "unity: virtual slot {}
131 out of range (vtable len {}
132) on the runtime class behind {}
133 (method `{}
134`)",
135 13usize,
136 __vt.len(),
137 <WellTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
138 "Invoke",
139 )
140 });
141 let __inner: extern "C" fn(
142 WellTopMenu_DecideEventHandler,
143 crate::app::welltopmenu::WellTopMenu_MenuResult,
144 ::unity::OptionalMethod,
145 ) -> () = ::core::mem::transmute(__vi.method_ptr);
146 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
147 __inner(__receiver, ::core::convert::Into::into(result), __mi)
148 }
149 }
150 }
151}
152
153#[cfg(feature = "app-welltopmenu")]
154impl<__T: IWellTopMenu_DecideEventHandler> IWellTopMenu_DecideEventHandlerMethods for __T {}
155
156#[cfg(feature = "app-welltopmenu")]
157impl WellTopMenu_DecideEventHandler {
158 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
160 }
161
162 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
164 }
165}
166
167#[cfg(feature = "app-welltopmenu")]
168impl WellTopMenu_DecideEventHandler {
169 #[doc = "Direct (non-virtual) call to `WellTopMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
170 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, result: crate::app::welltopmenu::WellTopMenu_MenuResult) -> () {
171 let __mi = Self::invoke_method_info();
172 let __inner: extern "C" fn(::unity::IlInstance, crate::app::welltopmenu::WellTopMenu_MenuResult, ::unity::OptionalMethod) -> () =
173 ::core::mem::transmute(__mi.method_ptr);
174 __inner(this.into(), result, ::core::option::Option::None)
175 }
176}
177
178#[cfg(feature = "app-welltopmenu")]
179impl WellTopMenu_DecideEventHandler {
180 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
181 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
182 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
183 panic!(
184 "{}
185::{}
186 failed to instantiate",
187 ::core::stringify!(WellTopMenu_DecideEventHandler),
188 ::core::stringify!(new),
189 )
190 });
191 <Self as IWellTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
192 this
193 }
194}
195
196#[cfg(feature = "app-welltopmenu")]
197pub trait IWellTopMenu_EvilMapStartMenuItemMethods: IWellTopMenu_EvilMapStartMenuItem {
198 #[doc = "`.ctor(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` overload"]
199 fn ctor(self, event_handler: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_DecideEventHandler>) -> () {
200 unsafe {
201 let __receiver =
202 <WellTopMenu_EvilMapStartMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 ::unity::il2cpp_call!((::unity::module_base()+0x1b2d4f0usize)as*mut u8,();
204(WellTopMenu_EvilMapStartMenuItem)__receiver,(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
205 }
206 }
207 #[doc = "`GetName()` overload"]
208 fn get_name(self) -> ::unity::Il2CppString {
209 unsafe {
210 let __receiver =
211 <WellTopMenu_EvilMapStartMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 {
213 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
214 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
215 panic!(
216 "unity: virtual slot {}
217 out of range (vtable len {}
218) on the runtime class behind {}
219 (method `{}
220`)",
221 4usize,
222 __vt.len(),
223 <WellTopMenu_EvilMapStartMenuItem as ::unity::ClassIdentity>::NAME,
224 "GetName",
225 )
226 });
227 let __inner: extern "C" fn(WellTopMenu_EvilMapStartMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
228 ::core::mem::transmute(__vi.method_ptr);
229 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
230 __inner(__receiver, __mi)
231 }
232 }
233 }
234 #[doc = "`BuildAttribute()` overload"]
235 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
236 unsafe {
237 let __receiver =
238 <WellTopMenu_EvilMapStartMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 {
240 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
241 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
242 panic!(
243 "unity: virtual slot {}
244 out of range (vtable len {}
245) on the runtime class behind {}
246 (method `{}
247`)",
248 8usize,
249 __vt.len(),
250 <WellTopMenu_EvilMapStartMenuItem as ::unity::ClassIdentity>::NAME,
251 "BuildAttribute",
252 )
253 });
254 let __inner: extern "C" fn(
255 WellTopMenu_EvilMapStartMenuItem,
256 ::unity::OptionalMethod,
257 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
258 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
259 __inner(__receiver, __mi)
260 }
261 }
262 }
263 #[doc = "`ACall()` overload"]
264 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
265 unsafe {
266 let __receiver =
267 <WellTopMenu_EvilMapStartMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 {
269 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
270 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
271 panic!(
272 "unity: virtual slot {}
273 out of range (vtable len {}
274) on the runtime class behind {}
275 (method `{}
276`)",
277 18usize,
278 __vt.len(),
279 <WellTopMenu_EvilMapStartMenuItem as ::unity::ClassIdentity>::NAME,
280 "ACall",
281 )
282 });
283 let __inner: extern "C" fn(WellTopMenu_EvilMapStartMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
284 ::core::mem::transmute(__vi.method_ptr);
285 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
286 __inner(__receiver, __mi)
287 }
288 }
289 }
290 #[doc = "`BCall()` overload"]
291 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
292 unsafe {
293 let __receiver =
294 <WellTopMenu_EvilMapStartMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295 {
296 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
297 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
298 panic!(
299 "unity: virtual slot {}
300 out of range (vtable len {}
301) on the runtime class behind {}
302 (method `{}
303`)",
304 19usize,
305 __vt.len(),
306 <WellTopMenu_EvilMapStartMenuItem as ::unity::ClassIdentity>::NAME,
307 "BCall",
308 )
309 });
310 let __inner: extern "C" fn(WellTopMenu_EvilMapStartMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
311 ::core::mem::transmute(__vi.method_ptr);
312 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
313 __inner(__receiver, __mi)
314 }
315 }
316 }
317}
318
319#[cfg(feature = "app-welltopmenu")]
320impl<__T: IWellTopMenu_EvilMapStartMenuItem> IWellTopMenu_EvilMapStartMenuItemMethods for __T {}
321
322#[cfg(feature = "app-welltopmenu")]
323impl WellTopMenu_EvilMapStartMenuItem {
324 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
326 }
327
328 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
330 }
331
332 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
334 }
335
336 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
338 }
339
340 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
342 }
343}
344
345#[cfg(feature = "app-welltopmenu")]
346impl WellTopMenu_EvilMapStartMenuItem {
347 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapStartMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
348 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
349 let __mi = Self::get_name_method_info();
350 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
351 __inner(this.into(), ::core::option::Option::None)
352 }
353
354 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapStartMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
355 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
356 let __mi = Self::build_attribute_method_info();
357 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
358 ::core::mem::transmute(__mi.method_ptr);
359 __inner(this.into(), ::core::option::Option::None)
360 }
361
362 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapStartMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
364 let __mi = Self::a_call_method_info();
365 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
366 ::core::mem::transmute(__mi.method_ptr);
367 __inner(this.into(), ::core::option::Option::None)
368 }
369
370 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapStartMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
371 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
372 let __mi = Self::b_call_method_info();
373 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
374 ::core::mem::transmute(__mi.method_ptr);
375 __inner(this.into(), ::core::option::Option::None)
376 }
377}
378
379#[cfg(feature = "app-welltopmenu")]
380impl WellTopMenu_EvilMapStartMenuItem {
381 #[doc = "`.ctor(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` — overload selector"]
382 pub fn new(event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler) -> Self {
383 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
384 panic!(
385 "{}
386::{}
387 failed to instantiate",
388 ::core::stringify!(WellTopMenu_EvilMapStartMenuItem),
389 ::core::stringify!(new),
390 )
391 });
392 <Self as IWellTopMenu_EvilMapStartMenuItemMethods>::ctor(this, event_handler);
393 this
394 }
395}
396
397#[cfg(feature = "app-welltopmenu")]
398pub trait IWellTopMenu_ItemExchangeMenuItemMethods: IWellTopMenu_ItemExchangeMenuItem {
399 #[doc = "`.ctor(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` overload"]
400 fn ctor(self, event_handler: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_DecideEventHandler>) -> () {
401 unsafe {
402 let __receiver =
403 <WellTopMenu_ItemExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404 ::unity::il2cpp_call!((::unity::module_base()+0x1b2db60usize)as*mut u8,();
405(WellTopMenu_ItemExchangeMenuItem)__receiver,(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
406 }
407 }
408 #[doc = "`GetName()` overload"]
409 fn get_name(self) -> ::unity::Il2CppString {
410 unsafe {
411 let __receiver =
412 <WellTopMenu_ItemExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413 {
414 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
415 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
416 panic!(
417 "unity: virtual slot {}
418 out of range (vtable len {}
419) on the runtime class behind {}
420 (method `{}
421`)",
422 4usize,
423 __vt.len(),
424 <WellTopMenu_ItemExchangeMenuItem as ::unity::ClassIdentity>::NAME,
425 "GetName",
426 )
427 });
428 let __inner: extern "C" fn(WellTopMenu_ItemExchangeMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
429 ::core::mem::transmute(__vi.method_ptr);
430 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
431 __inner(__receiver, __mi)
432 }
433 }
434 }
435 #[doc = "`BuildAttribute()` overload"]
436 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
437 unsafe {
438 let __receiver =
439 <WellTopMenu_ItemExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
440 {
441 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
442 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
443 panic!(
444 "unity: virtual slot {}
445 out of range (vtable len {}
446) on the runtime class behind {}
447 (method `{}
448`)",
449 8usize,
450 __vt.len(),
451 <WellTopMenu_ItemExchangeMenuItem as ::unity::ClassIdentity>::NAME,
452 "BuildAttribute",
453 )
454 });
455 let __inner: extern "C" fn(
456 WellTopMenu_ItemExchangeMenuItem,
457 ::unity::OptionalMethod,
458 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
459 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
460 __inner(__receiver, __mi)
461 }
462 }
463 }
464 #[doc = "`ACall()` overload"]
465 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
466 unsafe {
467 let __receiver =
468 <WellTopMenu_ItemExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
469 {
470 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
471 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
472 panic!(
473 "unity: virtual slot {}
474 out of range (vtable len {}
475) on the runtime class behind {}
476 (method `{}
477`)",
478 18usize,
479 __vt.len(),
480 <WellTopMenu_ItemExchangeMenuItem as ::unity::ClassIdentity>::NAME,
481 "ACall",
482 )
483 });
484 let __inner: extern "C" fn(WellTopMenu_ItemExchangeMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
485 ::core::mem::transmute(__vi.method_ptr);
486 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
487 __inner(__receiver, __mi)
488 }
489 }
490 }
491 #[doc = "`BCall()` overload"]
492 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
493 unsafe {
494 let __receiver =
495 <WellTopMenu_ItemExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
496 {
497 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
498 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
499 panic!(
500 "unity: virtual slot {}
501 out of range (vtable len {}
502) on the runtime class behind {}
503 (method `{}
504`)",
505 19usize,
506 __vt.len(),
507 <WellTopMenu_ItemExchangeMenuItem as ::unity::ClassIdentity>::NAME,
508 "BCall",
509 )
510 });
511 let __inner: extern "C" fn(WellTopMenu_ItemExchangeMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
512 ::core::mem::transmute(__vi.method_ptr);
513 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
514 __inner(__receiver, __mi)
515 }
516 }
517 }
518}
519
520#[cfg(feature = "app-welltopmenu")]
521impl<__T: IWellTopMenu_ItemExchangeMenuItem> IWellTopMenu_ItemExchangeMenuItemMethods for __T {}
522
523#[cfg(feature = "app-welltopmenu")]
524impl WellTopMenu_ItemExchangeMenuItem {
525 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
527 }
528
529 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
531 }
532
533 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
535 }
536
537 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
539 }
540
541 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
543 }
544}
545
546#[cfg(feature = "app-welltopmenu")]
547impl WellTopMenu_ItemExchangeMenuItem {
548 #[doc = "Direct (non-virtual) call to `WellTopMenu_ItemExchangeMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
549 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
550 let __mi = Self::get_name_method_info();
551 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
552 __inner(this.into(), ::core::option::Option::None)
553 }
554
555 #[doc = "Direct (non-virtual) call to `WellTopMenu_ItemExchangeMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
556 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
557 let __mi = Self::build_attribute_method_info();
558 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
559 ::core::mem::transmute(__mi.method_ptr);
560 __inner(this.into(), ::core::option::Option::None)
561 }
562
563 #[doc = "Direct (non-virtual) call to `WellTopMenu_ItemExchangeMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
564 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
565 let __mi = Self::a_call_method_info();
566 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
567 ::core::mem::transmute(__mi.method_ptr);
568 __inner(this.into(), ::core::option::Option::None)
569 }
570
571 #[doc = "Direct (non-virtual) call to `WellTopMenu_ItemExchangeMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
572 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
573 let __mi = Self::b_call_method_info();
574 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
575 ::core::mem::transmute(__mi.method_ptr);
576 __inner(this.into(), ::core::option::Option::None)
577 }
578}
579
580#[cfg(feature = "app-welltopmenu")]
581impl WellTopMenu_ItemExchangeMenuItem {
582 #[doc = "`.ctor(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` — overload selector"]
583 pub fn new(event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler) -> Self {
584 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
585 panic!(
586 "{}
587::{}
588 failed to instantiate",
589 ::core::stringify!(WellTopMenu_ItemExchangeMenuItem),
590 ::core::stringify!(new),
591 )
592 });
593 <Self as IWellTopMenu_ItemExchangeMenuItemMethods>::ctor(this, event_handler);
594 this
595 }
596}
597
598#[cfg(feature = "app-welltopmenu")]
599impl WellTopMenu {
600 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::welltopmenu::WellTopMenu_MenuResult, crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` overload"]
601 pub fn create_bind(
602 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
603 initial_selected: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_MenuResult>,
604 event_handler: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_DecideEventHandler>,
605 ) -> () {
606 unsafe {
607 ::unity::il2cpp_call!((::unity::module_base()+0x293c6a0usize)as*mut u8,();
608(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::welltopmenu::WellTopMenu_MenuResult)::core::convert::Into::into(initial_selected),(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
609 }
610 }
611}
612
613#[cfg(feature = "app-welltopmenu")]
614pub trait IWellTopMenuMethods: IWellTopMenu {
615 #[doc = "`get_m_DecideEventHandler()` overload"]
616 fn get_m_decide_event_handler(self) -> crate::app::welltopmenu::WellTopMenu_DecideEventHandler {
617 unsafe {
618 let __receiver = <WellTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
619 ::unity::il2cpp_call!((::unity::module_base()+0x293e380usize)as*mut u8,crate::app::welltopmenu::WellTopMenu_DecideEventHandler;
620(WellTopMenu)__receiver)
621 }
622 }
623 #[doc = "`set_m_DecideEventHandler(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` overload"]
624 fn set_m_decide_event_handler(self, value: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_DecideEventHandler>) -> () {
625 unsafe {
626 let __receiver = <WellTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
627 ::unity::il2cpp_call!((::unity::module_base()+0x293e390usize)as*mut u8,();
628(WellTopMenu)__receiver,(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)::core::convert::Into::into(value))
629 }
630 }
631 #[doc = "`BCall()` overload"]
632 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
633 unsafe {
634 let __receiver = <WellTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
635 {
636 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
637 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
638 panic!(
639 "unity: virtual slot {}
640 out of range (vtable len {}
641) on the runtime class behind {}
642 (method `{}
643`)",
644 51usize,
645 __vt.len(),
646 <WellTopMenu as ::unity::ClassIdentity>::NAME,
647 "BCall",
648 )
649 });
650 let __inner: extern "C" fn(WellTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
651 ::core::mem::transmute(__vi.method_ptr);
652 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
653 __inner(__receiver, __mi)
654 }
655 }
656 }
657 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::welltopmenu::WellTopMenu_MenuResult, crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` overload"]
658 fn ctor(
659 self,
660 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
661 menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
662 initial_selected: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_MenuResult>,
663 event_handler: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_DecideEventHandler>,
664 ) -> () {
665 unsafe {
666 let __receiver = <WellTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
667 ::unity::il2cpp_call!((::unity::module_base()+0x293e4e0usize)as*mut u8,();
668(WellTopMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::welltopmenu::WellTopMenu_MenuResult)::core::convert::Into::into(initial_selected),(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
669 }
670 }
671 #[doc = "`GetName()` overload"]
672 fn get_name(self) -> ::unity::Il2CppString {
673 unsafe {
674 let __receiver = <WellTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
675 {
676 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
677 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
678 panic!(
679 "unity: virtual slot {}
680 out of range (vtable len {}
681) on the runtime class behind {}
682 (method `{}
683`)",
684 30usize,
685 __vt.len(),
686 <WellTopMenu as ::unity::ClassIdentity>::NAME,
687 "GetName",
688 )
689 });
690 let __inner: extern "C" fn(WellTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
691 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
692 __inner(__receiver, __mi)
693 }
694 }
695 }
696 #[doc = "`OnClose()` overload"]
697 fn on_close(self) -> () {
698 unsafe {
699 let __receiver = <WellTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
700 {
701 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
702 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
703 panic!(
704 "unity: virtual slot {}
705 out of range (vtable len {}
706) on the runtime class behind {}
707 (method `{}
708`)",
709 26usize,
710 __vt.len(),
711 <WellTopMenu as ::unity::ClassIdentity>::NAME,
712 "OnClose",
713 )
714 });
715 let __inner: extern "C" fn(WellTopMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
716 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
717 __inner(__receiver, __mi)
718 }
719 }
720 }
721}
722
723#[cfg(feature = "app-welltopmenu")]
724impl<__T: IWellTopMenu> IWellTopMenuMethods for __T {}
725
726#[cfg(feature = "app-welltopmenu")]
727impl WellTopMenu {
728 pub fn get_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
729 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
730 }
731
732 pub fn set_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
733 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
734 }
735
736 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
737 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
738 }
739
740 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
741 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
742 }
743
744 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
745 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
746 }
747
748 pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
749 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
750 }
751
752 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
753 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
754 }
755}
756
757#[cfg(feature = "app-welltopmenu")]
758impl WellTopMenu {
759 #[doc = "Direct (non-virtual) call to `WellTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
760 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
761 let __mi = Self::b_call_method_info();
762 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
763 ::core::mem::transmute(__mi.method_ptr);
764 __inner(this.into(), ::core::option::Option::None)
765 }
766
767 #[doc = "Direct (non-virtual) call to `WellTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
768 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
769 let __mi = Self::get_name_method_info();
770 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
771 __inner(this.into(), ::core::option::Option::None)
772 }
773
774 #[doc = "Direct (non-virtual) call to `WellTopMenu`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
775 pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
776 let __mi = Self::on_close_method_info();
777 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
778 __inner(this.into(), ::core::option::Option::None)
779 }
780}
781
782#[cfg(feature = "app-welltopmenu")]
783impl WellTopMenu {
784 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::welltopmenu::WellTopMenu_MenuResult, crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` — overload selector"]
785 pub fn new(
786 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
787 menu_content: crate::app::basicmenucontent::BasicMenuContent,
788 initial_selected: crate::app::welltopmenu::WellTopMenu_MenuResult,
789 event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler,
790 ) -> Self {
791 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
792 panic!(
793 "{}
794::{}
795 failed to instantiate",
796 ::core::stringify!(WellTopMenu),
797 ::core::stringify!(new),
798 )
799 });
800 <Self as IWellTopMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, event_handler);
801 this
802 }
803}
804
805#[cfg(feature = "app-welltopmenu")]
806pub trait IWellTopMenu_EvilMapChangeDifficultyMenuItemMethods: IWellTopMenu_EvilMapChangeDifficultyMenuItem {
807 #[doc = "`.ctor(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` overload"]
808 fn ctor(self, event_handler: impl ::core::convert::Into<crate::app::welltopmenu::WellTopMenu_DecideEventHandler>) -> () {
809 unsafe {
810 let __receiver = <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::FromIlInstance>::from_il_instance(
811 <Self as ::unity::SystemObject>::as_instance(self),
812 );
813 ::unity::il2cpp_call!((::unity::module_base()+0x1b2d160usize)as*mut u8,();
814(WellTopMenu_EvilMapChangeDifficultyMenuItem)__receiver,(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)::core::convert::Into::into(event_handler))
815 }
816 }
817 #[doc = "`GetName()` overload"]
818 fn get_name(self) -> ::unity::Il2CppString {
819 unsafe {
820 let __receiver = <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::FromIlInstance>::from_il_instance(
821 <Self as ::unity::SystemObject>::as_instance(self),
822 );
823 {
824 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
825 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
826 panic!(
827 "unity: virtual slot {}
828 out of range (vtable len {}
829) on the runtime class behind {}
830 (method `{}
831`)",
832 4usize,
833 __vt.len(),
834 <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::ClassIdentity>::NAME,
835 "GetName",
836 )
837 });
838 let __inner: extern "C" fn(WellTopMenu_EvilMapChangeDifficultyMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
839 ::core::mem::transmute(__vi.method_ptr);
840 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
841 __inner(__receiver, __mi)
842 }
843 }
844 }
845 #[doc = "`BuildAttribute()` overload"]
846 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
847 unsafe {
848 let __receiver = <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::FromIlInstance>::from_il_instance(
849 <Self as ::unity::SystemObject>::as_instance(self),
850 );
851 {
852 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
853 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
854 panic!(
855 "unity: virtual slot {}
856 out of range (vtable len {}
857) on the runtime class behind {}
858 (method `{}
859`)",
860 8usize,
861 __vt.len(),
862 <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::ClassIdentity>::NAME,
863 "BuildAttribute",
864 )
865 });
866 let __inner: extern "C" fn(
867 WellTopMenu_EvilMapChangeDifficultyMenuItem,
868 ::unity::OptionalMethod,
869 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
870 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
871 __inner(__receiver, __mi)
872 }
873 }
874 }
875 #[doc = "`ACall()` overload"]
876 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
877 unsafe {
878 let __receiver = <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::FromIlInstance>::from_il_instance(
879 <Self as ::unity::SystemObject>::as_instance(self),
880 );
881 {
882 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
883 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
884 panic!(
885 "unity: virtual slot {}
886 out of range (vtable len {}
887) on the runtime class behind {}
888 (method `{}
889`)",
890 18usize,
891 __vt.len(),
892 <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::ClassIdentity>::NAME,
893 "ACall",
894 )
895 });
896 let __inner: extern "C" fn(
897 WellTopMenu_EvilMapChangeDifficultyMenuItem,
898 ::unity::OptionalMethod,
899 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
900 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
901 __inner(__receiver, __mi)
902 }
903 }
904 }
905 #[doc = "`BCall()` overload"]
906 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
907 unsafe {
908 let __receiver = <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::FromIlInstance>::from_il_instance(
909 <Self as ::unity::SystemObject>::as_instance(self),
910 );
911 {
912 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
913 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
914 panic!(
915 "unity: virtual slot {}
916 out of range (vtable len {}
917) on the runtime class behind {}
918 (method `{}
919`)",
920 19usize,
921 __vt.len(),
922 <WellTopMenu_EvilMapChangeDifficultyMenuItem as ::unity::ClassIdentity>::NAME,
923 "BCall",
924 )
925 });
926 let __inner: extern "C" fn(
927 WellTopMenu_EvilMapChangeDifficultyMenuItem,
928 ::unity::OptionalMethod,
929 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
930 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
931 __inner(__receiver, __mi)
932 }
933 }
934 }
935}
936
937#[cfg(feature = "app-welltopmenu")]
938impl<__T: IWellTopMenu_EvilMapChangeDifficultyMenuItem> IWellTopMenu_EvilMapChangeDifficultyMenuItemMethods for __T {}
939
940#[cfg(feature = "app-welltopmenu")]
941impl WellTopMenu_EvilMapChangeDifficultyMenuItem {
942 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
943 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
944 }
945
946 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
947 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
948 }
949
950 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
951 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
952 }
953
954 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
955 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
956 }
957
958 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
959 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
960 }
961}
962
963#[cfg(feature = "app-welltopmenu")]
964impl WellTopMenu_EvilMapChangeDifficultyMenuItem {
965 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapChangeDifficultyMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
966 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
967 let __mi = Self::get_name_method_info();
968 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
969 __inner(this.into(), ::core::option::Option::None)
970 }
971
972 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapChangeDifficultyMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
973 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
974 let __mi = Self::build_attribute_method_info();
975 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
976 ::core::mem::transmute(__mi.method_ptr);
977 __inner(this.into(), ::core::option::Option::None)
978 }
979
980 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapChangeDifficultyMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
981 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
982 let __mi = Self::a_call_method_info();
983 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
984 ::core::mem::transmute(__mi.method_ptr);
985 __inner(this.into(), ::core::option::Option::None)
986 }
987
988 #[doc = "Direct (non-virtual) call to `WellTopMenu_EvilMapChangeDifficultyMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
989 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
990 let __mi = Self::b_call_method_info();
991 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
992 ::core::mem::transmute(__mi.method_ptr);
993 __inner(this.into(), ::core::option::Option::None)
994 }
995}
996
997#[cfg(feature = "app-welltopmenu")]
998impl WellTopMenu_EvilMapChangeDifficultyMenuItem {
999 #[doc = "`.ctor(crate::app::welltopmenu::WellTopMenu_DecideEventHandler)` — overload selector"]
1000 pub fn new(event_handler: crate::app::welltopmenu::WellTopMenu_DecideEventHandler) -> Self {
1001 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1002 panic!(
1003 "{}
1004::{}
1005 failed to instantiate",
1006 ::core::stringify!(WellTopMenu_EvilMapChangeDifficultyMenuItem),
1007 ::core::stringify!(new),
1008 )
1009 });
1010 <Self as IWellTopMenu_EvilMapChangeDifficultyMenuItemMethods>::ctor(this, event_handler);
1011 this
1012 }
1013}
1014
1015#[cfg(feature = "app-welltopmenu")]
1016#[doc(hidden)]
1017pub mod prelude {
1018 pub use super::{
1019 IWellTopMenu, IWellTopMenuMethods, IWellTopMenu_DecideEventHandler, IWellTopMenu_DecideEventHandlerMethods,
1020 IWellTopMenu_EvilMapChangeDifficultyMenuItem, IWellTopMenu_EvilMapChangeDifficultyMenuItemMethods, IWellTopMenu_EvilMapStartMenuItem,
1021 IWellTopMenu_EvilMapStartMenuItemMethods, IWellTopMenu_ItemExchangeMenuItem, IWellTopMenu_ItemExchangeMenuItemMethods, WellTopMenu,
1022 WellTopMenu_DecideEventHandler, WellTopMenu_EvilMapChangeDifficultyMenuItem, WellTopMenu_EvilMapStartMenuItem,
1023 WellTopMenu_ItemExchangeMenuItem, WellTopMenu_MenuResult,
1024 };
1025 #[cfg(feature = "app-basicmenu")]
1026 pub use crate::app::basicmenu::IBasicMenuMethods;
1027 #[cfg(feature = "app-basicmenuitem")]
1028 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
1029 #[cfg(feature = "app-procinst")]
1030 pub use crate::app::procinst::IProcInstMethods;
1031 #[cfg(feature = "system-delegate")]
1032 pub use crate::system::delegate::IDelegateMethods;
1033 #[cfg(feature = "system-multicastdelegate")]
1034 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
1035 #[cfg(feature = "system-object")]
1036 pub use crate::system::object::IObjectMethods;
1037 #[cfg(feature = "system-enum")]
1038 pub use crate::system::r#enum::IEnumMethods;
1039 #[cfg(feature = "system-valuetype")]
1040 pub use crate::system::valuetype::IValueTypeMethods;
1041 pub use crate::{
1042 app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
1043 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
1044 };
1045}