Skip to main content

engage/generated/app/
inventorypoolitemmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-inventorypoolitemmenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicmenu::{BasicMenu, IBasicMenu},
11            procinst::{IProcInst, ProcInst},
12        },
13        system::{
14            object::{IObject, Object},
15            r#enum::{Enum, IEnum},
16            valuetype::{IValueType, ValueType},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/inventorypoolitemmenu/InventoryPoolItemMenu.md"))]
21    #[::unity::class(namespace = "App", name = "InventoryPoolItemMenu")]
22    #[parent(crate::app::basicmenu::BasicMenu)]
23    pub struct InventoryPoolItemMenu {
24        #[static_field]
25        #[rename(name = "ShowRowNum")]
26        pub show_row_num: i32,
27        #[offset(200)]
28        #[rename(name = "m_SavedFullMenuItemList")]
29        pub m_saved_full_menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
30        #[offset(208)]
31        #[rename(name = "m_SortMenuItemList")]
32        pub m_sort_menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
33        #[offset(216)]
34        #[rename(name = "m_ItemKind")]
35        pub m_item_kind: crate::app::itemdata::ItemData_Kinds,
36        #[offset(224)]
37        #[rename(name = "m_Selects")]
38        pub m_selects: ::unity::Array<crate::app::basicmenuselect::BasicMenuSelect>,
39    }
40
41    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/inventorypoolitemmenu/InventoryPoolItemMenu_Kinds.md"))]
42    #[repr(C)]
43    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
44    pub struct InventoryPoolItemMenu_Kinds {
45        pub value: i32,
46    }
47    impl ::unity::ClassIdentity for InventoryPoolItemMenu_Kinds {
48        const NAME: &'static str = "InventoryPoolItemMenu.Kinds";
49        const NAMESPACE: &'static str = "App";
50
51        fn class() -> ::unity::Class {
52            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
53            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
54        }
55    }
56    impl ::unity::IlType for InventoryPoolItemMenu_Kinds {
57        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
58            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
59        }
60    }
61    impl InventoryPoolItemMenu_Kinds {
62        pub fn none() -> Self {
63            Self { value: 0 }
64        }
65
66        pub fn first() -> Self {
67            Self { value: 1 }
68        }
69
70        pub fn last() -> Self {
71            Self { value: 2 }
72        }
73    }
74}
75
76#[cfg(feature = "app-inventorypoolitemmenu-types")]
77pub use __types::*;
78
79#[cfg(feature = "app-inventorypoolitemmenu")]
80impl InventoryPoolItemMenu {
81    #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent)` overload"]
82    pub fn create(
83        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
84        menu_content: impl ::core::convert::Into<crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent>,
85    ) -> crate::app::inventorypoolitemmenu::InventoryPoolItemMenu {
86        unsafe {
87            ::unity::il2cpp_call!((::unity::module_base()+0x2795880usize)as*mut u8,crate::app::inventorypoolitemmenu::InventoryPoolItemMenu;
88(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent)::core::convert::Into::into(menu_content))
89        }
90    }
91
92    #[doc = "`ComparePoolMenuItem(crate::app::basicmenuitem::BasicMenuItem, crate::app::basicmenuitem::BasicMenuItem)` overload"]
93    pub fn compare_pool_menu_item(
94        x: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>,
95        y: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>,
96    ) -> i32 {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x2799660usize)as*mut u8,i32;
99(crate::app::basicmenuitem::BasicMenuItem)::core::convert::Into::into(x),(crate::app::basicmenuitem::BasicMenuItem)::core::convert::Into::into(y))
100        }
101    }
102
103    #[doc = "`.cctor()` overload"]
104    pub fn cctor() -> () {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x27997a0usize)as*mut u8,();
107            )
108        }
109    }
110}
111
112#[cfg(feature = "app-inventorypoolitemmenu")]
113pub trait IInventoryPoolItemMenuMethods: IInventoryPoolItemMenu {
114    #[doc = "`get_m_CommonDisplayIndex()` overload"]
115    fn get_m_common_display_index(self) -> i32 {
116        unsafe {
117            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x2795860usize)as*mut u8,i32;
119(InventoryPoolItemMenu)__receiver)
120        }
121    }
122    #[doc = "`set_m_CommonDisplayIndex(i32)` overload"]
123    fn set_m_common_display_index(self, value: impl ::core::convert::Into<i32>) -> () {
124        unsafe {
125            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2795870usize)as*mut u8,();
127(InventoryPoolItemMenu)__receiver,(i32)::core::convert::Into::into(value))
128        }
129    }
130    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent)` overload"]
131    fn ctor(
132        self,
133        menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
134        menu_content: impl ::core::convert::Into<crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent>,
135    ) -> () {
136        unsafe {
137            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x2795e40usize)as*mut u8,();
139(InventoryPoolItemMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent)::core::convert::Into::into(menu_content))
140        }
141    }
142    #[doc = "`GetSelectItem()` overload"]
143    fn get_select_item(self) -> crate::app::unititem::UnitItem {
144        unsafe {
145            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            ::unity::il2cpp_call!((::unity::module_base()+0x2796480usize)as*mut u8,crate::app::unititem::UnitItem;
147(InventoryPoolItemMenu)__receiver)
148        }
149    }
150    #[doc = "`SaveSelectItem()` overload"]
151    fn save_select_item(self) -> () {
152        unsafe {
153            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x2796520usize)as*mut u8,();
155(InventoryPoolItemMenu)__receiver)
156        }
157    }
158    #[doc = "`GetSelectUnit()` overload"]
159    fn get_select_unit(self) -> crate::app::unit::Unit {
160        unsafe {
161            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x2796560usize)as*mut u8,crate::app::unit::Unit;
163(InventoryPoolItemMenu)__receiver)
164        }
165    }
166    #[doc = "`UpdateUnit(crate::app::unit::Unit)` overload"]
167    fn update_unit(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
168        unsafe {
169            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x2796600usize)as*mut u8,();
171(InventoryPoolItemMenu)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
172        }
173    }
174    #[doc = "`UpdateUnit(crate::app::unit::Unit, bool)` overload"]
175    fn update_unit_2(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>, is_chara_only_on: impl ::core::convert::Into<bool>) -> () {
176        unsafe {
177            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x2796680usize)as*mut u8,();
179(InventoryPoolItemMenu)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(bool)::core::convert::Into::into(is_chara_only_on))
180        }
181    }
182    #[doc = "`SetItemKind(crate::app::itemdata::ItemData_Kinds, bool)` overload"]
183    fn set_item_kind(
184        self,
185        item_kind: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
186        is_auto_select: impl ::core::convert::Into<bool>,
187    ) -> () {
188        unsafe {
189            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x2796710usize)as*mut u8,();
191(InventoryPoolItemMenu)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kind),(bool)::core::convert::Into::into(is_auto_select))
192        }
193    }
194    #[doc = "`SetFirstKind(bool)` overload"]
195    fn set_first_kind(self, is_auto_select: impl ::core::convert::Into<bool>) -> () {
196        unsafe {
197            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x2796a70usize)as*mut u8,();
199(InventoryPoolItemMenu)__receiver,(bool)::core::convert::Into::into(is_auto_select))
200        }
201    }
202    #[doc = "`SetLastKind(bool)` overload"]
203    fn set_last_kind(self, is_auto_select: impl ::core::convert::Into<bool>) -> () {
204        unsafe {
205            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x2796be0usize)as*mut u8,();
207(InventoryPoolItemMenu)__receiver,(bool)::core::convert::Into::into(is_auto_select))
208        }
209    }
210    #[doc = "`IncKind()` overload"]
211    fn inc_kind(self) -> bool {
212        unsafe {
213            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x2796dd0usize)as*mut u8,bool;
215(InventoryPoolItemMenu)__receiver)
216        }
217    }
218    #[doc = "`DecKind()` overload"]
219    fn dec_kind(self) -> bool {
220        unsafe {
221            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            ::unity::il2cpp_call!((::unity::module_base()+0x2797110usize)as*mut u8,bool;
223(InventoryPoolItemMenu)__receiver)
224        }
225    }
226    #[doc = "`ShowCursor(bool)` overload"]
227    fn show_cursor(self, is_show: impl ::core::convert::Into<bool>) -> () {
228        unsafe {
229            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x2797410usize)as*mut u8,();
231(InventoryPoolItemMenu)__receiver,(bool)::core::convert::Into::into(is_show))
232        }
233    }
234    #[doc = "`IsShowCursor()` overload"]
235    fn is_show_cursor(self) -> bool {
236        unsafe {
237            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            ::unity::il2cpp_call!((::unity::module_base()+0x27974a0usize)as*mut u8,bool;
239(InventoryPoolItemMenu)__receiver)
240        }
241    }
242    #[doc = "`EnableInput(bool)` overload"]
243    fn enable_input(self, is_enable: impl ::core::convert::Into<bool>) -> () {
244        unsafe {
245            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            ::unity::il2cpp_call!((::unity::module_base()+0x27974c0usize)as*mut u8,();
247(InventoryPoolItemMenu)__receiver,(bool)::core::convert::Into::into(is_enable))
248        }
249    }
250    #[doc = "`IsEnableInput()` overload"]
251    fn is_enable_input(self) -> bool {
252        unsafe {
253            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            ::unity::il2cpp_call!((::unity::module_base()+0x2797520usize)as*mut u8,bool;
255(InventoryPoolItemMenu)__receiver)
256        }
257    }
258    #[doc = "`SetSuspend(bool)` overload"]
259    fn set_suspend(self, is_active: impl ::core::convert::Into<bool>) -> () {
260        unsafe {
261            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262            ::unity::il2cpp_call!((::unity::module_base()+0x2797540usize)as*mut u8,();
263(InventoryPoolItemMenu)__receiver,(bool)::core::convert::Into::into(is_active))
264        }
265    }
266    #[doc = "`SetFirstSelection()` overload"]
267    fn set_first_selection(self) -> () {
268        unsafe {
269            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270            ::unity::il2cpp_call!((::unity::module_base()+0x27975a0usize)as*mut u8,();
271(InventoryPoolItemMenu)__receiver)
272        }
273    }
274    #[doc = "`ResetFirstSelection()` overload"]
275    fn reset_first_selection(self) -> () {
276        unsafe {
277            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278            ::unity::il2cpp_call!((::unity::module_base()+0x27979f0usize)as*mut u8,();
279(InventoryPoolItemMenu)__receiver)
280        }
281    }
282    #[doc = "`SetSelectIndexOnChangeMenu(i32, crate::app::inventorypoolitemmenu::InventoryPoolItemMenu_Kinds)` overload"]
283    fn set_select_index_on_change_menu(
284        self,
285        common_display_index: impl ::core::convert::Into<i32>,
286        kind: impl ::core::convert::Into<crate::app::inventorypoolitemmenu::InventoryPoolItemMenu_Kinds>,
287    ) -> () {
288        unsafe {
289            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            ::unity::il2cpp_call!((::unity::module_base()+0x2797ce0usize)as*mut u8,();
291(InventoryPoolItemMenu)__receiver,(i32)::core::convert::Into::into(common_display_index),(crate::app::inventorypoolitemmenu::InventoryPoolItemMenu_Kinds)::core::convert::Into::into(kind))
292        }
293    }
294    #[doc = "`HoldSelection()` overload"]
295    fn hold_selection(self) -> () {
296        unsafe {
297            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x2798070usize)as*mut u8,();
299(InventoryPoolItemMenu)__receiver)
300        }
301    }
302    #[doc = "`UpdateMenu(bool)` overload"]
303    fn update_menu(self, is_auto_select: impl ::core::convert::Into<bool>) -> () {
304        unsafe {
305            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306            ::unity::il2cpp_call!((::unity::module_base()+0x2796780usize)as*mut u8,();
307(InventoryPoolItemMenu)__receiver,(bool)::core::convert::Into::into(is_auto_select))
308        }
309    }
310    #[doc = "`GetSelectableItemCount()` overload"]
311    fn get_selectable_item_count(self) -> i32 {
312        unsafe {
313            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x2797960usize)as*mut u8,i32;
315(InventoryPoolItemMenu)__receiver)
316        }
317    }
318    #[doc = "`GetName()` overload"]
319    fn get_name(self) -> ::unity::Il2CppString {
320        unsafe {
321            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322            {
323                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
324                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
325                    panic!(
326                        "unity: virtual slot {}
327 out of range (vtable len {}
328) on the runtime class behind {}
329 (method `{}
330`)",
331                        30usize,
332                        __vt.len(),
333                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
334                        "GetName",
335                    )
336                });
337                let __inner: extern "C" fn(InventoryPoolItemMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
338                    ::core::mem::transmute(__vi.method_ptr);
339                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
340                __inner(__receiver, __mi)
341            }
342        }
343    }
344    #[doc = "`AfterBuild()` overload"]
345    fn after_build(self) -> () {
346        unsafe {
347            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348            {
349                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
350                let __vi = *__vt.get(25usize).unwrap_or_else(|| {
351                    panic!(
352                        "unity: virtual slot {}
353 out of range (vtable len {}
354) on the runtime class behind {}
355 (method `{}
356`)",
357                        25usize,
358                        __vt.len(),
359                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
360                        "AfterBuild",
361                    )
362                });
363                let __inner: extern "C" fn(InventoryPoolItemMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
364                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
365                __inner(__receiver, __mi)
366            }
367        }
368    }
369    #[doc = "`ClampMenuItemIndex(i32)` overload"]
370    fn clamp_menu_item_index(self, item_index: impl ::core::convert::Into<i32>) -> i32 {
371        unsafe {
372            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373            {
374                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
375                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
376                    panic!(
377                        "unity: virtual slot {}
378 out of range (vtable len {}
379) on the runtime class behind {}
380 (method `{}
381`)",
382                        31usize,
383                        __vt.len(),
384                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
385                        "ClampMenuItemIndex",
386                    )
387                });
388                let __inner: extern "C" fn(InventoryPoolItemMenu, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
389                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
390                __inner(__receiver, ::core::convert::Into::into(item_index), __mi)
391            }
392        }
393    }
394    #[doc = "`KeyUp(bool)` overload"]
395    fn key_up(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
396        unsafe {
397            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
398            {
399                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
400                let __vi = *__vt.get(40usize).unwrap_or_else(|| {
401                    panic!(
402                        "unity: virtual slot {}
403 out of range (vtable len {}
404) on the runtime class behind {}
405 (method `{}
406`)",
407                        40usize,
408                        __vt.len(),
409                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
410                        "KeyUp",
411                    )
412                });
413                let __inner: extern "C" fn(InventoryPoolItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
414                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
415                __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
416            }
417        }
418    }
419    #[doc = "`KeyDown(bool)` overload"]
420    fn key_down(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
421        unsafe {
422            let __receiver = <InventoryPoolItemMenu 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(41usize).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                        41usize,
433                        __vt.len(),
434                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
435                        "KeyDown",
436                    )
437                });
438                let __inner: extern "C" fn(InventoryPoolItemMenu, bool, ::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, ::core::convert::Into::into(is_trigger), __mi)
441            }
442        }
443    }
444    #[doc = "`KeyLeft(bool)` overload"]
445    fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
446        unsafe {
447            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
448            {
449                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
450                let __vi = *__vt.get(42usize).unwrap_or_else(|| {
451                    panic!(
452                        "unity: virtual slot {}
453 out of range (vtable len {}
454) on the runtime class behind {}
455 (method `{}
456`)",
457                        42usize,
458                        __vt.len(),
459                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
460                        "KeyLeft",
461                    )
462                });
463                let __inner: extern "C" fn(InventoryPoolItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
464                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
465                __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
466            }
467        }
468    }
469    #[doc = "`KeyRight(bool)` overload"]
470    fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
471        unsafe {
472            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
473            {
474                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
475                let __vi = *__vt.get(43usize).unwrap_or_else(|| {
476                    panic!(
477                        "unity: virtual slot {}
478 out of range (vtable len {}
479) on the runtime class behind {}
480 (method `{}
481`)",
482                        43usize,
483                        __vt.len(),
484                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
485                        "KeyRight",
486                    )
487                });
488                let __inner: extern "C" fn(InventoryPoolItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
489                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
490                __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
491            }
492        }
493    }
494    #[doc = "`XCall()` overload"]
495    fn x_call(self) -> crate::app::basicmenu::BasicMenu_Result {
496        unsafe {
497            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
498            {
499                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
500                let __vi = *__vt.get(52usize).unwrap_or_else(|| {
501                    panic!(
502                        "unity: virtual slot {}
503 out of range (vtable len {}
504) on the runtime class behind {}
505 (method `{}
506`)",
507                        52usize,
508                        __vt.len(),
509                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
510                        "XCall",
511                    )
512                });
513                let __inner: extern "C" fn(InventoryPoolItemMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
514                    ::core::mem::transmute(__vi.method_ptr);
515                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
516                __inner(__receiver, __mi)
517            }
518        }
519    }
520    #[doc = "`CustomCall()` overload"]
521    fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
522        unsafe {
523            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
524            {
525                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
526                let __vi = *__vt.get(58usize).unwrap_or_else(|| {
527                    panic!(
528                        "unity: virtual slot {}
529 out of range (vtable len {}
530) on the runtime class behind {}
531 (method `{}
532`)",
533                        58usize,
534                        __vt.len(),
535                        <InventoryPoolItemMenu as ::unity::ClassIdentity>::NAME,
536                        "CustomCall",
537                    )
538                });
539                let __inner: extern "C" fn(InventoryPoolItemMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
540                    ::core::mem::transmute(__vi.method_ptr);
541                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
542                __inner(__receiver, __mi)
543            }
544        }
545    }
546    #[doc = "`Sort()` overload"]
547    fn sort(self) -> () {
548        unsafe {
549            let __receiver = <InventoryPoolItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
550            ::unity::il2cpp_call!((::unity::module_base()+0x2795f80usize)as*mut u8,();
551(InventoryPoolItemMenu)__receiver)
552        }
553    }
554}
555
556#[cfg(feature = "app-inventorypoolitemmenu")]
557impl<__T: IInventoryPoolItemMenu> IInventoryPoolItemMenuMethods for __T {}
558
559#[cfg(feature = "app-inventorypoolitemmenu")]
560impl InventoryPoolItemMenu {
561    pub fn get_m_common_display_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
563    }
564
565    pub fn set_m_common_display_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
567    }
568
569    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
571    }
572
573    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
575    }
576
577    pub fn get_select_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
579    }
580
581    pub fn save_select_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
583    }
584
585    pub fn get_select_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
587    }
588
589    pub fn update_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
591    }
592
593    pub fn update_unit_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
595    }
596
597    pub fn set_item_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
599    }
600
601    pub fn set_first_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
603    }
604
605    pub fn set_last_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
607    }
608
609    pub fn inc_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
611    }
612
613    pub fn dec_kind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
615    }
616
617    pub fn show_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
619    }
620
621    pub fn is_show_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
623    }
624
625    pub fn enable_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
627    }
628
629    pub fn is_enable_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
631    }
632
633    pub fn set_suspend_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
635    }
636
637    pub fn set_first_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
639    }
640
641    pub fn reset_first_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
643    }
644
645    pub fn set_select_index_on_change_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
647    }
648
649    pub fn hold_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
651    }
652
653    pub fn update_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
655    }
656
657    pub fn get_selectable_item_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
659    }
660
661    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
662        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
663    }
664
665    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
666        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
667    }
668
669    pub fn clamp_menu_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
670        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
671    }
672
673    pub fn key_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
674        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
675    }
676
677    pub fn key_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
678        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
679    }
680
681    pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
682        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
683    }
684
685    pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
686        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
687    }
688
689    pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
690        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
691    }
692
693    pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
694        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
695    }
696
697    pub fn sort_method_info() -> &'static ::unity::il2cpp::MethodInfo {
698        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
699    }
700
701    pub fn compare_pool_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
702        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
703    }
704
705    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
706        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
707    }
708}
709
710#[cfg(feature = "app-inventorypoolitemmenu")]
711impl InventoryPoolItemMenu {
712    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
713    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
714        let __mi = Self::get_name_method_info();
715        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
716        __inner(this.into(), ::core::option::Option::None)
717    }
718
719    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
720    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
721        let __mi = Self::after_build_method_info();
722        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
723        __inner(this.into(), ::core::option::Option::None)
724    }
725
726    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `ClampMenuItemIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
727    pub unsafe fn clamp_menu_item_index(this: impl ::core::convert::Into<::unity::IlInstance>, item_index: i32) -> i32 {
728        let __mi = Self::clamp_menu_item_index_method_info();
729        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
730        __inner(this.into(), item_index, ::core::option::Option::None)
731    }
732
733    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `KeyUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
734    pub unsafe fn key_up(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
735        let __mi = Self::key_up_method_info();
736        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
737        __inner(this.into(), is_trigger, ::core::option::Option::None)
738    }
739
740    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `KeyDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
741    pub unsafe fn key_down(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
742        let __mi = Self::key_down_method_info();
743        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
744        __inner(this.into(), is_trigger, ::core::option::Option::None)
745    }
746
747    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
748    pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
749        let __mi = Self::key_left_method_info();
750        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
751        __inner(this.into(), is_trigger, ::core::option::Option::None)
752    }
753
754    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
755    pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
756        let __mi = Self::key_right_method_info();
757        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
758        __inner(this.into(), is_trigger, ::core::option::Option::None)
759    }
760
761    #[doc = "Direct (non-virtual) call to `InventoryPoolItemMenu`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
762    pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
763        let __mi = Self::x_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 `InventoryPoolItemMenu`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
770    pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
771        let __mi = Self::custom_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-inventorypoolitemmenu")]
779impl InventoryPoolItemMenu {
780    #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent)` — overload selector"]
781    pub fn new(
782        menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
783        menu_content: crate::app::inventorypoolitemmenucontent::InventoryPoolItemMenuContent,
784    ) -> Self {
785        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
786            panic!(
787                "{}
788::{}
789 failed to instantiate",
790                ::core::stringify!(InventoryPoolItemMenu),
791                ::core::stringify!(new),
792            )
793        });
794        <Self as IInventoryPoolItemMenuMethods>::ctor(this, menu_item_list, menu_content);
795        this
796    }
797}
798
799#[cfg(feature = "app-inventorypoolitemmenu")]
800#[doc(hidden)]
801pub mod prelude {
802    pub use super::{IInventoryPoolItemMenu, IInventoryPoolItemMenuMethods, InventoryPoolItemMenu, InventoryPoolItemMenu_Kinds};
803    #[cfg(feature = "app-basicmenu")]
804    pub use crate::app::basicmenu::IBasicMenuMethods;
805    #[cfg(feature = "app-procinst")]
806    pub use crate::app::procinst::IProcInstMethods;
807    #[cfg(feature = "system-object")]
808    pub use crate::system::object::IObjectMethods;
809    #[cfg(feature = "system-enum")]
810    pub use crate::system::r#enum::IEnumMethods;
811    #[cfg(feature = "system-valuetype")]
812    pub use crate::system::valuetype::IValueTypeMethods;
813    pub use crate::{
814        app::{basicmenu::IBasicMenu, procinst::IProcInst},
815        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
816    };
817}