1#[cfg(feature = "app-wellitemselectmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicitemmenuitem::{BasicItemMenuItem, IBasicItemMenuItem},
11 basicmenuitem::{BasicMenuItem, IBasicMenuItem},
12 },
13 system::object::{IObject, Object},
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/wellitemselectmenuitem/WellItemSelectMenuItem.md"))]
17 #[::unity::class(namespace = "App", name = "WellItemSelectMenuItem")]
18 #[parent(crate::app::basicitemmenuitem::BasicItemMenuItem)]
19 pub struct WellItemSelectMenuItem {
20 #[offset(100)]
21 #[rename(name = "m_OwnerItemIndex")]
22 pub m_owner_item_index: i32,
23 #[offset(104)]
24 #[rename(name = "m_Unit")]
25 pub m_unit: crate::app::unit::Unit,
26 #[offset(112)]
27 #[rename(name = "m_SortIndex")]
28 pub m_sort_index: i32,
29 #[offset(116)]
30 #[rename(name = "m_IsMarking")]
31 pub m_is_marking: bool,
32 #[offset(120)]
33 #[rename(name = "m_Expected")]
34 pub m_expected: i32,
35 }
36}
37
38#[cfg(feature = "app-wellitemselectmenuitem-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-wellitemselectmenuitem")]
42pub trait IWellItemSelectMenuItemMethods: IWellItemSelectMenuItem {
43 #[doc = "`IsMarking()` overload"]
44 fn is_marking(self) -> bool {
45 unsafe {
46 let __receiver =
47 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x2938350usize)as*mut u8,bool;
49(WellItemSelectMenuItem)__receiver)
50 }
51 }
52 #[doc = "`.ctor(crate::app::unit::Unit, i32, i32)` overload"]
53 fn ctor(
54 self,
55 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
56 owner_item_index: impl ::core::convert::Into<i32>,
57 sort_index: impl ::core::convert::Into<i32>,
58 ) -> () {
59 unsafe {
60 let __receiver =
61 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x2938360usize)as*mut u8,();
63(WellItemSelectMenuItem)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(owner_item_index),(i32)::core::convert::Into::into(sort_index))
64 }
65 }
66 #[doc = "`ACall()` overload"]
67 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
68 unsafe {
69 let __receiver =
70 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 {
72 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
73 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
74 panic!(
75 "unity: virtual slot {}
76 out of range (vtable len {}
77) on the runtime class behind {}
78 (method `{}
79`)",
80 18usize,
81 __vt.len(),
82 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
83 "ACall",
84 )
85 });
86 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
87 ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(__receiver, __mi)
90 }
91 }
92 }
93 #[doc = "`Exchange()` overload"]
94 fn exchange(self) -> () {
95 unsafe {
96 let __receiver =
97 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x29385d0usize)as*mut u8,();
99(WellItemSelectMenuItem)__receiver)
100 }
101 }
102 #[doc = "`CreateDialog()` overload"]
103 fn create_dialog(self) -> () {
104 unsafe {
105 let __receiver =
106 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2938740usize)as*mut u8,();
108(WellItemSelectMenuItem)__receiver)
109 }
110 }
111 #[doc = "`TryPutOff()` overload"]
112 fn try_put_off(self) -> () {
113 unsafe {
114 let __receiver =
115 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2938a60usize)as*mut u8,();
117(WellItemSelectMenuItem)__receiver)
118 }
119 }
120 #[doc = "`BCall()` overload"]
121 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
122 unsafe {
123 let __receiver =
124 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 {
126 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
128 panic!(
129 "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134 19usize,
135 __vt.len(),
136 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
137 "BCall",
138 )
139 });
140 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
141 ::core::mem::transmute(__vi.method_ptr);
142 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
143 __inner(__receiver, __mi)
144 }
145 }
146 }
147 #[doc = "`PlusCall()` overload"]
148 fn plus_call(self) -> crate::app::basicmenu::BasicMenu_Result {
149 unsafe {
150 let __receiver =
151 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
152 {
153 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
154 let __vi = *__vt.get(24usize).unwrap_or_else(|| {
155 panic!(
156 "unity: virtual slot {}
157 out of range (vtable len {}
158) on the runtime class behind {}
159 (method `{}
160`)",
161 24usize,
162 __vt.len(),
163 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
164 "PlusCall",
165 )
166 });
167 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
168 ::core::mem::transmute(__vi.method_ptr);
169 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170 __inner(__receiver, __mi)
171 }
172 }
173 }
174 #[doc = "`CustomCall()` overload"]
175 fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
176 unsafe {
177 let __receiver =
178 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 {
180 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
181 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
182 panic!(
183 "unity: virtual slot {}
184 out of range (vtable len {}
185) on the runtime class behind {}
186 (method `{}
187`)",
188 26usize,
189 __vt.len(),
190 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
191 "CustomCall",
192 )
193 });
194 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
195 ::core::mem::transmute(__vi.method_ptr);
196 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
197 __inner(__receiver, __mi)
198 }
199 }
200 }
201 #[doc = "`OnBuild()` overload"]
202 fn on_build(self) -> () {
203 unsafe {
204 let __receiver =
205 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206 {
207 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
208 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
209 panic!(
210 "unity: virtual slot {}
211 out of range (vtable len {}
212) on the runtime class behind {}
213 (method `{}
214`)",
215 10usize,
216 __vt.len(),
217 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
218 "OnBuild",
219 )
220 });
221 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
222 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
223 __inner(__receiver, __mi)
224 }
225 }
226 }
227 #[doc = "`OnBuildMenuItemContent()` overload"]
228 fn on_build_menu_item_content(self) -> () {
229 unsafe {
230 let __receiver =
231 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 {
233 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
234 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
235 panic!(
236 "unity: virtual slot {}
237 out of range (vtable len {}
238) on the runtime class behind {}
239 (method `{}
240`)",
241 11usize,
242 __vt.len(),
243 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
244 "OnBuildMenuItemContent",
245 )
246 });
247 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
248 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
249 __inner(__receiver, __mi)
250 }
251 }
252 }
253 #[doc = "`OnSelect()` overload"]
254 fn on_select(self) -> () {
255 unsafe {
256 let __receiver =
257 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258 {
259 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
260 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
261 panic!(
262 "unity: virtual slot {}
263 out of range (vtable len {}
264) on the runtime class behind {}
265 (method `{}
266`)",
267 12usize,
268 __vt.len(),
269 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
270 "OnSelect",
271 )
272 });
273 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
274 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
275 __inner(__receiver, __mi)
276 }
277 }
278 }
279 #[doc = "`GetUnit()` overload"]
280 fn get_unit(self) -> crate::app::unit::Unit {
281 unsafe {
282 let __receiver =
283 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 {
285 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
286 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
287 panic!(
288 "unity: virtual slot {}
289 out of range (vtable len {}
290) on the runtime class behind {}
291 (method `{}
292`)",
293 28usize,
294 __vt.len(),
295 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
296 "GetUnit",
297 )
298 });
299 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::unit::Unit =
300 ::core::mem::transmute(__vi.method_ptr);
301 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
302 __inner(__receiver, __mi)
303 }
304 }
305 }
306 #[doc = "`GetUnitItem()` overload"]
307 fn get_unit_item(self) -> crate::app::unititem::UnitItem {
308 unsafe {
309 let __receiver =
310 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311 {
312 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
313 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
314 panic!(
315 "unity: virtual slot {}
316 out of range (vtable len {}
317) on the runtime class behind {}
318 (method `{}
319`)",
320 27usize,
321 __vt.len(),
322 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
323 "GetUnitItem",
324 )
325 });
326 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::unititem::UnitItem =
327 ::core::mem::transmute(__vi.method_ptr);
328 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
329 __inner(__receiver, __mi)
330 }
331 }
332 }
333 #[doc = "`GetSortIndex()` overload"]
334 fn get_sort_index(self) -> i32 {
335 unsafe {
336 let __receiver =
337 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
338 ::unity::il2cpp_call!((::unity::module_base()+0x2939070usize)as*mut u8,i32;
339(WellItemSelectMenuItem)__receiver)
340 }
341 }
342 #[doc = "`OnCursorMoveEnd()` overload"]
343 fn on_cursor_move_end(self) -> () {
344 unsafe {
345 let __receiver =
346 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347 {
348 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
349 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
350 panic!(
351 "unity: virtual slot {}
352 out of range (vtable len {}
353) on the runtime class behind {}
354 (method `{}
355`)",
356 14usize,
357 __vt.len(),
358 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
359 "OnCursorMoveEnd",
360 )
361 });
362 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
363 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
364 __inner(__receiver, __mi)
365 }
366 }
367 }
368 #[doc = "`SetMarking(bool)` overload"]
369 fn set_marking(self, is_marking: impl ::core::convert::Into<bool>) -> () {
370 unsafe {
371 let __receiver =
372 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373 ::unity::il2cpp_call!((::unity::module_base()+0x2938490usize)as*mut u8,();
374(WellItemSelectMenuItem)__receiver,(bool)::core::convert::Into::into(is_marking))
375 }
376 }
377 #[doc = "`SetMarkingCursor(bool)` overload"]
378 fn set_marking_cursor(self, is_marking: impl ::core::convert::Into<bool>) -> () {
379 unsafe {
380 let __receiver =
381 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382 ::unity::il2cpp_call!((::unity::module_base()+0x2938e30usize)as*mut u8,();
383(WellItemSelectMenuItem)__receiver,(bool)::core::convert::Into::into(is_marking))
384 }
385 }
386 #[doc = "`HoldSelection()` overload"]
387 fn hold_selection(self) -> () {
388 unsafe {
389 let __receiver =
390 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
391 ::unity::il2cpp_call!((::unity::module_base()+0x2939160usize)as*mut u8,();
392(WellItemSelectMenuItem)__receiver)
393 }
394 }
395 #[doc = "`BuildAttribute()` overload"]
396 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
397 unsafe {
398 let __receiver =
399 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
400 {
401 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
402 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
403 panic!(
404 "unity: virtual slot {}
405 out of range (vtable len {}
406) on the runtime class behind {}
407 (method `{}
408`)",
409 8usize,
410 __vt.len(),
411 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
412 "BuildAttribute",
413 )
414 });
415 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
416 ::core::mem::transmute(__vi.method_ptr);
417 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
418 __inner(__receiver, __mi)
419 }
420 }
421 }
422 #[doc = "`SetTextColor(crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
423 fn set_text_color(
424 self,
425 active_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
426 inactive_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
427 ) -> () {
428 unsafe {
429 let __receiver =
430 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431 ::unity::il2cpp_call!((::unity::module_base()+0x2939290usize)as*mut u8,();
432(WellItemSelectMenuItem)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(active_color),(crate::unity_engine::color::Color)::core::convert::Into::into(inactive_color))
433 }
434 }
435 #[doc = "`UpdateTextColor(bool)` overload"]
436 fn update_text_color(self, is_active: impl ::core::convert::Into<bool>) -> () {
437 unsafe {
438 let __receiver =
439 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
440 ::unity::il2cpp_call!((::unity::module_base()+0x2939120usize)as*mut u8,();
441(WellItemSelectMenuItem)__receiver,(bool)::core::convert::Into::into(is_active))
442 }
443 }
444 #[doc = "`SetInitialColor()` overload"]
445 fn set_initial_color(self) -> () {
446 unsafe {
447 let __receiver =
448 <WellItemSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449 {
450 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
451 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
452 panic!(
453 "unity: virtual slot {}
454 out of range (vtable len {}
455) on the runtime class behind {}
456 (method `{}
457`)",
458 32usize,
459 __vt.len(),
460 <WellItemSelectMenuItem as ::unity::ClassIdentity>::NAME,
461 "SetInitialColor",
462 )
463 });
464 let __inner: extern "C" fn(WellItemSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
465 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
466 __inner(__receiver, __mi)
467 }
468 }
469 }
470}
471
472#[cfg(feature = "app-wellitemselectmenuitem")]
473impl<__T: IWellItemSelectMenuItem> IWellItemSelectMenuItemMethods for __T {}
474
475#[cfg(feature = "app-wellitemselectmenuitem")]
476impl WellItemSelectMenuItem {
477 pub fn is_marking_method_info() -> &'static ::unity::il2cpp::MethodInfo {
478 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
479 }
480
481 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
482 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
483 }
484
485 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
486 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
487 }
488
489 pub fn exchange_method_info() -> &'static ::unity::il2cpp::MethodInfo {
490 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
491 }
492
493 pub fn create_dialog_method_info() -> &'static ::unity::il2cpp::MethodInfo {
494 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
495 }
496
497 pub fn try_put_off_method_info() -> &'static ::unity::il2cpp::MethodInfo {
498 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
499 }
500
501 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
502 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
503 }
504
505 pub fn plus_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
507 }
508
509 pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
511 }
512
513 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
515 }
516
517 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
519 }
520
521 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
523 }
524
525 pub fn get_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
527 }
528
529 pub fn get_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
531 }
532
533 pub fn get_sort_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
535 }
536
537 pub fn on_cursor_move_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
539 }
540
541 pub fn set_marking_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
543 }
544
545 pub fn set_marking_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
547 }
548
549 pub fn hold_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
551 }
552
553 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
555 }
556
557 pub fn set_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
559 }
560
561 pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
563 }
564
565 pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
567 }
568}
569
570#[cfg(feature = "app-wellitemselectmenuitem")]
571impl WellItemSelectMenuItem {
572 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
573 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
574 let __mi = Self::a_call_method_info();
575 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
576 ::core::mem::transmute(__mi.method_ptr);
577 __inner(this.into(), ::core::option::Option::None)
578 }
579
580 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
581 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
582 let __mi = Self::b_call_method_info();
583 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
584 ::core::mem::transmute(__mi.method_ptr);
585 __inner(this.into(), ::core::option::Option::None)
586 }
587
588 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `PlusCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
589 pub unsafe fn plus_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
590 let __mi = Self::plus_call_method_info();
591 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
592 ::core::mem::transmute(__mi.method_ptr);
593 __inner(this.into(), ::core::option::Option::None)
594 }
595
596 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
597 pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
598 let __mi = Self::custom_call_method_info();
599 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
600 ::core::mem::transmute(__mi.method_ptr);
601 __inner(this.into(), ::core::option::Option::None)
602 }
603
604 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
605 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
606 let __mi = Self::on_build_method_info();
607 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
608 __inner(this.into(), ::core::option::Option::None)
609 }
610
611 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
612 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
613 let __mi = Self::on_build_menu_item_content_method_info();
614 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
615 __inner(this.into(), ::core::option::Option::None)
616 }
617
618 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
619 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
620 let __mi = Self::on_select_method_info();
621 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
622 __inner(this.into(), ::core::option::Option::None)
623 }
624
625 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `GetUnit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
626 pub unsafe fn get_unit(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::unit::Unit {
627 let __mi = Self::get_unit_method_info();
628 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::unit::Unit = ::core::mem::transmute(__mi.method_ptr);
629 __inner(this.into(), ::core::option::Option::None)
630 }
631
632 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `GetUnitItem`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
633 pub unsafe fn get_unit_item(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::unititem::UnitItem {
634 let __mi = Self::get_unit_item_method_info();
635 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::unititem::UnitItem =
636 ::core::mem::transmute(__mi.method_ptr);
637 __inner(this.into(), ::core::option::Option::None)
638 }
639
640 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `OnCursorMoveEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
641 pub unsafe fn on_cursor_move_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
642 let __mi = Self::on_cursor_move_end_method_info();
643 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
644 __inner(this.into(), ::core::option::Option::None)
645 }
646
647 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
648 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
649 let __mi = Self::build_attribute_method_info();
650 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
651 ::core::mem::transmute(__mi.method_ptr);
652 __inner(this.into(), ::core::option::Option::None)
653 }
654
655 #[doc = "Direct (non-virtual) call to `WellItemSelectMenuItem`'s own `SetInitialColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
656 pub unsafe fn set_initial_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
657 let __mi = Self::set_initial_color_method_info();
658 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
659 __inner(this.into(), ::core::option::Option::None)
660 }
661}
662
663#[cfg(feature = "app-wellitemselectmenuitem")]
664impl WellItemSelectMenuItem {
665 #[doc = "`.ctor(crate::app::unit::Unit, i32, i32)` — overload selector"]
666 pub fn new(unit: crate::app::unit::Unit, owner_item_index: i32, sort_index: i32) -> Self {
667 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
668 panic!(
669 "{}
670::{}
671 failed to instantiate",
672 ::core::stringify!(WellItemSelectMenuItem),
673 ::core::stringify!(new),
674 )
675 });
676 <Self as IWellItemSelectMenuItemMethods>::ctor(this, unit, owner_item_index, sort_index);
677 this
678 }
679}
680
681#[cfg(feature = "app-wellitemselectmenuitem")]
682#[doc(hidden)]
683pub mod prelude {
684 pub use super::{IWellItemSelectMenuItem, IWellItemSelectMenuItemMethods, WellItemSelectMenuItem};
685 #[cfg(feature = "app-basicitemmenuitem")]
686 pub use crate::app::basicitemmenuitem::IBasicItemMenuItemMethods;
687 #[cfg(feature = "app-basicmenuitem")]
688 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
689 #[cfg(feature = "system-object")]
690 pub use crate::system::object::IObjectMethods;
691 pub use crate::{
692 app::{basicitemmenuitem::IBasicItemMenuItem, basicmenuitem::IBasicMenuItem},
693 system::object::IObject,
694 };
695}