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