Skip to main content

engage/generated/app/
trooplistmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-trooplistmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/trooplistmenucontent/TroopListMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "TroopListMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct TroopListMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_rootObject")]
25        pub m_root_object: crate::unity_engine::gameobject::GameObject,
26    }
27}
28
29#[cfg(feature = "app-trooplistmenucontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-trooplistmenucontent")]
33pub trait ITroopListMenuContentMethods: ITroopListMenuContent {
34    #[doc = "`IsClosed()` overload"]
35    fn is_closed(self) -> bool {
36        unsafe {
37            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        8usize,
48                        __vt.len(),
49                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
50                        "IsClosed",
51                    )
52                });
53                let __inner: extern "C" fn(TroopListMenuContent, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
54                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
55                __inner(__receiver, __mi)
56            }
57        }
58    }
59    #[doc = "`AfterBuild()` overload"]
60    fn after_build(self) -> () {
61        unsafe {
62            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            {
64                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
65                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
66                    panic!(
67                        "unity: virtual slot {}
68 out of range (vtable len {}
69) on the runtime class behind {}
70 (method `{}
71`)",
72                        27usize,
73                        __vt.len(),
74                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
75                        "AfterBuild",
76                    )
77                });
78                let __inner: extern "C" fn(TroopListMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
79                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80                __inner(__receiver, __mi)
81            }
82        }
83    }
84    #[doc = "`GetMenuItemContentMax()` overload"]
85    fn get_menu_item_content_max(self) -> i32 {
86        unsafe {
87            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            {
89                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
90                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
91                    panic!(
92                        "unity: virtual slot {}
93 out of range (vtable len {}
94) on the runtime class behind {}
95 (method `{}
96`)",
97                        4usize,
98                        __vt.len(),
99                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
100                        "GetMenuItemContentMax",
101                    )
102                });
103                let __inner: extern "C" fn(TroopListMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
104                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105                __inner(__receiver, __mi)
106            }
107        }
108    }
109    #[doc = "`CalcW()` overload"]
110    fn calc_w(self) -> f32 {
111        unsafe {
112            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113            {
114                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
115                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
116                    panic!(
117                        "unity: virtual slot {}
118 out of range (vtable len {}
119) on the runtime class behind {}
120 (method `{}
121`)",
122                        21usize,
123                        __vt.len(),
124                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
125                        "CalcW",
126                    )
127                });
128                let __inner: extern "C" fn(TroopListMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
129                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
130                __inner(__receiver, __mi)
131            }
132        }
133    }
134    #[doc = "`CalcH()` overload"]
135    fn calc_h(self) -> f32 {
136        unsafe {
137            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            {
139                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
140                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
141                    panic!(
142                        "unity: virtual slot {}
143 out of range (vtable len {}
144) on the runtime class behind {}
145 (method `{}
146`)",
147                        22usize,
148                        __vt.len(),
149                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
150                        "CalcH",
151                    )
152                });
153                let __inner: extern "C" fn(TroopListMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
154                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155                __inner(__receiver, __mi)
156            }
157        }
158    }
159    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
160    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
161        unsafe {
162            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            {
164                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
166                    panic!(
167                        "unity: virtual slot {}
168 out of range (vtable len {}
169) on the runtime class behind {}
170 (method `{}
171`)",
172                        10usize,
173                        __vt.len(),
174                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
175                        "CalcCursorMovedPosY",
176                    )
177                });
178                let __inner: extern "C" fn(TroopListMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
179                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
180                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
181            }
182        }
183    }
184    #[doc = "`SetCursorColor(crate::unity_engine::color::Color)` overload"]
185    fn set_cursor_color(self, c: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
186        unsafe {
187            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188            {
189                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
190                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
191                    panic!(
192                        "unity: virtual slot {}
193 out of range (vtable len {}
194) on the runtime class behind {}
195 (method `{}
196`)",
197                        14usize,
198                        __vt.len(),
199                        <TroopListMenuContent as ::unity::ClassIdentity>::NAME,
200                        "SetCursorColor",
201                    )
202                });
203                let __inner: extern "C" fn(TroopListMenuContent, crate::unity_engine::color::Color, ::unity::OptionalMethod) -> () =
204                    ::core::mem::transmute(__vi.method_ptr);
205                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
206                __inner(__receiver, ::core::convert::Into::into(c), __mi)
207            }
208        }
209    }
210    #[doc = "`.ctor()` overload"]
211    fn ctor(self) -> () {
212        unsafe {
213            let __receiver = <TroopListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            ::unity::il2cpp_call!((::unity::module_base()+0x22a9090usize)as*mut u8,();
215(TroopListMenuContent)__receiver)
216        }
217    }
218}
219
220#[cfg(feature = "app-trooplistmenucontent")]
221impl<__T: ITroopListMenuContent> ITroopListMenuContentMethods for __T {}
222
223#[cfg(feature = "app-trooplistmenucontent")]
224impl TroopListMenuContent {
225    pub fn is_closed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
227    }
228
229    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
231    }
232
233    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
235    }
236
237    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
239    }
240
241    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
243    }
244
245    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
247    }
248
249    pub fn set_cursor_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
251    }
252
253    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
255    }
256}
257
258#[cfg(feature = "app-trooplistmenucontent")]
259impl TroopListMenuContent {
260    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `IsClosed`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
261    pub unsafe fn is_closed(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
262        let __mi = Self::is_closed_method_info();
263        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
264        __inner(this.into(), ::core::option::Option::None)
265    }
266
267    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
268    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
269        let __mi = Self::after_build_method_info();
270        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
271        __inner(this.into(), ::core::option::Option::None)
272    }
273
274    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
275    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
276        let __mi = Self::get_menu_item_content_max_method_info();
277        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
278        __inner(this.into(), ::core::option::Option::None)
279    }
280
281    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
282    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
283        let __mi = Self::calc_w_method_info();
284        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
285        __inner(this.into(), ::core::option::Option::None)
286    }
287
288    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
289    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
290        let __mi = Self::calc_h_method_info();
291        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
292        __inner(this.into(), ::core::option::Option::None)
293    }
294
295    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
296    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
297        let __mi = Self::calc_cursor_moved_pos_y_method_info();
298        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
299        __inner(this.into(), menu_item_index, ::core::option::Option::None)
300    }
301
302    #[doc = "Direct (non-virtual) call to `TroopListMenuContent`'s own `SetCursorColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
303    pub unsafe fn set_cursor_color(this: impl ::core::convert::Into<::unity::IlInstance>, c: crate::unity_engine::color::Color) -> () {
304        let __mi = Self::set_cursor_color_method_info();
305        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::color::Color, ::unity::OptionalMethod) -> () =
306            ::core::mem::transmute(__mi.method_ptr);
307        __inner(this.into(), c, ::core::option::Option::None)
308    }
309}
310
311#[cfg(feature = "app-trooplistmenucontent")]
312impl TroopListMenuContent {
313    #[doc = "`.ctor()` — no args"]
314    pub fn new() -> Self {
315        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
316            panic!(
317                "{}
318::{}
319 failed to instantiate",
320                ::core::stringify!(TroopListMenuContent),
321                ::core::stringify!(new),
322            )
323        });
324        <Self as ITroopListMenuContentMethods>::ctor(this);
325        this
326    }
327}
328
329#[cfg(feature = "app-trooplistmenucontent")]
330#[doc(hidden)]
331pub mod prelude {
332    pub use super::{ITroopListMenuContent, ITroopListMenuContentMethods, TroopListMenuContent};
333    #[cfg(feature = "app-basicmenucontent")]
334    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
335    #[cfg(feature = "system-object")]
336    pub use crate::system::object::IObjectMethods;
337    #[cfg(feature = "unity_engine-behaviour")]
338    pub use crate::unity_engine::behaviour::IBehaviourMethods;
339    #[cfg(feature = "unity_engine-component")]
340    pub use crate::unity_engine::component::IComponentMethods;
341    #[cfg(feature = "unity_engine-monobehaviour")]
342    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
343    #[cfg(feature = "unity_engine-object_2")]
344    pub use crate::unity_engine::object_2::IObject_2Methods;
345    pub use crate::{
346        app::basicmenucontent::IBasicMenuContent,
347        system::object::IObject,
348        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
349    };
350}