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