1#[cfg(feature = "app-refineshoptopmenu-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/refineshoptopmenu/RefineShopTopMenu_DecideEventHandler.md"))]
24 #[::unity::class(namespace = "App", name = "RefineShopTopMenu.DecideEventHandler")]
25 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
26 pub struct RefineShopTopMenu_DecideEventHandler {}
27
28 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoptopmenu/RefineShopTopMenu_RefineShopTopRefineMenuItem.md"))]
29 #[::unity::class(namespace = "App", name = "RefineShopTopMenu.RefineShopTopRefineMenuItem")]
30 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
31 pub struct RefineShopTopMenu_RefineShopTopRefineMenuItem {
32 #[offset(104)]
33 #[rename(name = "m_DecideEventHandler")]
34 pub m_decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler,
35 }
36
37 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoptopmenu/RefineShopTopMenu_Result2.md"))]
38 #[repr(C)]
39 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
40 pub struct RefineShopTopMenu_Result2 {
41 pub value: i32,
42 }
43 impl ::unity::ClassIdentity for RefineShopTopMenu_Result2 {
44 const NAME: &'static str = "RefineShopTopMenu.Result2";
45 const NAMESPACE: &'static str = "App";
46
47 fn class() -> ::unity::Class {
48 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
49 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
50 }
51 }
52 impl ::unity::IlType for RefineShopTopMenu_Result2 {
53 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
54 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
55 }
56 }
57 impl RefineShopTopMenu_Result2 {
58 pub fn refine() -> Self {
59 Self { value: 0 }
60 }
61
62 pub fn engrave() -> Self {
63 Self { value: 1 }
64 }
65
66 pub fn exchange() -> Self {
67 Self { value: 2 }
68 }
69
70 pub fn end() -> Self {
71 Self { value: 3 }
72 }
73 }
74
75 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoptopmenu/RefineShopTopMenu_RefineShopTopEngraveMenuItem.md"))]
76 #[::unity::class(namespace = "App", name = "RefineShopTopMenu.RefineShopTopEngraveMenuItem")]
77 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
78 pub struct RefineShopTopMenu_RefineShopTopEngraveMenuItem {
79 #[offset(104)]
80 #[rename(name = "m_DecideEventHandler")]
81 pub m_decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler,
82 }
83
84 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoptopmenu/RefineShopTopMenu_RefineShopTopExchangeMenuItem.md"))]
85 #[::unity::class(namespace = "App", name = "RefineShopTopMenu.RefineShopTopExchangeMenuItem")]
86 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
87 pub struct RefineShopTopMenu_RefineShopTopExchangeMenuItem {
88 #[offset(104)]
89 #[rename(name = "m_DecideEventHandler")]
90 pub m_decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler,
91 }
92
93 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/refineshoptopmenu/RefineShopTopMenu.md"))]
94 #[::unity::class(namespace = "App", name = "RefineShopTopMenu")]
95 #[parent(crate::app::basicmenu::BasicMenu)]
96 pub struct RefineShopTopMenu {}
97}
98
99#[cfg(feature = "app-refineshoptopmenu-types")]
100pub use __types::*;
101
102#[cfg(feature = "app-refineshoptopmenu")]
103pub trait IRefineShopTopMenu_DecideEventHandlerMethods: IRefineShopTopMenu_DecideEventHandler {
104 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
105 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
106 unsafe {
107 let __receiver = <RefineShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
108 <Self as ::unity::SystemObject>::as_instance(self),
109 );
110 ::unity::il2cpp_call!((::unity::module_base()+0x1afdd50usize)as*mut u8,();
111(RefineShopTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
112 }
113 }
114 #[doc = "`Invoke(crate::app::refineshoptopmenu::RefineShopTopMenu_Result2)` overload"]
115 fn invoke(self, result: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_Result2>) -> () {
116 unsafe {
117 let __receiver = <RefineShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
118 <Self as ::unity::SystemObject>::as_instance(self),
119 );
120 {
121 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
123 panic!(
124 "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129 13usize,
130 __vt.len(),
131 <RefineShopTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
132 "Invoke",
133 )
134 });
135 let __inner: extern "C" fn(
136 RefineShopTopMenu_DecideEventHandler,
137 crate::app::refineshoptopmenu::RefineShopTopMenu_Result2,
138 ::unity::OptionalMethod,
139 ) -> () = ::core::mem::transmute(__vi.method_ptr);
140 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141 __inner(__receiver, ::core::convert::Into::into(result), __mi)
142 }
143 }
144 }
145}
146
147#[cfg(feature = "app-refineshoptopmenu")]
148impl<__T: IRefineShopTopMenu_DecideEventHandler> IRefineShopTopMenu_DecideEventHandlerMethods for __T {}
149
150#[cfg(feature = "app-refineshoptopmenu")]
151impl RefineShopTopMenu_DecideEventHandler {
152 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
154 }
155
156 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
158 }
159}
160
161#[cfg(feature = "app-refineshoptopmenu")]
162impl RefineShopTopMenu_DecideEventHandler {
163 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
164 pub unsafe fn invoke(
165 this: impl ::core::convert::Into<::unity::IlInstance>,
166 result: crate::app::refineshoptopmenu::RefineShopTopMenu_Result2,
167 ) -> () {
168 let __mi = Self::invoke_method_info();
169 let __inner: extern "C" fn(::unity::IlInstance, crate::app::refineshoptopmenu::RefineShopTopMenu_Result2, ::unity::OptionalMethod) -> () =
170 ::core::mem::transmute(__mi.method_ptr);
171 __inner(this.into(), result, ::core::option::Option::None)
172 }
173}
174
175#[cfg(feature = "app-refineshoptopmenu")]
176impl RefineShopTopMenu_DecideEventHandler {
177 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
178 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
179 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
180 panic!(
181 "{}
182::{}
183 failed to instantiate",
184 ::core::stringify!(RefineShopTopMenu_DecideEventHandler),
185 ::core::stringify!(new),
186 )
187 });
188 <Self as IRefineShopTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
189 this
190 }
191}
192
193#[cfg(feature = "app-refineshoptopmenu")]
194pub trait IRefineShopTopMenu_RefineShopTopRefineMenuItemMethods: IRefineShopTopMenu_RefineShopTopRefineMenuItem {
195 #[doc = "`.ctor(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` overload"]
196 fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler>) -> () {
197 unsafe {
198 let __receiver = <RefineShopTopMenu_RefineShopTopRefineMenuItem as ::unity::FromIlInstance>::from_il_instance(
199 <Self as ::unity::SystemObject>::as_instance(self),
200 );
201 ::unity::il2cpp_call!((::unity::module_base()+0x1afe250usize)as*mut u8,();
202(RefineShopTopMenu_RefineShopTopRefineMenuItem)__receiver,(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
203 }
204 }
205 #[doc = "`GetName()` overload"]
206 fn get_name(self) -> ::unity::Il2CppString {
207 unsafe {
208 let __receiver = <RefineShopTopMenu_RefineShopTopRefineMenuItem as ::unity::FromIlInstance>::from_il_instance(
209 <Self as ::unity::SystemObject>::as_instance(self),
210 );
211 {
212 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
213 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
214 panic!(
215 "unity: virtual slot {}
216 out of range (vtable len {}
217) on the runtime class behind {}
218 (method `{}
219`)",
220 4usize,
221 __vt.len(),
222 <RefineShopTopMenu_RefineShopTopRefineMenuItem as ::unity::ClassIdentity>::NAME,
223 "GetName",
224 )
225 });
226 let __inner: extern "C" fn(RefineShopTopMenu_RefineShopTopRefineMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
227 ::core::mem::transmute(__vi.method_ptr);
228 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
229 __inner(__receiver, __mi)
230 }
231 }
232 }
233 #[doc = "`ACall()` overload"]
234 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
235 unsafe {
236 let __receiver = <RefineShopTopMenu_RefineShopTopRefineMenuItem as ::unity::FromIlInstance>::from_il_instance(
237 <Self as ::unity::SystemObject>::as_instance(self),
238 );
239 {
240 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
241 let __vi = *__vt.get(18usize).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 18usize,
249 __vt.len(),
250 <RefineShopTopMenu_RefineShopTopRefineMenuItem as ::unity::ClassIdentity>::NAME,
251 "ACall",
252 )
253 });
254 let __inner: extern "C" fn(
255 RefineShopTopMenu_RefineShopTopRefineMenuItem,
256 ::unity::OptionalMethod,
257 ) -> crate::app::basicmenu::BasicMenu_Result = ::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}
264
265#[cfg(feature = "app-refineshoptopmenu")]
266impl<__T: IRefineShopTopMenu_RefineShopTopRefineMenuItem> IRefineShopTopMenu_RefineShopTopRefineMenuItemMethods for __T {}
267
268#[cfg(feature = "app-refineshoptopmenu")]
269impl RefineShopTopMenu_RefineShopTopRefineMenuItem {
270 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
272 }
273
274 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
276 }
277
278 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
280 }
281}
282
283#[cfg(feature = "app-refineshoptopmenu")]
284impl RefineShopTopMenu_RefineShopTopRefineMenuItem {
285 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_RefineShopTopRefineMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
286 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
287 let __mi = Self::get_name_method_info();
288 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
289 __inner(this.into(), ::core::option::Option::None)
290 }
291
292 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_RefineShopTopRefineMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
293 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
294 let __mi = Self::a_call_method_info();
295 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
296 ::core::mem::transmute(__mi.method_ptr);
297 __inner(this.into(), ::core::option::Option::None)
298 }
299}
300
301#[cfg(feature = "app-refineshoptopmenu")]
302impl RefineShopTopMenu_RefineShopTopRefineMenuItem {
303 #[doc = "`.ctor(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` — overload selector"]
304 pub fn new(decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler) -> Self {
305 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
306 panic!(
307 "{}
308::{}
309 failed to instantiate",
310 ::core::stringify!(RefineShopTopMenu_RefineShopTopRefineMenuItem),
311 ::core::stringify!(new),
312 )
313 });
314 <Self as IRefineShopTopMenu_RefineShopTopRefineMenuItemMethods>::ctor(this, decide_event_handler);
315 this
316 }
317}
318
319#[cfg(feature = "app-refineshoptopmenu")]
320pub trait IRefineShopTopMenu_RefineShopTopEngraveMenuItemMethods: IRefineShopTopMenu_RefineShopTopEngraveMenuItem {
321 #[doc = "`.ctor(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` overload"]
322 fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler>) -> () {
323 unsafe {
324 let __receiver = <RefineShopTopMenu_RefineShopTopEngraveMenuItem as ::unity::FromIlInstance>::from_il_instance(
325 <Self as ::unity::SystemObject>::as_instance(self),
326 );
327 ::unity::il2cpp_call!((::unity::module_base()+0x1afe070usize)as*mut u8,();
328(RefineShopTopMenu_RefineShopTopEngraveMenuItem)__receiver,(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
329 }
330 }
331 #[doc = "`GetName()` overload"]
332 fn get_name(self) -> ::unity::Il2CppString {
333 unsafe {
334 let __receiver = <RefineShopTopMenu_RefineShopTopEngraveMenuItem as ::unity::FromIlInstance>::from_il_instance(
335 <Self as ::unity::SystemObject>::as_instance(self),
336 );
337 {
338 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
339 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
340 panic!(
341 "unity: virtual slot {}
342 out of range (vtable len {}
343) on the runtime class behind {}
344 (method `{}
345`)",
346 4usize,
347 __vt.len(),
348 <RefineShopTopMenu_RefineShopTopEngraveMenuItem as ::unity::ClassIdentity>::NAME,
349 "GetName",
350 )
351 });
352 let __inner: extern "C" fn(RefineShopTopMenu_RefineShopTopEngraveMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
353 ::core::mem::transmute(__vi.method_ptr);
354 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
355 __inner(__receiver, __mi)
356 }
357 }
358 }
359 #[doc = "`ACall()` overload"]
360 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
361 unsafe {
362 let __receiver = <RefineShopTopMenu_RefineShopTopEngraveMenuItem as ::unity::FromIlInstance>::from_il_instance(
363 <Self as ::unity::SystemObject>::as_instance(self),
364 );
365 {
366 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
367 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
368 panic!(
369 "unity: virtual slot {}
370 out of range (vtable len {}
371) on the runtime class behind {}
372 (method `{}
373`)",
374 18usize,
375 __vt.len(),
376 <RefineShopTopMenu_RefineShopTopEngraveMenuItem as ::unity::ClassIdentity>::NAME,
377 "ACall",
378 )
379 });
380 let __inner: extern "C" fn(
381 RefineShopTopMenu_RefineShopTopEngraveMenuItem,
382 ::unity::OptionalMethod,
383 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
384 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
385 __inner(__receiver, __mi)
386 }
387 }
388 }
389}
390
391#[cfg(feature = "app-refineshoptopmenu")]
392impl<__T: IRefineShopTopMenu_RefineShopTopEngraveMenuItem> IRefineShopTopMenu_RefineShopTopEngraveMenuItemMethods for __T {}
393
394#[cfg(feature = "app-refineshoptopmenu")]
395impl RefineShopTopMenu_RefineShopTopEngraveMenuItem {
396 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
398 }
399
400 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
402 }
403
404 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
406 }
407}
408
409#[cfg(feature = "app-refineshoptopmenu")]
410impl RefineShopTopMenu_RefineShopTopEngraveMenuItem {
411 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_RefineShopTopEngraveMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
412 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
413 let __mi = Self::get_name_method_info();
414 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
415 __inner(this.into(), ::core::option::Option::None)
416 }
417
418 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_RefineShopTopEngraveMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
419 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
420 let __mi = Self::a_call_method_info();
421 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
422 ::core::mem::transmute(__mi.method_ptr);
423 __inner(this.into(), ::core::option::Option::None)
424 }
425}
426
427#[cfg(feature = "app-refineshoptopmenu")]
428impl RefineShopTopMenu_RefineShopTopEngraveMenuItem {
429 #[doc = "`.ctor(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` — overload selector"]
430 pub fn new(decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler) -> Self {
431 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
432 panic!(
433 "{}
434::{}
435 failed to instantiate",
436 ::core::stringify!(RefineShopTopMenu_RefineShopTopEngraveMenuItem),
437 ::core::stringify!(new),
438 )
439 });
440 <Self as IRefineShopTopMenu_RefineShopTopEngraveMenuItemMethods>::ctor(this, decide_event_handler);
441 this
442 }
443}
444
445#[cfg(feature = "app-refineshoptopmenu")]
446pub trait IRefineShopTopMenu_RefineShopTopExchangeMenuItemMethods: IRefineShopTopMenu_RefineShopTopExchangeMenuItem {
447 #[doc = "`.ctor(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` overload"]
448 fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler>) -> () {
449 unsafe {
450 let __receiver = <RefineShopTopMenu_RefineShopTopExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(
451 <Self as ::unity::SystemObject>::as_instance(self),
452 );
453 ::unity::il2cpp_call!((::unity::module_base()+0x1afe160usize)as*mut u8,();
454(RefineShopTopMenu_RefineShopTopExchangeMenuItem)__receiver,(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
455 }
456 }
457 #[doc = "`GetName()` overload"]
458 fn get_name(self) -> ::unity::Il2CppString {
459 unsafe {
460 let __receiver = <RefineShopTopMenu_RefineShopTopExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(
461 <Self as ::unity::SystemObject>::as_instance(self),
462 );
463 {
464 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
465 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
466 panic!(
467 "unity: virtual slot {}
468 out of range (vtable len {}
469) on the runtime class behind {}
470 (method `{}
471`)",
472 4usize,
473 __vt.len(),
474 <RefineShopTopMenu_RefineShopTopExchangeMenuItem as ::unity::ClassIdentity>::NAME,
475 "GetName",
476 )
477 });
478 let __inner: extern "C" fn(RefineShopTopMenu_RefineShopTopExchangeMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
479 ::core::mem::transmute(__vi.method_ptr);
480 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
481 __inner(__receiver, __mi)
482 }
483 }
484 }
485 #[doc = "`ACall()` overload"]
486 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
487 unsafe {
488 let __receiver = <RefineShopTopMenu_RefineShopTopExchangeMenuItem as ::unity::FromIlInstance>::from_il_instance(
489 <Self as ::unity::SystemObject>::as_instance(self),
490 );
491 {
492 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
493 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
494 panic!(
495 "unity: virtual slot {}
496 out of range (vtable len {}
497) on the runtime class behind {}
498 (method `{}
499`)",
500 18usize,
501 __vt.len(),
502 <RefineShopTopMenu_RefineShopTopExchangeMenuItem as ::unity::ClassIdentity>::NAME,
503 "ACall",
504 )
505 });
506 let __inner: extern "C" fn(
507 RefineShopTopMenu_RefineShopTopExchangeMenuItem,
508 ::unity::OptionalMethod,
509 ) -> crate::app::basicmenu::BasicMenu_Result = ::core::mem::transmute(__vi.method_ptr);
510 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
511 __inner(__receiver, __mi)
512 }
513 }
514 }
515}
516
517#[cfg(feature = "app-refineshoptopmenu")]
518impl<__T: IRefineShopTopMenu_RefineShopTopExchangeMenuItem> IRefineShopTopMenu_RefineShopTopExchangeMenuItemMethods for __T {}
519
520#[cfg(feature = "app-refineshoptopmenu")]
521impl RefineShopTopMenu_RefineShopTopExchangeMenuItem {
522 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
524 }
525
526 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
528 }
529
530 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
531 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
532 }
533}
534
535#[cfg(feature = "app-refineshoptopmenu")]
536impl RefineShopTopMenu_RefineShopTopExchangeMenuItem {
537 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_RefineShopTopExchangeMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
538 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
539 let __mi = Self::get_name_method_info();
540 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
541 __inner(this.into(), ::core::option::Option::None)
542 }
543
544 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu_RefineShopTopExchangeMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
545 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
546 let __mi = Self::a_call_method_info();
547 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
548 ::core::mem::transmute(__mi.method_ptr);
549 __inner(this.into(), ::core::option::Option::None)
550 }
551}
552
553#[cfg(feature = "app-refineshoptopmenu")]
554impl RefineShopTopMenu_RefineShopTopExchangeMenuItem {
555 #[doc = "`.ctor(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` — overload selector"]
556 pub fn new(decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler) -> Self {
557 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
558 panic!(
559 "{}
560::{}
561 failed to instantiate",
562 ::core::stringify!(RefineShopTopMenu_RefineShopTopExchangeMenuItem),
563 ::core::stringify!(new),
564 )
565 });
566 <Self as IRefineShopTopMenu_RefineShopTopExchangeMenuItemMethods>::ctor(this, decide_event_handler);
567 this
568 }
569}
570
571#[cfg(feature = "app-refineshoptopmenu")]
572impl RefineShopTopMenu {
573 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::refineshoptopmenu::RefineShopTopMenu_Result2, crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` overload"]
574 pub fn create_bind(
575 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
576 initial_selected: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_Result2>,
577 decide_event_handler: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler>,
578 ) -> () {
579 unsafe {
580 ::unity::il2cpp_call!((::unity::module_base()+0x22b5a10usize)as*mut u8,();
581(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::refineshoptopmenu::RefineShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
582 }
583 }
584}
585
586#[cfg(feature = "app-refineshoptopmenu")]
587pub trait IRefineShopTopMenuMethods: IRefineShopTopMenu {
588 #[doc = "`get_m_DecideEventHandler()` overload"]
589 fn get_m_decide_event_handler(self) -> crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler {
590 unsafe {
591 let __receiver = <RefineShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
592 ::unity::il2cpp_call!((::unity::module_base()+0x22b59f0usize)as*mut u8,crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler;
593(RefineShopTopMenu)__receiver)
594 }
595 }
596 #[doc = "`set_m_DecideEventHandler(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` overload"]
597 fn set_m_decide_event_handler(
598 self,
599 value: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler>,
600 ) -> () {
601 unsafe {
602 let __receiver = <RefineShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
603 ::unity::il2cpp_call!((::unity::module_base()+0x22b5a00usize)as*mut u8,();
604(RefineShopTopMenu)__receiver,(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)::core::convert::Into::into(value))
605 }
606 }
607 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shoptopmenucontent::ShopTopMenuContent, crate::app::refineshoptopmenu::RefineShopTopMenu_Result2, crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` overload"]
608 fn ctor(
609 self,
610 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
611 menu_content: impl ::core::convert::Into<crate::app::shoptopmenucontent::ShopTopMenuContent>,
612 initial_selected: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_Result2>,
613 decide_event_handler: impl ::core::convert::Into<crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler>,
614 ) -> () {
615 unsafe {
616 let __receiver = <RefineShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
617 ::unity::il2cpp_call!((::unity::module_base()+0x22b5c50usize)as*mut u8,();
618(RefineShopTopMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::shoptopmenucontent::ShopTopMenuContent)::core::convert::Into::into(menu_content),(crate::app::refineshoptopmenu::RefineShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
619 }
620 }
621 #[doc = "`GetName()` overload"]
622 fn get_name(self) -> ::unity::Il2CppString {
623 unsafe {
624 let __receiver = <RefineShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
625 {
626 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
627 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
628 panic!(
629 "unity: virtual slot {}
630 out of range (vtable len {}
631) on the runtime class behind {}
632 (method `{}
633`)",
634 30usize,
635 __vt.len(),
636 <RefineShopTopMenu as ::unity::ClassIdentity>::NAME,
637 "GetName",
638 )
639 });
640 let __inner: extern "C" fn(RefineShopTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
641 ::core::mem::transmute(__vi.method_ptr);
642 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
643 __inner(__receiver, __mi)
644 }
645 }
646 }
647 #[doc = "`BCall()` overload"]
648 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
649 unsafe {
650 let __receiver = <RefineShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
651 {
652 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
653 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
654 panic!(
655 "unity: virtual slot {}
656 out of range (vtable len {}
657) on the runtime class behind {}
658 (method `{}
659`)",
660 51usize,
661 __vt.len(),
662 <RefineShopTopMenu as ::unity::ClassIdentity>::NAME,
663 "BCall",
664 )
665 });
666 let __inner: extern "C" fn(RefineShopTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
667 ::core::mem::transmute(__vi.method_ptr);
668 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
669 __inner(__receiver, __mi)
670 }
671 }
672 }
673}
674
675#[cfg(feature = "app-refineshoptopmenu")]
676impl<__T: IRefineShopTopMenu> IRefineShopTopMenuMethods for __T {}
677
678#[cfg(feature = "app-refineshoptopmenu")]
679impl RefineShopTopMenu {
680 pub fn get_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
681 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
682 }
683
684 pub fn set_m_decide_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
685 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
686 }
687
688 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
689 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
690 }
691
692 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
693 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
694 }
695
696 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
697 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
698 }
699
700 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
701 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
702 }
703}
704
705#[cfg(feature = "app-refineshoptopmenu")]
706impl RefineShopTopMenu {
707 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
708 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
709 let __mi = Self::get_name_method_info();
710 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
711 __inner(this.into(), ::core::option::Option::None)
712 }
713
714 #[doc = "Direct (non-virtual) call to `RefineShopTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
715 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
716 let __mi = Self::b_call_method_info();
717 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
718 ::core::mem::transmute(__mi.method_ptr);
719 __inner(this.into(), ::core::option::Option::None)
720 }
721}
722
723#[cfg(feature = "app-refineshoptopmenu")]
724impl RefineShopTopMenu {
725 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shoptopmenucontent::ShopTopMenuContent, crate::app::refineshoptopmenu::RefineShopTopMenu_Result2, crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler)` — overload selector"]
726 pub fn new(
727 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
728 menu_content: crate::app::shoptopmenucontent::ShopTopMenuContent,
729 initial_selected: crate::app::refineshoptopmenu::RefineShopTopMenu_Result2,
730 decide_event_handler: crate::app::refineshoptopmenu::RefineShopTopMenu_DecideEventHandler,
731 ) -> Self {
732 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
733 panic!(
734 "{}
735::{}
736 failed to instantiate",
737 ::core::stringify!(RefineShopTopMenu),
738 ::core::stringify!(new),
739 )
740 });
741 <Self as IRefineShopTopMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, decide_event_handler);
742 this
743 }
744}
745
746#[cfg(feature = "app-refineshoptopmenu")]
747#[doc(hidden)]
748pub mod prelude {
749 pub use super::{
750 IRefineShopTopMenu, IRefineShopTopMenuMethods, IRefineShopTopMenu_DecideEventHandler, IRefineShopTopMenu_DecideEventHandlerMethods,
751 IRefineShopTopMenu_RefineShopTopEngraveMenuItem, IRefineShopTopMenu_RefineShopTopEngraveMenuItemMethods,
752 IRefineShopTopMenu_RefineShopTopExchangeMenuItem, IRefineShopTopMenu_RefineShopTopExchangeMenuItemMethods,
753 IRefineShopTopMenu_RefineShopTopRefineMenuItem, IRefineShopTopMenu_RefineShopTopRefineMenuItemMethods, RefineShopTopMenu,
754 RefineShopTopMenu_DecideEventHandler, RefineShopTopMenu_RefineShopTopEngraveMenuItem, RefineShopTopMenu_RefineShopTopExchangeMenuItem,
755 RefineShopTopMenu_RefineShopTopRefineMenuItem, RefineShopTopMenu_Result2,
756 };
757 #[cfg(feature = "app-basicmenu")]
758 pub use crate::app::basicmenu::IBasicMenuMethods;
759 #[cfg(feature = "app-basicmenuitem")]
760 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
761 #[cfg(feature = "app-procinst")]
762 pub use crate::app::procinst::IProcInstMethods;
763 #[cfg(feature = "system-delegate")]
764 pub use crate::system::delegate::IDelegateMethods;
765 #[cfg(feature = "system-multicastdelegate")]
766 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
767 #[cfg(feature = "system-object")]
768 pub use crate::system::object::IObjectMethods;
769 #[cfg(feature = "system-enum")]
770 pub use crate::system::r#enum::IEnumMethods;
771 #[cfg(feature = "system-valuetype")]
772 pub use crate::system::valuetype::IValueTypeMethods;
773 pub use crate::{
774 app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
775 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
776 };
777}