1#[cfg(feature = "app-trooplistsortmenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/trooplistsortmenu/TroopListSortMenu_SortOrder.md"))]
23 #[repr(C)]
24 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
25 pub struct TroopListSortMenu_SortOrder {
26 pub value: i32,
27 }
28 impl ::unity::ClassIdentity for TroopListSortMenu_SortOrder {
29 const NAME: &'static str = "TroopListSortMenu.SortOrder";
30 const NAMESPACE: &'static str = "App";
31
32 fn class() -> ::unity::Class {
33 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35 }
36 }
37 impl ::unity::IlType for TroopListSortMenu_SortOrder {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42 impl TroopListSortMenu_SortOrder {
43 pub fn none() -> Self {
44 Self { value: 0 }
45 }
46
47 pub fn low_to_high() -> Self {
48 Self { value: 1 }
49 }
50
51 pub fn high_to_low() -> Self {
52 Self { value: 2 }
53 }
54 }
55
56 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/trooplistsortmenu/TroopListSortMenu_SortType.md"))]
57 #[repr(C)]
58 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
59 pub struct TroopListSortMenu_SortType {
60 pub value: i32,
61 }
62 impl ::unity::ClassIdentity for TroopListSortMenu_SortType {
63 const NAME: &'static str = "TroopListSortMenu.SortType";
64 const NAMESPACE: &'static str = "App";
65
66 fn class() -> ::unity::Class {
67 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
68 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
69 }
70 }
71 impl ::unity::IlType for TroopListSortMenu_SortType {
72 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
73 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
74 }
75 }
76 impl TroopListSortMenu_SortType {
77 pub fn none() -> Self {
78 Self { value: 0 }
79 }
80
81 pub fn class() -> Self {
82 Self { value: 1 }
83 }
84
85 pub fn level() -> Self {
86 Self { value: 2 }
87 }
88
89 pub fn exp() -> Self {
90 Self { value: 3 }
91 }
92
93 pub fn hp() -> Self {
94 Self { value: 4 }
95 }
96
97 pub fn str() -> Self {
98 Self { value: 5 }
99 }
100
101 pub fn mgc() -> Self {
102 Self { value: 6 }
103 }
104
105 pub fn tec() -> Self {
106 Self { value: 7 }
107 }
108
109 pub fn spd() -> Self {
110 Self { value: 8 }
111 }
112
113 pub fn luc() -> Self {
114 Self { value: 9 }
115 }
116
117 pub fn def() -> Self {
118 Self { value: 10 }
119 }
120
121 pub fn m_def() -> Self {
122 Self { value: 11 }
123 }
124
125 pub fn phy() -> Self {
126 Self { value: 12 }
127 }
128
129 pub fn attack() -> Self {
130 Self { value: 13 }
131 }
132
133 pub fn hit() -> Self {
134 Self { value: 14 }
135 }
136
137 pub fn crit() -> Self {
138 Self { value: 15 }
139 }
140
141 pub fn avoid() -> Self {
142 Self { value: 16 }
143 }
144
145 pub fn crit_avoid() -> Self {
146 Self { value: 17 }
147 }
148
149 pub fn r#move() -> Self {
150 Self { value: 18 }
151 }
152 }
153
154 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/trooplistsortmenu/TroopListSortMenu_SortTitle.md"))]
155 #[::unity::class(namespace = "App", name = "TroopListSortMenu.SortTitle")]
156 #[parent(crate::system::object::Object)]
157 pub struct TroopListSortMenu_SortTitle {
158 #[offset(16)]
159 #[rename(name = "m_root")]
160 pub m_root: crate::unity_engine::gameobject::GameObject,
161 #[offset(24)]
162 #[rename(name = "m_page")]
163 pub m_page: i32,
164 #[offset(28)]
165 #[rename(name = "m_sortType")]
166 pub m_sort_type: crate::app::trooplistsortmenu::TroopListSortMenu_SortType,
167 #[offset(32)]
168 #[rename(name = "m_title")]
169 pub m_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
170 #[offset(40)]
171 #[rename(name = "m_arrow")]
172 pub m_arrow: crate::unity_engine::gameobject::GameObject,
173 }
174
175 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/trooplistsortmenu/TroopListSortMenu.md"))]
176 #[::unity::class(namespace = "App", name = "TroopListSortMenu")]
177 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
178 pub struct TroopListSortMenu {
179 #[offset(24)]
180 #[rename(name = "m_pageRoot")]
181 pub m_page_root: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
182 #[offset(32)]
183 #[rename(name = "m_sortTitle")]
184 pub m_sort_title: crate::system::collections::generic::list_1::List_1<crate::app::trooplistsortmenu::TroopListSortMenu_SortTitle>,
185 #[offset(40)]
186 #[rename(name = "m_cursorRoot")]
187 pub m_cursor_root: crate::unity_engine::gameobject::GameObject,
188 #[offset(48)]
189 #[rename(name = "m_pageTitle")]
190 pub m_page_title: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
191 #[offset(56)]
192 #[rename(name = "m_pageIcon")]
193 pub m_page_icon: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
194 #[offset(64)]
195 #[rename(name = "m_upArrow")]
196 pub m_up_arrow: crate::unity_engine::sprite::Sprite,
197 #[offset(72)]
198 #[rename(name = "m_downArrow")]
199 pub m_down_arrow: crate::unity_engine::sprite::Sprite,
200 #[offset(80)]
201 #[rename(name = "m_selectIndex")]
202 pub m_select_index: i32,
203 #[offset(84)]
204 #[rename(name = "m_posX")]
205 pub m_pos_x: f32,
206 #[offset(88)]
207 #[rename(name = "m_posY")]
208 pub m_pos_y: f32,
209 #[offset(92)]
210 #[rename(name = "m_fromX")]
211 pub m_from_x: f32,
212 #[offset(96)]
213 #[rename(name = "m_fromY")]
214 pub m_from_y: f32,
215 #[offset(100)]
216 #[rename(name = "m_toX")]
217 pub m_to_x: f32,
218 #[offset(104)]
219 #[rename(name = "m_toY")]
220 pub m_to_y: f32,
221 #[offset(108)]
222 #[rename(name = "m_sizeW")]
223 pub m_size_w: f32,
224 #[offset(112)]
225 #[rename(name = "m_sizeH")]
226 pub m_size_h: f32,
227 #[offset(116)]
228 #[rename(name = "m_fromW")]
229 pub m_from_w: f32,
230 #[offset(120)]
231 #[rename(name = "m_fromH")]
232 pub m_from_h: f32,
233 #[offset(124)]
234 #[rename(name = "m_toW")]
235 pub m_to_w: f32,
236 #[offset(128)]
237 #[rename(name = "m_toH")]
238 pub m_to_h: f32,
239 #[offset(132)]
240 #[rename(name = "m_moveTick")]
241 pub m_move_tick: f32,
242 #[offset(136)]
243 #[rename(name = "m_moveFrame")]
244 pub m_move_frame: f32,
245 #[static_field]
246 #[rename(name = "m_sortOrder")]
247 pub m_sort_order: crate::app::trooplistsortmenu::TroopListSortMenu_SortOrder,
248 #[static_field]
249 #[rename(name = "m_sortType")]
250 pub m_sort_type: crate::app::trooplistsortmenu::TroopListSortMenu_SortType,
251 }
252}
253
254#[cfg(feature = "app-trooplistsortmenu-types")]
255pub use __types::*;
256
257#[cfg(feature = "app-trooplistsortmenu")]
258pub trait ITroopListSortMenu_SortTitleMethods: ITroopListSortMenu_SortTitle {
259 #[doc = "`Setup(i32, ::unity::Il2CppString, crate::app::trooplistsortmenu::TroopListSortMenu_SortType)` overload"]
260 fn setup(
261 self,
262 page: impl ::core::convert::Into<i32>,
263 title: impl ::core::convert::Into<::unity::Il2CppString>,
264 r#type: impl ::core::convert::Into<crate::app::trooplistsortmenu::TroopListSortMenu_SortType>,
265 ) -> () {
266 unsafe {
267 let __receiver =
268 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x1b415a0usize)as*mut u8,();
270(TroopListSortMenu_SortTitle)__receiver,(i32)::core::convert::Into::into(page),(::unity::Il2CppString)::core::convert::Into::into(title),(crate::app::trooplistsortmenu::TroopListSortMenu_SortType)::core::convert::Into::into(r#type))
271 }
272 }
273 #[doc = "`SetArrow(crate::unity_engine::sprite::Sprite)` overload"]
274 fn set_arrow(self, set_arrow: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>) -> () {
275 unsafe {
276 let __receiver =
277 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278 ::unity::il2cpp_call!((::unity::module_base()+0x1b41760usize)as*mut u8,();
279(TroopListSortMenu_SortTitle)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(set_arrow))
280 }
281 }
282 #[doc = "`SetArrowHide()` overload"]
283 fn set_arrow_hide(self) -> () {
284 unsafe {
285 let __receiver =
286 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287 ::unity::il2cpp_call!((::unity::module_base()+0x1b41810usize)as*mut u8,();
288(TroopListSortMenu_SortTitle)__receiver)
289 }
290 }
291 #[doc = "`GetPage()` overload"]
292 fn get_page(self) -> i32 {
293 unsafe {
294 let __receiver =
295 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
296 ::unity::il2cpp_call!((::unity::module_base()+0x1b41890usize)as*mut u8,i32;
297(TroopListSortMenu_SortTitle)__receiver)
298 }
299 }
300 #[doc = "`GetSortType()` overload"]
301 fn get_sort_type(self) -> crate::app::trooplistsortmenu::TroopListSortMenu_SortType {
302 unsafe {
303 let __receiver =
304 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305 ::unity::il2cpp_call!((::unity::module_base()+0x1b418a0usize)as*mut u8,crate::app::trooplistsortmenu::TroopListSortMenu_SortType;
306(TroopListSortMenu_SortTitle)__receiver)
307 }
308 }
309 #[doc = "`GetCursorRectTransform()` overload"]
310 fn get_cursor_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
311 unsafe {
312 let __receiver =
313 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314 ::unity::il2cpp_call!((::unity::module_base()+0x1b418b0usize)as*mut u8,crate::unity_engine::recttransform::RectTransform;
315(TroopListSortMenu_SortTitle)__receiver)
316 }
317 }
318 #[doc = "`SetTextColor(bool)` overload"]
319 fn set_text_color(self, is_active: impl ::core::convert::Into<bool>) -> () {
320 unsafe {
321 let __receiver =
322 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!((::unity::module_base()+0x1b41910usize)as*mut u8,();
324(TroopListSortMenu_SortTitle)__receiver,(bool)::core::convert::Into::into(is_active))
325 }
326 }
327 #[doc = "`.ctor()` overload"]
328 fn ctor(self) -> () {
329 unsafe {
330 let __receiver =
331 <TroopListSortMenu_SortTitle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 ::unity::il2cpp_call!((::unity::module_base()+0x1b41a40usize)as*mut u8,();
333(TroopListSortMenu_SortTitle)__receiver)
334 }
335 }
336}
337
338#[cfg(feature = "app-trooplistsortmenu")]
339impl<__T: ITroopListSortMenu_SortTitle> ITroopListSortMenu_SortTitleMethods for __T {}
340
341#[cfg(feature = "app-trooplistsortmenu")]
342impl TroopListSortMenu_SortTitle {
343 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
345 }
346
347 pub fn set_arrow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
349 }
350
351 pub fn set_arrow_hide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
353 }
354
355 pub fn get_page_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
357 }
358
359 pub fn get_sort_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
361 }
362
363 pub fn get_cursor_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
365 }
366
367 pub fn set_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
369 }
370
371 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
373 }
374}
375
376#[cfg(feature = "app-trooplistsortmenu")]
377impl TroopListSortMenu_SortTitle {
378 #[doc = "`.ctor()` — no args"]
379 pub fn new() -> Self {
380 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
381 panic!(
382 "{}
383::{}
384 failed to instantiate",
385 ::core::stringify!(TroopListSortMenu_SortTitle),
386 ::core::stringify!(new),
387 )
388 });
389 <Self as ITroopListSortMenu_SortTitleMethods>::ctor(this);
390 this
391 }
392}
393
394#[cfg(feature = "app-trooplistsortmenu")]
395impl TroopListSortMenu {
396 #[doc = "`.cctor()` overload"]
397 pub fn cctor() -> () {
398 unsafe {
399 ::unity::il2cpp_call!((::unity::module_base()+0x22acae0usize)as*mut u8,();
400 )
401 }
402 }
403}
404
405#[cfg(feature = "app-trooplistsortmenu")]
406pub trait ITroopListSortMenuMethods: ITroopListSortMenu {
407 #[doc = "`Init()` overload"]
408 fn init(self) -> () {
409 unsafe {
410 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
411 ::unity::il2cpp_call!((::unity::module_base()+0x22abb60usize)as*mut u8,();
412(TroopListSortMenu)__receiver)
413 }
414 }
415 #[doc = "`SetCursorColor(crate::unity_engine::color::Color)` overload"]
416 fn set_cursor_color(self, c: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
417 unsafe {
418 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
419 ::unity::il2cpp_call!((::unity::module_base()+0x22ac230usize)as*mut u8,();
420(TroopListSortMenu)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(c))
421 }
422 }
423 #[doc = "`Update()` overload"]
424 fn update(self) -> () {
425 unsafe {
426 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
427 ::unity::il2cpp_call!((::unity::module_base()+0x22ac4d0usize)as*mut u8,();
428(TroopListSortMenu)__receiver)
429 }
430 }
431 #[doc = "`GetPageNum()` overload"]
432 fn get_page_num(self) -> i32 {
433 unsafe {
434 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
435 ::unity::il2cpp_call!((::unity::module_base()+0x22ac630usize)as*mut u8,i32;
436(TroopListSortMenu)__receiver)
437 }
438 }
439 #[doc = "`SetPage(i32)` overload"]
440 fn set_page(self, page: impl ::core::convert::Into<i32>) -> () {
441 unsafe {
442 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
443 ::unity::il2cpp_call!((::unity::module_base()+0x22a4070usize)as*mut u8,();
444(TroopListSortMenu)__receiver,(i32)::core::convert::Into::into(page))
445 }
446 }
447 #[doc = "`GetCursorX()` overload"]
448 fn get_cursor_x(self) -> f32 {
449 unsafe {
450 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
451 ::unity::il2cpp_call!((::unity::module_base()+0x22ac7c0usize)as*mut u8,f32;
452(TroopListSortMenu)__receiver)
453 }
454 }
455 #[doc = "`GetCursorY()` overload"]
456 fn get_cursor_y(self) -> f32 {
457 unsafe {
458 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
459 ::unity::il2cpp_call!((::unity::module_base()+0x22ac7d0usize)as*mut u8,f32;
460(TroopListSortMenu)__receiver)
461 }
462 }
463 #[doc = "`SetCursorPos()` overload"]
464 fn set_cursor_pos(self) -> () {
465 unsafe {
466 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467 ::unity::il2cpp_call!((::unity::module_base()+0x22ac680usize)as*mut u8,();
468(TroopListSortMenu)__receiver)
469 }
470 }
471 #[doc = "`SetNextCursorPos()` overload"]
472 fn set_next_cursor_pos(self) -> () {
473 unsafe {
474 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475 ::unity::il2cpp_call!((::unity::module_base()+0x22ac8b0usize)as*mut u8,();
476(TroopListSortMenu)__receiver)
477 }
478 }
479 #[doc = "`IncSelect(bool)` overload"]
480 fn inc_select(self, is_trigger: impl ::core::convert::Into<bool>) -> bool {
481 unsafe {
482 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483 ::unity::il2cpp_call!((::unity::module_base()+0x22a6800usize)as*mut u8,bool;
484(TroopListSortMenu)__receiver,(bool)::core::convert::Into::into(is_trigger))
485 }
486 }
487 #[doc = "`DecSelect(bool)` overload"]
488 fn dec_select(self, is_trigger: impl ::core::convert::Into<bool>) -> bool {
489 unsafe {
490 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491 ::unity::il2cpp_call!((::unity::module_base()+0x22a68d0usize)as*mut u8,bool;
492(TroopListSortMenu)__receiver,(bool)::core::convert::Into::into(is_trigger))
493 }
494 }
495 #[doc = "`GetSelectSortPage()` overload"]
496 fn get_select_sort_page(self) -> i32 {
497 unsafe {
498 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
499 ::unity::il2cpp_call!((::unity::module_base()+0x22a6790usize)as*mut u8,i32;
500(TroopListSortMenu)__receiver)
501 }
502 }
503 #[doc = "`GetSortOrder()` overload"]
504 fn get_sort_order(self) -> crate::app::trooplistsortmenu::TroopListSortMenu_SortOrder {
505 unsafe {
506 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
507 ::unity::il2cpp_call!((::unity::module_base()+0x22ac9f0usize)as*mut u8,crate::app::trooplistsortmenu::TroopListSortMenu_SortOrder;
508(TroopListSortMenu)__receiver)
509 }
510 }
511 #[doc = "`GetSortType()` overload"]
512 fn get_sort_type(self) -> crate::app::trooplistsortmenu::TroopListSortMenu_SortType {
513 unsafe {
514 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
515 ::unity::il2cpp_call!((::unity::module_base()+0x22aca60usize)as*mut u8,crate::app::trooplistsortmenu::TroopListSortMenu_SortType;
516(TroopListSortMenu)__receiver)
517 }
518 }
519 #[doc = "`ChangeSortOrder()` overload"]
520 fn change_sort_order(self) -> () {
521 unsafe {
522 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
523 ::unity::il2cpp_call!((::unity::module_base()+0x22a6520usize)as*mut u8,();
524(TroopListSortMenu)__receiver)
525 }
526 }
527 #[doc = "`ShowCursor(crate::unity_engine::recttransform::RectTransform)` overload"]
528 fn show_cursor(self, start_rect: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>) -> () {
529 unsafe {
530 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
531 ::unity::il2cpp_call!((::unity::module_base()+0x22a48c0usize)as*mut u8,();
532(TroopListSortMenu)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(start_rect))
533 }
534 }
535 #[doc = "`HideCursor()` overload"]
536 fn hide_cursor(self) -> () {
537 unsafe {
538 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
539 ::unity::il2cpp_call!((::unity::module_base()+0x22a4840usize)as*mut u8,();
540(TroopListSortMenu)__receiver)
541 }
542 }
543 #[doc = "`UpdateTextColor()` overload"]
544 fn update_text_color(self) -> () {
545 unsafe {
546 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
547 ::unity::il2cpp_call!((::unity::module_base()+0x22ac7e0usize)as*mut u8,();
548(TroopListSortMenu)__receiver)
549 }
550 }
551 #[doc = "`UpdateSortArrow()` overload"]
552 fn update_sort_arrow(self) -> () {
553 unsafe {
554 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
555 ::unity::il2cpp_call!((::unity::module_base()+0x22a3e30usize)as*mut u8,();
556(TroopListSortMenu)__receiver)
557 }
558 }
559 #[doc = "`.ctor()` overload"]
560 fn ctor(self) -> () {
561 unsafe {
562 let __receiver = <TroopListSortMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
563 ::unity::il2cpp_call!((::unity::module_base()+0x22acad0usize)as*mut u8,();
564(TroopListSortMenu)__receiver)
565 }
566 }
567}
568
569#[cfg(feature = "app-trooplistsortmenu")]
570impl<__T: ITroopListSortMenu> ITroopListSortMenuMethods for __T {}
571
572#[cfg(feature = "app-trooplistsortmenu")]
573impl TroopListSortMenu {
574 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
575 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
576 }
577
578 pub fn set_cursor_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
579 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
580 }
581
582 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
584 }
585
586 pub fn get_page_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
588 }
589
590 pub fn set_page_method_info() -> &'static ::unity::il2cpp::MethodInfo {
591 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
592 }
593
594 pub fn get_cursor_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
596 }
597
598 pub fn get_cursor_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
600 }
601
602 pub fn set_cursor_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
604 }
605
606 pub fn set_next_cursor_pos_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
608 }
609
610 pub fn inc_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
612 }
613
614 pub fn dec_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
616 }
617
618 pub fn get_select_sort_page_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
620 }
621
622 pub fn get_sort_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
623 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
624 }
625
626 pub fn get_sort_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
627 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
628 }
629
630 pub fn change_sort_order_method_info() -> &'static ::unity::il2cpp::MethodInfo {
631 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
632 }
633
634 pub fn show_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
635 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
636 }
637
638 pub fn hide_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
639 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
640 }
641
642 pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
643 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
644 }
645
646 pub fn update_sort_arrow_method_info() -> &'static ::unity::il2cpp::MethodInfo {
647 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
648 }
649
650 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
651 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
652 }
653
654 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
655 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
656 }
657}
658
659#[cfg(feature = "app-trooplistsortmenu")]
660impl TroopListSortMenu {
661 #[doc = "`.ctor()` — no args"]
662 pub fn new() -> Self {
663 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
664 panic!(
665 "{}
666::{}
667 failed to instantiate",
668 ::core::stringify!(TroopListSortMenu),
669 ::core::stringify!(new),
670 )
671 });
672 <Self as ITroopListSortMenuMethods>::ctor(this);
673 this
674 }
675}
676
677#[cfg(feature = "app-trooplistsortmenu")]
678#[doc(hidden)]
679pub mod prelude {
680 pub use super::{
681 ITroopListSortMenu, ITroopListSortMenuMethods, ITroopListSortMenu_SortTitle, ITroopListSortMenu_SortTitleMethods, TroopListSortMenu,
682 TroopListSortMenu_SortOrder, TroopListSortMenu_SortTitle, TroopListSortMenu_SortType,
683 };
684 #[cfg(feature = "system-object")]
685 pub use crate::system::object::IObjectMethods;
686 #[cfg(feature = "system-enum")]
687 pub use crate::system::r#enum::IEnumMethods;
688 #[cfg(feature = "system-valuetype")]
689 pub use crate::system::valuetype::IValueTypeMethods;
690 #[cfg(feature = "unity_engine-behaviour")]
691 pub use crate::unity_engine::behaviour::IBehaviourMethods;
692 #[cfg(feature = "unity_engine-component")]
693 pub use crate::unity_engine::component::IComponentMethods;
694 #[cfg(feature = "unity_engine-monobehaviour")]
695 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
696 #[cfg(feature = "unity_engine-object_2")]
697 pub use crate::unity_engine::object_2::IObject_2Methods;
698 pub use crate::{
699 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
700 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
701 };
702}