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