1#[cfg(feature = "app-inventoryunititemmenu-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::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/inventoryunititemmenu/InventoryUnitItemMenu.md"))]
17 #[::unity::class(namespace = "App", name = "InventoryUnitItemMenu")]
18 #[parent(crate::app::basicmenu::BasicMenu)]
19 pub struct InventoryUnitItemMenu {
20 #[static_field]
21 #[rename(name = "m_unit")]
22 pub m_unit: crate::app::unit::Unit,
23 #[offset(196)]
24 #[rename(name = "m_firstSelect")]
25 pub m_first_select: i32,
26 #[offset(200)]
27 #[rename(name = "m_secondSelect")]
28 pub m_second_select: i32,
29 }
30}
31
32#[cfg(feature = "app-inventoryunititemmenu-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-inventoryunititemmenu")]
36impl InventoryUnitItemMenu {
37 #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, i32, crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent)` overload"]
38 pub fn create(
39 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
40 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
41 default_select: impl ::core::convert::Into<i32>,
42 menu_content: impl ::core::convert::Into<crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent>,
43 ) -> crate::app::inventoryunititemmenu::InventoryUnitItemMenu {
44 unsafe {
45 ::unity::il2cpp_call!((::unity::module_base()+0x279cca0usize)as*mut u8,crate::app::inventoryunititemmenu::InventoryUnitItemMenu;
46(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(default_select),(crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent)::core::convert::Into::into(menu_content))
47 }
48 }
49
50 #[doc = "`CreateMenuItemList(crate::app::unit::Unit)` overload"]
51 pub fn create_menu_item_list(
52 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
53 ) -> crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> {
54 unsafe {
55 ::unity::il2cpp_call!((::unity::module_base()+0x279cdc0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem> ;
56(crate::app::unit::Unit)::core::convert::Into::into(unit))
57 }
58 }
59
60 #[doc = "`.cctor()` overload"]
61 pub fn cctor() -> () {
62 unsafe {
63 ::unity::il2cpp_call!((::unity::module_base()+0x279e690usize)as*mut u8,();
64 )
65 }
66 }
67}
68
69#[cfg(feature = "app-inventoryunititemmenu")]
70pub trait IInventoryUnitItemMenuMethods: IInventoryUnitItemMenu {
71 #[doc = "`get_m_CommonDisplayIndex()` overload"]
72 fn get_m_common_display_index(self) -> i32 {
73 unsafe {
74 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x279cc80usize)as*mut u8,i32;
76(InventoryUnitItemMenu)__receiver)
77 }
78 }
79 #[doc = "`set_m_CommonDisplayIndex(i32)` overload"]
80 fn set_m_common_display_index(self, value: impl ::core::convert::Into<i32>) -> () {
81 unsafe {
82 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x279cc90usize)as*mut u8,();
84(InventoryUnitItemMenu)__receiver,(i32)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent)` overload"]
88 fn ctor(
89 self,
90 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
91 menu_content: impl ::core::convert::Into<crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent>,
92 ) -> () {
93 unsafe {
94 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x279cfc0usize)as*mut u8,();
96(InventoryUnitItemMenu)__receiver,(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent)::core::convert::Into::into(menu_content))
97 }
98 }
99 #[doc = "`GetUnit()` overload"]
100 fn get_unit(self) -> crate::app::unit::Unit {
101 unsafe {
102 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x279d060usize)as*mut u8,crate::app::unit::Unit;
104(InventoryUnitItemMenu)__receiver)
105 }
106 }
107 #[doc = "`UpdateUnit(crate::app::unit::Unit)` overload"]
108 fn update_unit(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
109 unsafe {
110 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x279b7c0usize)as*mut u8,();
112(InventoryUnitItemMenu)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
113 }
114 }
115 #[doc = "`GetSelectItem()` overload"]
116 fn get_select_item(self) -> crate::app::unititem::UnitItem {
117 unsafe {
118 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x279d1d0usize)as*mut u8,crate::app::unititem::UnitItem;
120(InventoryUnitItemMenu)__receiver)
121 }
122 }
123 #[doc = "`GetMenuItemIndexEquipped()` overload"]
124 fn get_menu_item_index_equipped(self) -> i32 {
125 unsafe {
126 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x279d2d0usize)as*mut u8,i32;
128(InventoryUnitItemMenu)__receiver)
129 }
130 }
131 #[doc = "`ClearSelect()` overload"]
132 fn clear_select(self) -> () {
133 unsafe {
134 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x279d000usize)as*mut u8,();
136(InventoryUnitItemMenu)__receiver)
137 }
138 }
139 #[doc = "`SetSelect(i32)` overload"]
140 fn set_select(self, select_no: impl ::core::convert::Into<i32>) -> () {
141 unsafe {
142 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x279d450usize)as*mut u8,();
144(InventoryUnitItemMenu)__receiver,(i32)::core::convert::Into::into(select_no))
145 }
146 }
147 #[doc = "`GetFirstSelect()` overload"]
148 fn get_first_select(self) -> i32 {
149 unsafe {
150 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x279d470usize)as*mut u8,i32;
152(InventoryUnitItemMenu)__receiver)
153 }
154 }
155 #[doc = "`GetSecondSelect()` overload"]
156 fn get_second_select(self) -> i32 {
157 unsafe {
158 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x279d480usize)as*mut u8,i32;
160(InventoryUnitItemMenu)__receiver)
161 }
162 }
163 #[doc = "`ShowCursor(bool)` overload"]
164 fn show_cursor(self, is_show: impl ::core::convert::Into<bool>) -> () {
165 unsafe {
166 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2798bb0usize)as*mut u8,();
168(InventoryUnitItemMenu)__receiver,(bool)::core::convert::Into::into(is_show))
169 }
170 }
171 #[doc = "`IsShowCursor()` overload"]
172 fn is_show_cursor(self) -> bool {
173 unsafe {
174 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x279d490usize)as*mut u8,bool;
176(InventoryUnitItemMenu)__receiver)
177 }
178 }
179 #[doc = "`EnableInput(bool)` overload"]
180 fn enable_input(self, is_enable: impl ::core::convert::Into<bool>) -> () {
181 unsafe {
182 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x2798c40usize)as*mut u8,();
184(InventoryUnitItemMenu)__receiver,(bool)::core::convert::Into::into(is_enable))
185 }
186 }
187 #[doc = "`IsEnableInput()` overload"]
188 fn is_enable_input(self) -> bool {
189 unsafe {
190 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x279d4b0usize)as*mut u8,bool;
192(InventoryUnitItemMenu)__receiver)
193 }
194 }
195 #[doc = "`SetSuspend(bool)` overload"]
196 fn set_suspend(self, is_active: impl ::core::convert::Into<bool>) -> () {
197 unsafe {
198 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x279c0a0usize)as*mut u8,();
200(InventoryUnitItemMenu)__receiver,(bool)::core::convert::Into::into(is_active))
201 }
202 }
203 #[doc = "`SetFirstSelection(bool)` overload"]
204 fn set_first_selection(self, update_common_display_index: impl ::core::convert::Into<bool>) -> () {
205 unsafe {
206 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x279b930usize)as*mut u8,();
208(InventoryUnitItemMenu)__receiver,(bool)::core::convert::Into::into(update_common_display_index))
209 }
210 }
211 #[doc = "`ResetFirstSelection()` overload"]
212 fn reset_first_selection(self) -> () {
213 unsafe {
214 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x279d560usize)as*mut u8,();
216(InventoryUnitItemMenu)__receiver)
217 }
218 }
219 #[doc = "`SetSelectIndexOnChangeMenu(i32)` overload"]
220 fn set_select_index_on_change_menu(self, common_display_index: impl ::core::convert::Into<i32>) -> () {
221 unsafe {
222 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x2798a70usize)as*mut u8,();
224(InventoryUnitItemMenu)__receiver,(i32)::core::convert::Into::into(common_display_index))
225 }
226 }
227 #[doc = "`HoldSelection()` overload"]
228 fn hold_selection(self) -> () {
229 unsafe {
230 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x279d700usize)as*mut u8,();
232(InventoryUnitItemMenu)__receiver)
233 }
234 }
235 #[doc = "`UpdateMenu(bool)` overload"]
236 fn update_menu(self, is_rebuild: impl ::core::convert::Into<bool>) -> () {
237 unsafe {
238 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x279bbc0usize)as*mut u8,();
240(InventoryUnitItemMenu)__receiver,(bool)::core::convert::Into::into(is_rebuild))
241 }
242 }
243 #[doc = "`GetSelectableItemCount()` overload"]
244 fn get_selectable_item_count(self) -> i32 {
245 unsafe {
246 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x279d4d0usize)as*mut u8,i32;
248(InventoryUnitItemMenu)__receiver)
249 }
250 }
251 #[doc = "`GetName()` overload"]
252 fn get_name(self) -> ::unity::Il2CppString {
253 unsafe {
254 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 {
256 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
257 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
258 panic!(
259 "unity: virtual slot {}
260 out of range (vtable len {}
261) on the runtime class behind {}
262 (method `{}
263`)",
264 30usize,
265 __vt.len(),
266 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
267 "GetName",
268 )
269 });
270 let __inner: extern "C" fn(InventoryUnitItemMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
271 ::core::mem::transmute(__vi.method_ptr);
272 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
273 __inner(__receiver, __mi)
274 }
275 }
276 }
277 #[doc = "`AfterBuild()` overload"]
278 fn after_build(self) -> () {
279 unsafe {
280 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 {
282 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
283 let __vi = *__vt.get(25usize).unwrap_or_else(|| {
284 panic!(
285 "unity: virtual slot {}
286 out of range (vtable len {}
287) on the runtime class behind {}
288 (method `{}
289`)",
290 25usize,
291 __vt.len(),
292 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
293 "AfterBuild",
294 )
295 });
296 let __inner: extern "C" fn(InventoryUnitItemMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
297 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
298 __inner(__receiver, __mi)
299 }
300 }
301 }
302 #[doc = "`ClampMenuItemIndex(i32)` overload"]
303 fn clamp_menu_item_index(self, item_index: impl ::core::convert::Into<i32>) -> i32 {
304 unsafe {
305 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306 {
307 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
308 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
309 panic!(
310 "unity: virtual slot {}
311 out of range (vtable len {}
312) on the runtime class behind {}
313 (method `{}
314`)",
315 31usize,
316 __vt.len(),
317 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
318 "ClampMenuItemIndex",
319 )
320 });
321 let __inner: extern "C" fn(InventoryUnitItemMenu, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
322 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
323 __inner(__receiver, ::core::convert::Into::into(item_index), __mi)
324 }
325 }
326 }
327 #[doc = "`KeyUp(bool)` overload"]
328 fn key_up(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
329 unsafe {
330 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
331 {
332 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
333 let __vi = *__vt.get(40usize).unwrap_or_else(|| {
334 panic!(
335 "unity: virtual slot {}
336 out of range (vtable len {}
337) on the runtime class behind {}
338 (method `{}
339`)",
340 40usize,
341 __vt.len(),
342 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
343 "KeyUp",
344 )
345 });
346 let __inner: extern "C" fn(InventoryUnitItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
347 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
348 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
349 }
350 }
351 }
352 #[doc = "`KeyDown(bool)` overload"]
353 fn key_down(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
354 unsafe {
355 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356 {
357 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
358 let __vi = *__vt.get(41usize).unwrap_or_else(|| {
359 panic!(
360 "unity: virtual slot {}
361 out of range (vtable len {}
362) on the runtime class behind {}
363 (method `{}
364`)",
365 41usize,
366 __vt.len(),
367 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
368 "KeyDown",
369 )
370 });
371 let __inner: extern "C" fn(InventoryUnitItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
372 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
373 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
374 }
375 }
376 }
377 #[doc = "`KeyLeft(bool)` overload"]
378 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
379 unsafe {
380 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381 {
382 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
383 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
384 panic!(
385 "unity: virtual slot {}
386 out of range (vtable len {}
387) on the runtime class behind {}
388 (method `{}
389`)",
390 42usize,
391 __vt.len(),
392 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
393 "KeyLeft",
394 )
395 });
396 let __inner: extern "C" fn(InventoryUnitItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
397 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
398 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
399 }
400 }
401 }
402 #[doc = "`KeyRight(bool)` overload"]
403 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
404 unsafe {
405 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406 {
407 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
408 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
409 panic!(
410 "unity: virtual slot {}
411 out of range (vtable len {}
412) on the runtime class behind {}
413 (method `{}
414`)",
415 43usize,
416 __vt.len(),
417 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
418 "KeyRight",
419 )
420 });
421 let __inner: extern "C" fn(InventoryUnitItemMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
422 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
424 }
425 }
426 }
427 #[doc = "`XCall()` overload"]
428 fn x_call(self) -> crate::app::basicmenu::BasicMenu_Result {
429 unsafe {
430 let __receiver = <InventoryUnitItemMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431 {
432 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
433 let __vi = *__vt.get(52usize).unwrap_or_else(|| {
434 panic!(
435 "unity: virtual slot {}
436 out of range (vtable len {}
437) on the runtime class behind {}
438 (method `{}
439`)",
440 52usize,
441 __vt.len(),
442 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
443 "XCall",
444 )
445 });
446 let __inner: extern "C" fn(InventoryUnitItemMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
447 ::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 = "`CustomCall()` overload"]
454 fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
455 unsafe {
456 let __receiver = <InventoryUnitItemMenu 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(58usize).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 58usize,
467 __vt.len(),
468 <InventoryUnitItemMenu as ::unity::ClassIdentity>::NAME,
469 "CustomCall",
470 )
471 });
472 let __inner: extern "C" fn(InventoryUnitItemMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
473 ::core::mem::transmute(__vi.method_ptr);
474 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
475 __inner(__receiver, __mi)
476 }
477 }
478 }
479}
480
481#[cfg(feature = "app-inventoryunititemmenu")]
482impl<__T: IInventoryUnitItemMenu> IInventoryUnitItemMenuMethods for __T {}
483
484#[cfg(feature = "app-inventoryunititemmenu")]
485impl InventoryUnitItemMenu {
486 pub fn get_m_common_display_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
488 }
489
490 pub fn set_m_common_display_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
492 }
493
494 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
496 }
497
498 pub fn create_menu_item_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
500 }
501
502 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
504 }
505
506 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
508 }
509
510 pub fn update_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
512 }
513
514 pub fn get_select_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
516 }
517
518 pub fn get_menu_item_index_equipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
520 }
521
522 pub fn clear_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
523 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
524 }
525
526 pub fn set_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
527 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
528 }
529
530 pub fn get_first_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
531 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
532 }
533
534 pub fn get_second_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
535 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
536 }
537
538 pub fn show_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
539 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
540 }
541
542 pub fn is_show_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
543 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
544 }
545
546 pub fn enable_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
547 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
548 }
549
550 pub fn is_enable_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
551 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
552 }
553
554 pub fn set_suspend_method_info() -> &'static ::unity::il2cpp::MethodInfo {
555 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
556 }
557
558 pub fn set_first_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
559 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
560 }
561
562 pub fn reset_first_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
563 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
564 }
565
566 pub fn set_select_index_on_change_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
567 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
568 }
569
570 pub fn hold_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
571 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
572 }
573
574 pub fn update_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
576 }
577
578 pub fn get_selectable_item_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
580 }
581
582 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
584 }
585
586 pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
588 }
589
590 pub fn clamp_menu_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
591 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
592 }
593
594 pub fn key_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
596 }
597
598 pub fn key_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
600 }
601
602 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
604 }
605
606 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
608 }
609
610 pub fn x_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
612 }
613
614 pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
616 }
617
618 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
620 }
621}
622
623#[cfg(feature = "app-inventoryunititemmenu")]
624impl InventoryUnitItemMenu {
625 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
626 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
627 let __mi = Self::get_name_method_info();
628 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
629 __inner(this.into(), ::core::option::Option::None)
630 }
631
632 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
633 pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
634 let __mi = Self::after_build_method_info();
635 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
636 __inner(this.into(), ::core::option::Option::None)
637 }
638
639 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `ClampMenuItemIndex`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
640 pub unsafe fn clamp_menu_item_index(this: impl ::core::convert::Into<::unity::IlInstance>, item_index: i32) -> i32 {
641 let __mi = Self::clamp_menu_item_index_method_info();
642 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
643 __inner(this.into(), item_index, ::core::option::Option::None)
644 }
645
646 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `KeyUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
647 pub unsafe fn key_up(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
648 let __mi = Self::key_up_method_info();
649 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
650 __inner(this.into(), is_trigger, ::core::option::Option::None)
651 }
652
653 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `KeyDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
654 pub unsafe fn key_down(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
655 let __mi = Self::key_down_method_info();
656 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
657 __inner(this.into(), is_trigger, ::core::option::Option::None)
658 }
659
660 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
661 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
662 let __mi = Self::key_left_method_info();
663 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
664 __inner(this.into(), is_trigger, ::core::option::Option::None)
665 }
666
667 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
668 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
669 let __mi = Self::key_right_method_info();
670 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
671 __inner(this.into(), is_trigger, ::core::option::Option::None)
672 }
673
674 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `XCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
675 pub unsafe fn x_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
676 let __mi = Self::x_call_method_info();
677 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
678 ::core::mem::transmute(__mi.method_ptr);
679 __inner(this.into(), ::core::option::Option::None)
680 }
681
682 #[doc = "Direct (non-virtual) call to `InventoryUnitItemMenu`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
683 pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
684 let __mi = Self::custom_call_method_info();
685 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
686 ::core::mem::transmute(__mi.method_ptr);
687 __inner(this.into(), ::core::option::Option::None)
688 }
689}
690
691#[cfg(feature = "app-inventoryunititemmenu")]
692impl InventoryUnitItemMenu {
693 #[doc = "`.ctor(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent)` — overload selector"]
694 pub fn new(
695 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
696 menu_content: crate::app::inventoryunititemmenucontent::InventoryUnitItemMenuContent,
697 ) -> Self {
698 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
699 panic!(
700 "{}
701::{}
702 failed to instantiate",
703 ::core::stringify!(InventoryUnitItemMenu),
704 ::core::stringify!(new),
705 )
706 });
707 <Self as IInventoryUnitItemMenuMethods>::ctor(this, menu_item_list, menu_content);
708 this
709 }
710}
711
712#[cfg(feature = "app-inventoryunititemmenu")]
713#[doc(hidden)]
714pub mod prelude {
715 pub use super::{IInventoryUnitItemMenu, IInventoryUnitItemMenuMethods, InventoryUnitItemMenu};
716 #[cfg(feature = "app-basicmenu")]
717 pub use crate::app::basicmenu::IBasicMenuMethods;
718 #[cfg(feature = "app-procinst")]
719 pub use crate::app::procinst::IProcInstMethods;
720 #[cfg(feature = "system-object")]
721 pub use crate::system::object::IObjectMethods;
722 pub use crate::{
723 app::{basicmenu::IBasicMenu, procinst::IProcInst},
724 system::object::IObject,
725 };
726}