1#[cfg(feature = "app-cooking_menu-unitselectmenu_2-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 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking_menu/unitselectmenu_2/UnitSelectMenu_UnitSelectMenuItem.md"))]
22 #[::unity::class(namespace = "App.CookingMenu", name = "UnitSelectMenu.UnitSelectMenuItem")]
23 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
24 pub struct UnitSelectMenu_UnitSelectMenuItem {
25 #[offset(104)]
26 #[rename(name = "m_Unit")]
27 pub m_unit: crate::app::unit::Unit,
28 #[offset(112)]
29 #[rename(name = "m_IsDecided")]
30 pub m_is_decided: bool,
31 #[offset(120)]
32 #[rename(name = "m_SelectEventHander")]
33 pub m_select_event_hander: crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler,
34 }
35
36 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking_menu/unitselectmenu_2/UnitSelectMenu_2.md"))]
37 #[::unity::class(namespace = "App.CookingMenu", name = "UnitSelectMenu")]
38 #[parent(crate::app::basicmenu::BasicMenu)]
39 pub struct UnitSelectMenu_2 {
40 #[static_field]
41 #[rename(name = "s_SelectUnitList")]
42 pub s_select_unit_list: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
43 #[static_field]
44 #[rename(name = "s_Content")]
45 pub s_content: crate::app::cooking_menu::unitselectmenucontent_2::UnitSelectMenuContent_2,
46 #[static_field]
47 #[rename(name = "s_SelectIndex")]
48 pub s_select_index: i32,
49 #[static_field]
50 #[rename(name = "s_ScrollIndex")]
51 pub s_scroll_index: i32,
52 #[static_field]
53 #[rename(name = "s_IsFirstSelect")]
54 pub s_is_first_select: bool,
55 #[offset(200)]
56 #[rename(name = "m_CloseCallback")]
57 pub m_close_callback: crate::system::action::Action,
58 }
59
60 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking_menu/unitselectmenu_2/UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler.md"))]
61 #[::unity::class(namespace = "App.CookingMenu", name = "UnitSelectMenu.UnitSelectMenuItem.SelectEventHandler")]
62 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
63 pub struct UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler {}
64}
65
66#[cfg(feature = "app-cooking_menu-unitselectmenu_2-types")]
67pub use __types::*;
68
69#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
70pub trait IUnitSelectMenu_UnitSelectMenuItemMethods: IUnitSelectMenu_UnitSelectMenuItem {
71 #[doc = "`.ctor(crate::app::unit::Unit, crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler)` overload"]
72 fn ctor(
73 self,
74 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
75 select_event_handler: impl ::core::convert::Into<crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler>,
76 ) -> () {
77 unsafe {
78 let __receiver =
79 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x1b55b60usize)as*mut u8,();
81(UnitSelectMenu_UnitSelectMenuItem)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler)::core::convert::Into::into(select_event_handler))
82 }
83 }
84 #[doc = "`Decide()` overload"]
85 fn decide(self) -> crate::app::unit::Unit {
86 unsafe {
87 let __receiver =
88 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x1b55bb0usize)as*mut u8,crate::app::unit::Unit;
90(UnitSelectMenu_UnitSelectMenuItem)__receiver)
91 }
92 }
93 #[doc = "`Cancel()` overload"]
94 fn cancel(self) -> () {
95 unsafe {
96 let __receiver =
97 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x1b55bc0usize)as*mut u8,();
99(UnitSelectMenu_UnitSelectMenuItem)__receiver)
100 }
101 }
102 #[doc = "`OnSelect()` overload"]
103 fn on_select(self) -> () {
104 unsafe {
105 let __receiver =
106 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 {
108 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
110 panic!(
111 "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116 12usize,
117 __vt.len(),
118 <UnitSelectMenu_UnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
119 "OnSelect",
120 )
121 });
122 let __inner: extern "C" fn(UnitSelectMenu_UnitSelectMenuItem, ::unity::OptionalMethod) -> () =
123 ::core::mem::transmute(__vi.method_ptr);
124 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
125 __inner(__receiver, __mi)
126 }
127 }
128 }
129 #[doc = "`BuildAttribute()` overload"]
130 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
131 unsafe {
132 let __receiver =
133 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 {
135 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
137 panic!(
138 "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143 8usize,
144 __vt.len(),
145 <UnitSelectMenu_UnitSelectMenuItem as ::unity::ClassIdentity>::NAME,
146 "BuildAttribute",
147 )
148 });
149 let __inner: extern "C" fn(
150 UnitSelectMenu_UnitSelectMenuItem,
151 ::unity::OptionalMethod,
152 ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
153 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154 __inner(__receiver, __mi)
155 }
156 }
157 }
158 #[doc = "`GetUnit()` overload"]
159 fn get_unit(self) -> crate::app::unit::Unit {
160 unsafe {
161 let __receiver =
162 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x1b55dd0usize)as*mut u8,crate::app::unit::Unit;
164(UnitSelectMenu_UnitSelectMenuItem)__receiver)
165 }
166 }
167 #[doc = "`IsDecided()` overload"]
168 fn is_decided(self) -> bool {
169 unsafe {
170 let __receiver =
171 <UnitSelectMenu_UnitSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x1b55de0usize)as*mut u8,bool;
173(UnitSelectMenu_UnitSelectMenuItem)__receiver)
174 }
175 }
176}
177
178#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
179impl<__T: IUnitSelectMenu_UnitSelectMenuItem> IUnitSelectMenu_UnitSelectMenuItemMethods for __T {}
180
181#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
182impl UnitSelectMenu_UnitSelectMenuItem {
183 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185 }
186
187 pub fn decide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189 }
190
191 pub fn cancel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
193 }
194
195 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
197 }
198
199 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
201 }
202
203 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
205 }
206
207 pub fn is_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
209 }
210}
211
212#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
213impl UnitSelectMenu_UnitSelectMenuItem {
214 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_UnitSelectMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
216 let __mi = Self::on_select_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
218 __inner(this.into(), ::core::option::Option::None)
219 }
220
221 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_UnitSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
222 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
223 let __mi = Self::build_attribute_method_info();
224 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
225 ::core::mem::transmute(__mi.method_ptr);
226 __inner(this.into(), ::core::option::Option::None)
227 }
228}
229
230#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
231impl UnitSelectMenu_UnitSelectMenuItem {
232 #[doc = "`.ctor(crate::app::unit::Unit, crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler)` — overload selector"]
233 pub fn new(
234 unit: crate::app::unit::Unit,
235 select_event_handler: crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler,
236 ) -> Self {
237 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
238 panic!(
239 "{}
240::{}
241 failed to instantiate",
242 ::core::stringify!(UnitSelectMenu_UnitSelectMenuItem),
243 ::core::stringify!(new),
244 )
245 });
246 <Self as IUnitSelectMenu_UnitSelectMenuItemMethods>::ctor(this, unit, select_event_handler);
247 this
248 }
249}
250
251#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
252impl UnitSelectMenu_2 {
253 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>, crate::app::cooking_menu::dishallmenucontent::DishAllMenuContent, crate::system::action::Action)` overload"]
254 pub fn create_bind(
255 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
256 select_unit_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>>,
257 all_content: impl ::core::convert::Into<crate::app::cooking_menu::dishallmenucontent::DishAllMenuContent>,
258 close_callback: impl ::core::convert::Into<crate::system::action::Action>,
259 ) -> () {
260 unsafe {
261 ::unity::il2cpp_call!((::unity::module_base()+0x1c5e5e0usize)as*mut u8,();
262(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)::core::convert::Into::into(select_unit_list),(crate::app::cooking_menu::dishallmenucontent::DishAllMenuContent)::core::convert::Into::into(all_content),(crate::system::action::Action)::core::convert::Into::into(close_callback))
263 }
264 }
265
266 #[doc = "`OnSelectMenuItem(crate::app::unit::Unit)` overload"]
267 pub fn on_select_menu_item(unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
268 unsafe {
269 ::unity::il2cpp_call!((::unity::module_base()+0x1c5ead0usize)as*mut u8,();
270(crate::app::unit::Unit)::core::convert::Into::into(unit))
271 }
272 }
273
274 #[doc = "`RestoreMenu(crate::system::collections::generic::list_1::List_1<crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem>, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)` overload"]
275 pub fn restore_menu(
276 menu_item_list: impl ::core::convert::Into<
277 crate::system::collections::generic::list_1::List_1<crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem>,
278 >,
279 selected_unit_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>>,
280 ) -> () {
281 unsafe {
282 ::unity::il2cpp_call!((::unity::module_base()+0x1c5e920usize)as*mut u8,();
283(crate::system::collections::generic::list_1::List_1<crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem>)::core::convert::Into::into(menu_item_list),(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)::core::convert::Into::into(selected_unit_list))
284 }
285 }
286
287 #[doc = "`.cctor()` overload"]
288 pub fn cctor() -> () {
289 unsafe {
290 ::unity::il2cpp_call!((::unity::module_base()+0x1c5f670usize)as*mut u8,();
291 )
292 }
293 }
294}
295
296#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
297pub trait IUnitSelectMenu_2Methods: IUnitSelectMenu_2 {
298 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::cooking_menu::unitselectmenucontent_2::UnitSelectMenuContent_2, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>, crate::system::action::Action)` overload"]
299 fn ctor(
300 self,
301 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
302 menu_content: impl ::core::convert::Into<crate::app::cooking_menu::unitselectmenucontent_2::UnitSelectMenuContent_2>,
303 select_unit_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>>,
304 close_callback: impl ::core::convert::Into<crate::system::action::Action>,
305 ) -> () {
306 unsafe {
307 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x1c5e480usize)as*mut u8,();
309(UnitSelectMenu_2)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::cooking_menu::unitselectmenucontent_2::UnitSelectMenuContent_2)::core::convert::Into::into(menu_content),(crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>)::core::convert::Into::into(select_unit_list),(crate::system::action::Action)::core::convert::Into::into(close_callback))
310 }
311 }
312 #[doc = "`GetName()` overload"]
313 fn get_name(self) -> ::unity::Il2CppString {
314 unsafe {
315 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 {
317 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
318 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
319 panic!(
320 "unity: virtual slot {}
321 out of range (vtable len {}
322) on the runtime class behind {}
323 (method `{}
324`)",
325 30usize,
326 __vt.len(),
327 <UnitSelectMenu_2 as ::unity::ClassIdentity>::NAME,
328 "GetName",
329 )
330 });
331 let __inner: extern "C" fn(UnitSelectMenu_2, ::unity::OptionalMethod) -> ::unity::Il2CppString =
332 ::core::mem::transmute(__vi.method_ptr);
333 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
334 __inner(__receiver, __mi)
335 }
336 }
337 }
338 #[doc = "`ACall()` overload"]
339 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
340 unsafe {
341 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342 {
343 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
344 let __vi = *__vt.get(50usize).unwrap_or_else(|| {
345 panic!(
346 "unity: virtual slot {}
347 out of range (vtable len {}
348) on the runtime class behind {}
349 (method `{}
350`)",
351 50usize,
352 __vt.len(),
353 <UnitSelectMenu_2 as ::unity::ClassIdentity>::NAME,
354 "ACall",
355 )
356 });
357 let __inner: extern "C" fn(UnitSelectMenu_2, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
358 ::core::mem::transmute(__vi.method_ptr);
359 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
360 __inner(__receiver, __mi)
361 }
362 }
363 }
364 #[doc = "`NextItem()` overload"]
365 fn next_item(self) -> () {
366 unsafe {
367 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 ::unity::il2cpp_call!((::unity::module_base()+0x1c5eec0usize)as*mut u8,();
369(UnitSelectMenu_2)__receiver)
370 }
371 }
372 #[doc = "`BCall()` overload"]
373 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
374 unsafe {
375 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376 {
377 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
378 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
379 panic!(
380 "unity: virtual slot {}
381 out of range (vtable len {}
382) on the runtime class behind {}
383 (method `{}
384`)",
385 51usize,
386 __vt.len(),
387 <UnitSelectMenu_2 as ::unity::ClassIdentity>::NAME,
388 "BCall",
389 )
390 });
391 let __inner: extern "C" fn(UnitSelectMenu_2, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
392 ::core::mem::transmute(__vi.method_ptr);
393 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
394 __inner(__receiver, __mi)
395 }
396 }
397 }
398 #[doc = "`GetUnitMenuItemCurrent()` overload"]
399 fn get_unit_menu_item_current(self) -> crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem {
400 unsafe {
401 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
402 ::unity::il2cpp_call!((::unity::module_base()+0x1c5f340usize)as*mut u8,crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem;
403(UnitSelectMenu_2)__receiver)
404 }
405 }
406 #[doc = "`GetUnitMenuItem(i32)` overload"]
407 fn get_unit_menu_item(
408 self,
409 index: impl ::core::convert::Into<i32>,
410 ) -> crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem {
411 unsafe {
412 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413 ::unity::il2cpp_call!((::unity::module_base()+0x1c5ee10usize)as*mut u8,crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem;
414(UnitSelectMenu_2)__receiver,(i32)::core::convert::Into::into(index))
415 }
416 }
417 #[doc = "`GetUnitMenuItem(crate::app::unit::Unit)` overload"]
418 fn get_unit_menu_item_2(
419 self,
420 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
421 ) -> crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem {
422 unsafe {
423 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
424 ::unity::il2cpp_call!((::unity::module_base()+0x1c5f180usize)as*mut u8,crate::app::cooking_menu::unitselectmenu_2::UnitSelectMenu_UnitSelectMenuItem;
425(UnitSelectMenu_2)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
426 }
427 }
428 #[doc = "`OnClose()` overload"]
429 fn on_close(self) -> () {
430 unsafe {
431 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432 {
433 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
434 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
435 panic!(
436 "unity: virtual slot {}
437 out of range (vtable len {}
438) on the runtime class behind {}
439 (method `{}
440`)",
441 26usize,
442 __vt.len(),
443 <UnitSelectMenu_2 as ::unity::ClassIdentity>::NAME,
444 "OnClose",
445 )
446 });
447 let __inner: extern "C" fn(UnitSelectMenu_2, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
448 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
449 __inner(__receiver, __mi)
450 }
451 }
452 }
453 #[doc = "`OnDispose()` overload"]
454 fn on_dispose(self) -> () {
455 unsafe {
456 let __receiver = <UnitSelectMenu_2 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457 {
458 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
459 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
460 panic!(
461 "unity: virtual slot {}
462 out of range (vtable len {}
463) on the runtime class behind {}
464 (method `{}
465`)",
466 10usize,
467 __vt.len(),
468 <UnitSelectMenu_2 as ::unity::ClassIdentity>::NAME,
469 "OnDispose",
470 )
471 });
472 let __inner: extern "C" fn(UnitSelectMenu_2, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
473 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
474 __inner(__receiver, __mi)
475 }
476 }
477 }
478}
479
480#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
481impl<__T: IUnitSelectMenu_2> IUnitSelectMenu_2Methods for __T {}
482
483#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
484impl UnitSelectMenu_2 {
485 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
487 }
488
489 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
491 }
492
493 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
495 }
496
497 pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
499 }
500
501 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
503 }
504
505 pub fn next_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
507 }
508
509 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
511 }
512
513 pub fn get_unit_menu_item_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
515 }
516
517 pub fn get_unit_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
519 }
520
521 pub fn get_unit_menu_item_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
523 }
524
525 pub fn on_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
527 }
528
529 pub fn restore_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
531 }
532
533 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
535 }
536
537 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
539 }
540}
541
542#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
543impl UnitSelectMenu_2 {
544 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_2`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
545 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
546 let __mi = Self::get_name_method_info();
547 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
548 __inner(this.into(), ::core::option::Option::None)
549 }
550
551 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_2`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
552 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
553 let __mi = Self::a_call_method_info();
554 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
555 ::core::mem::transmute(__mi.method_ptr);
556 __inner(this.into(), ::core::option::Option::None)
557 }
558
559 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_2`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
560 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
561 let __mi = Self::b_call_method_info();
562 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
563 ::core::mem::transmute(__mi.method_ptr);
564 __inner(this.into(), ::core::option::Option::None)
565 }
566
567 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_2`'s own `OnClose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
568 pub unsafe fn on_close(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
569 let __mi = Self::on_close_method_info();
570 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
571 __inner(this.into(), ::core::option::Option::None)
572 }
573
574 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_2`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
575 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
576 let __mi = Self::on_dispose_method_info();
577 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
578 __inner(this.into(), ::core::option::Option::None)
579 }
580}
581
582#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
583impl UnitSelectMenu_2 {
584 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::cooking_menu::unitselectmenucontent_2::UnitSelectMenuContent_2, crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>, crate::system::action::Action)` — overload selector"]
585 pub fn new(
586 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
587 menu_content: crate::app::cooking_menu::unitselectmenucontent_2::UnitSelectMenuContent_2,
588 select_unit_list: crate::system::collections::generic::list_1::List_1<crate::app::unit::Unit>,
589 close_callback: crate::system::action::Action,
590 ) -> Self {
591 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
592 panic!(
593 "{}
594::{}
595 failed to instantiate",
596 ::core::stringify!(UnitSelectMenu_2),
597 ::core::stringify!(new),
598 )
599 });
600 <Self as IUnitSelectMenu_2Methods>::ctor(this, menu_item_list, menu_content, select_unit_list, close_callback);
601 this
602 }
603}
604
605#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
606pub trait IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandlerMethods: IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandler {
607 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
608 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
609 unsafe {
610 let __receiver = <UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
611 <Self as ::unity::SystemObject>::as_instance(self),
612 );
613 ::unity::il2cpp_call!((::unity::module_base()+0x22f5a50usize)as*mut u8,();
614(UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
615 }
616 }
617 #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
618 fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
619 unsafe {
620 let __receiver = <UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler as ::unity::FromIlInstance>::from_il_instance(
621 <Self as ::unity::SystemObject>::as_instance(self),
622 );
623 {
624 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
625 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
626 panic!(
627 "unity: virtual slot {}
628 out of range (vtable len {}
629) on the runtime class behind {}
630 (method `{}
631`)",
632 13usize,
633 __vt.len(),
634 <UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler as ::unity::ClassIdentity>::NAME,
635 "Invoke",
636 )
637 });
638 let __inner: extern "C" fn(
639 UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler,
640 crate::app::unit::Unit,
641 ::unity::OptionalMethod,
642 ) -> () = ::core::mem::transmute(__vi.method_ptr);
643 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
644 __inner(__receiver, ::core::convert::Into::into(unit), __mi)
645 }
646 }
647 }
648}
649
650#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
651impl<__T: IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandler> IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandlerMethods for __T {}
652
653#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
654impl UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler {
655 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
657 }
658
659 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
661 }
662}
663
664#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
665impl UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler {
666 #[doc = "Direct (non-virtual) call to `UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
667 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
668 let __mi = Self::invoke_method_info();
669 let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
670 ::core::mem::transmute(__mi.method_ptr);
671 __inner(this.into(), unit, ::core::option::Option::None)
672 }
673}
674
675#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
676impl UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler {
677 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
678 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
679 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
680 panic!(
681 "{}
682::{}
683 failed to instantiate",
684 ::core::stringify!(UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler),
685 ::core::stringify!(new),
686 )
687 });
688 <Self as IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandlerMethods>::ctor(this, object, method);
689 this
690 }
691}
692
693#[cfg(feature = "app-cooking_menu-unitselectmenu_2")]
694#[doc(hidden)]
695pub mod prelude {
696 pub use super::{
697 IUnitSelectMenu_2, IUnitSelectMenu_2Methods, IUnitSelectMenu_UnitSelectMenuItem, IUnitSelectMenu_UnitSelectMenuItemMethods,
698 IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandler, IUnitSelectMenu_UnitSelectMenuItem_SelectEventHandlerMethods, UnitSelectMenu_2,
699 UnitSelectMenu_UnitSelectMenuItem, UnitSelectMenu_UnitSelectMenuItem_SelectEventHandler,
700 };
701 #[cfg(feature = "app-basicmenu")]
702 pub use crate::app::basicmenu::IBasicMenuMethods;
703 #[cfg(feature = "app-basicmenuitem")]
704 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
705 #[cfg(feature = "app-procinst")]
706 pub use crate::app::procinst::IProcInstMethods;
707 #[cfg(feature = "system-delegate")]
708 pub use crate::system::delegate::IDelegateMethods;
709 #[cfg(feature = "system-multicastdelegate")]
710 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
711 #[cfg(feature = "system-object")]
712 pub use crate::system::object::IObjectMethods;
713 pub use crate::{
714 app::{basicmenu::IBasicMenu, basicmenuitem::IBasicMenuItem, procinst::IProcInst},
715 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
716 };
717}