1#[cfg(feature = "app-accessoryshoptopmenu-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/accessoryshoptopmenu/AccessoryShopTopMenu_DecideEventHandler.md"))]
24 #[::unity::class(namespace = "App", name = "AccessoryShopTopMenu.DecideEventHandler")]
25 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
26 pub struct AccessoryShopTopMenu_DecideEventHandler {}
27
28 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/accessoryshoptopmenu/AccessoryShopTopMenu_BuyMenuItem.md"))]
29 #[::unity::class(namespace = "App", name = "AccessoryShopTopMenu.BuyMenuItem")]
30 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
31 pub struct AccessoryShopTopMenu_BuyMenuItem {
32 #[offset(104)]
33 #[rename(name = "m_DecideEventHandler")]
34 pub m_decide_event_handler: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler,
35 }
36
37 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/accessoryshoptopmenu/AccessoryShopTopMenu_ChangeMenuItem.md"))]
38 #[::unity::class(namespace = "App", name = "AccessoryShopTopMenu.ChangeMenuItem")]
39 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
40 pub struct AccessoryShopTopMenu_ChangeMenuItem {
41 #[offset(104)]
42 #[rename(name = "m_DecideEventHandler")]
43 pub m_decide_event_handler: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler,
44 }
45
46 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/accessoryshoptopmenu/AccessoryShopTopMenu_Result2.md"))]
47 #[repr(C)]
48 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
49 pub struct AccessoryShopTopMenu_Result2 {
50 pub value: i32,
51 }
52 impl ::unity::ClassIdentity for AccessoryShopTopMenu_Result2 {
53 const NAME: &'static str = "AccessoryShopTopMenu.Result2";
54 const NAMESPACE: &'static str = "App";
55
56 fn class() -> ::unity::Class {
57 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
58 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
59 }
60 }
61 impl ::unity::IlType for AccessoryShopTopMenu_Result2 {
62 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
63 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
64 }
65 }
66 impl AccessoryShopTopMenu_Result2 {
67 pub fn buy() -> Self {
68 Self { value: 0 }
69 }
70
71 pub fn change() -> Self {
72 Self { value: 1 }
73 }
74
75 pub fn end() -> Self {
76 Self { value: 2 }
77 }
78 }
79
80 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/accessoryshoptopmenu/AccessoryShopTopMenu.md"))]
81 #[::unity::class(namespace = "App", name = "AccessoryShopTopMenu")]
82 #[parent(crate::app::basicmenu::BasicMenu)]
83 pub struct AccessoryShopTopMenu {
84 #[offset(200)]
85 #[rename(name = "m_DecideEventHandler")]
86 pub m_decide_event_handler: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler,
87 }
88}
89
90#[cfg(feature = "app-accessoryshoptopmenu-types")]
91pub use __types::*;
92
93#[cfg(feature = "app-accessoryshoptopmenu")]
94pub trait IAccessoryShopTopMenu_DecideEventHandlerMethods: IAccessoryShopTopMenu_DecideEventHandler {
95 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
96 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
97 unsafe {
98 let __receiver = <AccessoryShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
99 <Self as ::unity::SystemObject>::as_instance(self),
100 );
101 ::unity::il2cpp_call!((::unity::module_base()+0x29063a0usize)as*mut u8,();
102(AccessoryShopTopMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
103 }
104 }
105 #[doc = "`Invoke(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2)` overload"]
106 fn invoke(self, result: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2>) -> () {
107 unsafe {
108 let __receiver = <AccessoryShopTopMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
109 <Self as ::unity::SystemObject>::as_instance(self),
110 );
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 13usize,
121 __vt.len(),
122 <AccessoryShopTopMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
123 "Invoke",
124 )
125 });
126 let __inner: extern "C" fn(
127 AccessoryShopTopMenu_DecideEventHandler,
128 crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2,
129 ::unity::OptionalMethod,
130 ) -> () = ::core::mem::transmute(__vi.method_ptr);
131 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132 __inner(__receiver, ::core::convert::Into::into(result), __mi)
133 }
134 }
135 }
136}
137
138#[cfg(feature = "app-accessoryshoptopmenu")]
139impl<__T: IAccessoryShopTopMenu_DecideEventHandler> IAccessoryShopTopMenu_DecideEventHandlerMethods for __T {}
140
141#[cfg(feature = "app-accessoryshoptopmenu")]
142impl AccessoryShopTopMenu_DecideEventHandler {
143 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
145 }
146
147 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
149 }
150}
151
152#[cfg(feature = "app-accessoryshoptopmenu")]
153impl AccessoryShopTopMenu_DecideEventHandler {
154 #[doc = "Direct (non-virtual) call to `AccessoryShopTopMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
155 pub unsafe fn invoke(
156 this: impl ::core::convert::Into<::unity::IlInstance>,
157 result: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2,
158 ) -> () {
159 let __mi = Self::invoke_method_info();
160 let __inner: extern "C" fn(
161 ::unity::IlInstance,
162 crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2,
163 ::unity::OptionalMethod,
164 ) -> () = ::core::mem::transmute(__mi.method_ptr);
165 __inner(this.into(), result, ::core::option::Option::None)
166 }
167}
168
169#[cfg(feature = "app-accessoryshoptopmenu")]
170impl AccessoryShopTopMenu_DecideEventHandler {
171 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
172 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
173 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174 panic!(
175 "{}
176::{}
177 failed to instantiate",
178 ::core::stringify!(AccessoryShopTopMenu_DecideEventHandler),
179 ::core::stringify!(new),
180 )
181 });
182 <Self as IAccessoryShopTopMenu_DecideEventHandlerMethods>::ctor(this, object, method);
183 this
184 }
185}
186
187#[cfg(feature = "app-accessoryshoptopmenu")]
188pub trait IAccessoryShopTopMenu_BuyMenuItemMethods: IAccessoryShopTopMenu_BuyMenuItem {
189 #[doc = "`.ctor(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` overload"]
190 fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler>) -> () {
191 unsafe {
192 let __receiver =
193 <AccessoryShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x2905f80usize)as*mut u8,();
195(AccessoryShopTopMenu_BuyMenuItem)__receiver,(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
196 }
197 }
198 #[doc = "`ACall()` overload"]
199 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
200 unsafe {
201 let __receiver =
202 <AccessoryShopTopMenu_BuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 {
204 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
205 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
206 panic!(
207 "unity: virtual slot {}
208 out of range (vtable len {}
209) on the runtime class behind {}
210 (method `{}
211`)",
212 18usize,
213 __vt.len(),
214 <AccessoryShopTopMenu_BuyMenuItem as ::unity::ClassIdentity>::NAME,
215 "ACall",
216 )
217 });
218 let __inner: extern "C" fn(AccessoryShopTopMenu_BuyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
219 ::core::mem::transmute(__vi.method_ptr);
220 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
221 __inner(__receiver, __mi)
222 }
223 }
224 }
225}
226
227#[cfg(feature = "app-accessoryshoptopmenu")]
228impl<__T: IAccessoryShopTopMenu_BuyMenuItem> IAccessoryShopTopMenu_BuyMenuItemMethods for __T {}
229
230#[cfg(feature = "app-accessoryshoptopmenu")]
231impl AccessoryShopTopMenu_BuyMenuItem {
232 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
234 }
235
236 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
238 }
239}
240
241#[cfg(feature = "app-accessoryshoptopmenu")]
242impl AccessoryShopTopMenu_BuyMenuItem {
243 #[doc = "Direct (non-virtual) call to `AccessoryShopTopMenu_BuyMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
244 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
245 let __mi = Self::a_call_method_info();
246 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
247 ::core::mem::transmute(__mi.method_ptr);
248 __inner(this.into(), ::core::option::Option::None)
249 }
250}
251
252#[cfg(feature = "app-accessoryshoptopmenu")]
253impl AccessoryShopTopMenu_BuyMenuItem {
254 #[doc = "`.ctor(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` — overload selector"]
255 pub fn new(decide_event_handler: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler) -> Self {
256 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
257 panic!(
258 "{}
259::{}
260 failed to instantiate",
261 ::core::stringify!(AccessoryShopTopMenu_BuyMenuItem),
262 ::core::stringify!(new),
263 )
264 });
265 <Self as IAccessoryShopTopMenu_BuyMenuItemMethods>::ctor(this, decide_event_handler);
266 this
267 }
268}
269
270#[cfg(feature = "app-accessoryshoptopmenu")]
271pub trait IAccessoryShopTopMenu_ChangeMenuItemMethods: IAccessoryShopTopMenu_ChangeMenuItem {
272 #[doc = "`.ctor(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` overload"]
273 fn ctor(self, decide_event_handler: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler>) -> () {
274 unsafe {
275 let __receiver = <AccessoryShopTopMenu_ChangeMenuItem as ::unity::FromIlInstance>::from_il_instance(
276 <Self as ::unity::SystemObject>::as_instance(self),
277 );
278 ::unity::il2cpp_call!((::unity::module_base()+0x29062c0usize)as*mut u8,();
279(AccessoryShopTopMenu_ChangeMenuItem)__receiver,(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
280 }
281 }
282 #[doc = "`ACall()` overload"]
283 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
284 unsafe {
285 let __receiver = <AccessoryShopTopMenu_ChangeMenuItem as ::unity::FromIlInstance>::from_il_instance(
286 <Self as ::unity::SystemObject>::as_instance(self),
287 );
288 {
289 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
290 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
291 panic!(
292 "unity: virtual slot {}
293 out of range (vtable len {}
294) on the runtime class behind {}
295 (method `{}
296`)",
297 18usize,
298 __vt.len(),
299 <AccessoryShopTopMenu_ChangeMenuItem as ::unity::ClassIdentity>::NAME,
300 "ACall",
301 )
302 });
303 let __inner: extern "C" fn(AccessoryShopTopMenu_ChangeMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
304 ::core::mem::transmute(__vi.method_ptr);
305 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
306 __inner(__receiver, __mi)
307 }
308 }
309 }
310}
311
312#[cfg(feature = "app-accessoryshoptopmenu")]
313impl<__T: IAccessoryShopTopMenu_ChangeMenuItem> IAccessoryShopTopMenu_ChangeMenuItemMethods for __T {}
314
315#[cfg(feature = "app-accessoryshoptopmenu")]
316impl AccessoryShopTopMenu_ChangeMenuItem {
317 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
319 }
320
321 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
323 }
324}
325
326#[cfg(feature = "app-accessoryshoptopmenu")]
327impl AccessoryShopTopMenu_ChangeMenuItem {
328 #[doc = "Direct (non-virtual) call to `AccessoryShopTopMenu_ChangeMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
329 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
330 let __mi = Self::a_call_method_info();
331 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
332 ::core::mem::transmute(__mi.method_ptr);
333 __inner(this.into(), ::core::option::Option::None)
334 }
335}
336
337#[cfg(feature = "app-accessoryshoptopmenu")]
338impl AccessoryShopTopMenu_ChangeMenuItem {
339 #[doc = "`.ctor(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` — overload selector"]
340 pub fn new(decide_event_handler: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler) -> Self {
341 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
342 panic!(
343 "{}
344::{}
345 failed to instantiate",
346 ::core::stringify!(AccessoryShopTopMenu_ChangeMenuItem),
347 ::core::stringify!(new),
348 )
349 });
350 <Self as IAccessoryShopTopMenu_ChangeMenuItemMethods>::ctor(this, decide_event_handler);
351 this
352 }
353}
354
355#[cfg(feature = "app-accessoryshoptopmenu")]
356impl AccessoryShopTopMenu {
357 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2, crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` overload"]
358 pub fn create_bind(
359 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
360 initial_selected: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2>,
361 decide_event_handler: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler>,
362 ) -> () {
363 unsafe {
364 ::unity::il2cpp_call!((::unity::module_base()+0x27c4e30usize)as*mut u8,();
365(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
366 }
367 }
368}
369
370#[cfg(feature = "app-accessoryshoptopmenu")]
371pub trait IAccessoryShopTopMenuMethods: IAccessoryShopTopMenu {
372 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shoptopmenucontent::ShopTopMenuContent, crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2, crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` overload"]
373 fn ctor(
374 self,
375 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
376 menu_content: impl ::core::convert::Into<crate::app::shoptopmenucontent::ShopTopMenuContent>,
377 initial_selected: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2>,
378 decide_event_handler: impl ::core::convert::Into<crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler>,
379 ) -> () {
380 unsafe {
381 let __receiver = <AccessoryShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 ::unity::il2cpp_call!((::unity::module_base()+0x27c5010usize)as*mut u8,();
383(AccessoryShopTopMenu)__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::accessoryshoptopmenu::AccessoryShopTopMenu_Result2)::core::convert::Into::into(initial_selected),(crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
384 }
385 }
386 #[doc = "`GetName()` overload"]
387 fn get_name(self) -> ::unity::Il2CppString {
388 unsafe {
389 let __receiver = <AccessoryShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390 {
391 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
392 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
393 panic!(
394 "unity: virtual slot {}
395 out of range (vtable len {}
396) on the runtime class behind {}
397 (method `{}
398`)",
399 30usize,
400 __vt.len(),
401 <AccessoryShopTopMenu as ::unity::ClassIdentity>::NAME,
402 "GetName",
403 )
404 });
405 let __inner: extern "C" fn(AccessoryShopTopMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
406 ::core::mem::transmute(__vi.method_ptr);
407 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
408 __inner(__receiver, __mi)
409 }
410 }
411 }
412 #[doc = "`BCall()` overload"]
413 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
414 unsafe {
415 let __receiver = <AccessoryShopTopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
416 {
417 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
418 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
419 panic!(
420 "unity: virtual slot {}
421 out of range (vtable len {}
422) on the runtime class behind {}
423 (method `{}
424`)",
425 51usize,
426 __vt.len(),
427 <AccessoryShopTopMenu as ::unity::ClassIdentity>::NAME,
428 "BCall",
429 )
430 });
431 let __inner: extern "C" fn(AccessoryShopTopMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
432 ::core::mem::transmute(__vi.method_ptr);
433 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
434 __inner(__receiver, __mi)
435 }
436 }
437 }
438}
439
440#[cfg(feature = "app-accessoryshoptopmenu")]
441impl<__T: IAccessoryShopTopMenu> IAccessoryShopTopMenuMethods for __T {}
442
443#[cfg(feature = "app-accessoryshoptopmenu")]
444impl AccessoryShopTopMenu {
445 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
447 }
448
449 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
451 }
452
453 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
455 }
456
457 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
459 }
460}
461
462#[cfg(feature = "app-accessoryshoptopmenu")]
463impl AccessoryShopTopMenu {
464 #[doc = "Direct (non-virtual) call to `AccessoryShopTopMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
465 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
466 let __mi = Self::get_name_method_info();
467 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
468 __inner(this.into(), ::core::option::Option::None)
469 }
470
471 #[doc = "Direct (non-virtual) call to `AccessoryShopTopMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
472 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
473 let __mi = Self::b_call_method_info();
474 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
475 ::core::mem::transmute(__mi.method_ptr);
476 __inner(this.into(), ::core::option::Option::None)
477 }
478}
479
480#[cfg(feature = "app-accessoryshoptopmenu")]
481impl AccessoryShopTopMenu {
482 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::shoptopmenucontent::ShopTopMenuContent, crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2, crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler)` — overload selector"]
483 pub fn new(
484 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
485 menu_content: crate::app::shoptopmenucontent::ShopTopMenuContent,
486 initial_selected: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_Result2,
487 decide_event_handler: crate::app::accessoryshoptopmenu::AccessoryShopTopMenu_DecideEventHandler,
488 ) -> Self {
489 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
490 panic!(
491 "{}
492::{}
493 failed to instantiate",
494 ::core::stringify!(AccessoryShopTopMenu),
495 ::core::stringify!(new),
496 )
497 });
498 <Self as IAccessoryShopTopMenuMethods>::ctor(this, menu_item_list, menu_content, initial_selected, decide_event_handler);
499 this
500 }
501}
502
503#[cfg(feature = "app-accessoryshoptopmenu")]
504#[doc(hidden)]
505pub mod prelude {
506 pub use super::{
507 AccessoryShopTopMenu, AccessoryShopTopMenu_BuyMenuItem, AccessoryShopTopMenu_ChangeMenuItem, AccessoryShopTopMenu_DecideEventHandler,
508 AccessoryShopTopMenu_Result2, IAccessoryShopTopMenu, IAccessoryShopTopMenuMethods, IAccessoryShopTopMenu_BuyMenuItem,
509 IAccessoryShopTopMenu_BuyMenuItemMethods, IAccessoryShopTopMenu_ChangeMenuItem, IAccessoryShopTopMenu_ChangeMenuItemMethods,
510 IAccessoryShopTopMenu_DecideEventHandler, IAccessoryShopTopMenu_DecideEventHandlerMethods,
511 };
512 #[cfg(feature = "app-basicmenu")]
513 pub use crate::app::basicmenu::IBasicMenuMethods;
514 #[cfg(feature = "app-basicmenuitem")]
515 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
516 #[cfg(feature = "app-procinst")]
517 pub use crate::app::procinst::IProcInstMethods;
518 #[cfg(feature = "system-delegate")]
519 pub use crate::system::delegate::IDelegateMethods;
520 #[cfg(feature = "system-multicastdelegate")]
521 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
522 #[cfg(feature = "system-object")]
523 pub use crate::system::object::IObjectMethods;
524 #[cfg(feature = "system-enum")]
525 pub use crate::system::r#enum::IEnumMethods;
526 #[cfg(feature = "system-valuetype")]
527 pub use crate::system::valuetype::IValueTypeMethods;
528 pub use crate::{
529 app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
530 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject, r#enum::IEnum, valuetype::IValueType},
531 };
532}