Skip to main content

engage/generated/app/
trooplistmenuitemcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-trooplistmenuitemcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitemcontent::{BasicMenuItemContent, IBasicMenuItemContent},
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/trooplistmenuitemcontent/TroopListMenuItemContent.md"))]
20    #[::unity::class(namespace = "App", name = "TroopListMenuItemContent")]
21    #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22    pub struct TroopListMenuItemContent {
23        #[offset(72)]
24        #[rename(name = "m_name")]
25        pub m_name: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
26        #[offset(80)]
27        #[rename(name = "m_face")]
28        pub m_face: crate::unity_engine::ui::image::Image,
29        #[offset(88)]
30        #[rename(name = "m_faceBase")]
31        pub m_face_base: crate::unity_engine::ui::image::Image,
32        #[offset(96)]
33        #[rename(name = "m_statusBase")]
34        pub m_status_base: crate::unity_engine::ui::image::Image,
35        #[offset(104)]
36        #[rename(name = "m_faceFrame")]
37        pub m_face_frame: crate::unity_engine::ui::image::Image,
38        #[offset(112)]
39        #[rename(name = "m_statusFrame")]
40        pub m_status_frame: crate::unity_engine::ui::image::Image,
41        #[offset(120)]
42        #[rename(name = "m_symbolIcon")]
43        pub m_symbol_icon: crate::unity_engine::gameobject::GameObject,
44        #[offset(128)]
45        #[rename(name = "m_checkIcon")]
46        pub m_check_icon: crate::unity_engine::gameobject::GameObject,
47        #[offset(136)]
48        #[rename(name = "m_relayOthersIcon")]
49        pub m_relay_others_icon: crate::unity_engine::gameobject::GameObject,
50        #[offset(144)]
51        #[rename(name = "m_job")]
52        pub m_job: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
53        #[offset(152)]
54        #[rename(name = "m_level")]
55        pub m_level: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
56        #[offset(160)]
57        #[rename(name = "m_exp")]
58        pub m_exp: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
59        #[offset(168)]
60        #[rename(name = "m_expSlash")]
61        pub m_exp_slash: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
62        #[offset(176)]
63        #[rename(name = "m_expMax")]
64        pub m_exp_max: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
65        #[offset(184)]
66        #[rename(name = "m_hp")]
67        pub m_hp: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
68        #[offset(192)]
69        #[rename(name = "m_hpSlash")]
70        pub m_hp_slash: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
71        #[offset(200)]
72        #[rename(name = "m_hpMax")]
73        pub m_hp_max: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
74        #[offset(208)]
75        #[rename(name = "m_phys")]
76        pub m_phys: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
77        #[offset(216)]
78        #[rename(name = "m_str")]
79        pub m_str: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
80        #[offset(224)]
81        #[rename(name = "m_magic")]
82        pub m_magic: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
83        #[offset(232)]
84        #[rename(name = "m_tech")]
85        pub m_tech: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
86        #[offset(240)]
87        #[rename(name = "m_quick")]
88        pub m_quick: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
89        #[offset(248)]
90        #[rename(name = "m_luck")]
91        pub m_luck: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
92        #[offset(256)]
93        #[rename(name = "m_def")]
94        pub m_def: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
95        #[offset(264)]
96        #[rename(name = "m_mdef")]
97        pub m_mdef: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
98        #[offset(272)]
99        #[rename(name = "m_atk")]
100        pub m_atk: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
101        #[offset(280)]
102        #[rename(name = "m_hit")]
103        pub m_hit: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
104        #[offset(288)]
105        #[rename(name = "m_crit")]
106        pub m_crit: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
107        #[offset(296)]
108        #[rename(name = "m_avoid")]
109        pub m_avoid: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
110        #[offset(304)]
111        #[rename(name = "m_critAvoid")]
112        pub m_crit_avoid: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
113        #[offset(312)]
114        #[rename(name = "m_move")]
115        pub m_move: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
116        #[offset(320)]
117        #[rename(name = "m_pageRoot")]
118        pub m_page_root: ::unity::Array<crate::unity_engine::gameobject::GameObject>,
119    }
120}
121
122#[cfg(feature = "app-trooplistmenuitemcontent-types")]
123pub use __types::*;
124
125#[cfg(feature = "app-trooplistmenuitemcontent")]
126pub trait ITroopListMenuItemContentMethods: ITroopListMenuItemContent {
127    #[doc = "`GetMenuItemUnit()` overload"]
128    fn get_menu_item_unit(self) -> crate::app::unit::Unit {
129        unsafe {
130            let __receiver =
131                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            ::unity::il2cpp_call!((::unity::module_base()+0x22a9100usize)as*mut u8,crate::app::unit::Unit;
133(TroopListMenuItemContent)__receiver)
134        }
135    }
136    #[doc = "`GetMenuItemTmpUnit()` overload"]
137    fn get_menu_item_tmp_unit(self) -> crate::app::unit::Unit {
138        unsafe {
139            let __receiver =
140                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x22a9180usize)as*mut u8,crate::app::unit::Unit;
142(TroopListMenuItemContent)__receiver)
143        }
144    }
145    #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
146    fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
147        unsafe {
148            let __receiver =
149                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            {
151                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
152                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
153                    panic!(
154                        "unity: virtual slot {}
155 out of range (vtable len {}
156) on the runtime class behind {}
157 (method `{}
158`)",
159                        8usize,
160                        __vt.len(),
161                        <TroopListMenuItemContent as ::unity::ClassIdentity>::NAME,
162                        "Build",
163                    )
164                });
165                let __inner: extern "C" fn(TroopListMenuItemContent, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
166                    ::core::mem::transmute(__vi.method_ptr);
167                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
168                __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
169            }
170        }
171    }
172    #[doc = "`UpdateTextColor()` overload"]
173    fn update_text_color(self) -> () {
174        unsafe {
175            let __receiver =
176                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            {
178                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
179                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
180                    panic!(
181                        "unity: virtual slot {}
182 out of range (vtable len {}
183) on the runtime class behind {}
184 (method `{}
185`)",
186                        7usize,
187                        __vt.len(),
188                        <TroopListMenuItemContent as ::unity::ClassIdentity>::NAME,
189                        "UpdateTextColor",
190                    )
191                });
192                let __inner: extern "C" fn(TroopListMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
193                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
194                __inner(__receiver, __mi)
195            }
196        }
197    }
198    #[doc = "`UpdateSortieStatus()` overload"]
199    fn update_sortie_status(self) -> () {
200        unsafe {
201            let __receiver =
202                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203            ::unity::il2cpp_call!((::unity::module_base()+0x22aada0usize)as*mut u8,();
204(TroopListMenuItemContent)__receiver)
205        }
206    }
207    #[doc = "`SetCheckMark()` overload"]
208    fn set_check_mark(self) -> () {
209        unsafe {
210            let __receiver =
211                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            ::unity::il2cpp_call!((::unity::module_base()+0x22ab950usize)as*mut u8,();
213(TroopListMenuItemContent)__receiver)
214        }
215    }
216    #[doc = "`SetPage(i32)` overload"]
217    fn set_page(self, page: impl ::core::convert::Into<i32>) -> () {
218        unsafe {
219            let __receiver =
220                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x22aaf50usize)as*mut u8,();
222(TroopListMenuItemContent)__receiver,(i32)::core::convert::Into::into(page))
223        }
224    }
225    #[doc = "`.ctor()` overload"]
226    fn ctor(self) -> () {
227        unsafe {
228            let __receiver =
229                <TroopListMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x22aba90usize)as*mut u8,();
231(TroopListMenuItemContent)__receiver)
232        }
233    }
234}
235
236#[cfg(feature = "app-trooplistmenuitemcontent")]
237impl<__T: ITroopListMenuItemContent> ITroopListMenuItemContentMethods for __T {}
238
239#[cfg(feature = "app-trooplistmenuitemcontent")]
240impl TroopListMenuItemContent {
241    pub fn get_menu_item_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
243    }
244
245    pub fn get_menu_item_tmp_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
247    }
248
249    pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
251    }
252
253    pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
255    }
256
257    pub fn update_sortie_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
259    }
260
261    pub fn set_check_mark_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
263    }
264
265    pub fn set_page_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
267    }
268
269    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
271    }
272}
273
274#[cfg(feature = "app-trooplistmenuitemcontent")]
275impl TroopListMenuItemContent {
276    #[doc = "Direct (non-virtual) call to `TroopListMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
277    pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
278        let __mi = Self::build_method_info();
279        let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
280            ::core::mem::transmute(__mi.method_ptr);
281        __inner(this.into(), menu_item, ::core::option::Option::None)
282    }
283
284    #[doc = "Direct (non-virtual) call to `TroopListMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
285    pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
286        let __mi = Self::update_text_color_method_info();
287        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
288        __inner(this.into(), ::core::option::Option::None)
289    }
290}
291
292#[cfg(feature = "app-trooplistmenuitemcontent")]
293impl TroopListMenuItemContent {
294    #[doc = "`.ctor()` — no args"]
295    pub fn new() -> Self {
296        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
297            panic!(
298                "{}
299::{}
300 failed to instantiate",
301                ::core::stringify!(TroopListMenuItemContent),
302                ::core::stringify!(new),
303            )
304        });
305        <Self as ITroopListMenuItemContentMethods>::ctor(this);
306        this
307    }
308}
309
310#[cfg(feature = "app-trooplistmenuitemcontent")]
311#[doc(hidden)]
312pub mod prelude {
313    pub use super::{ITroopListMenuItemContent, ITroopListMenuItemContentMethods, TroopListMenuItemContent};
314    #[cfg(feature = "app-basicmenuitemcontent")]
315    pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
316    #[cfg(feature = "system-object")]
317    pub use crate::system::object::IObjectMethods;
318    #[cfg(feature = "unity_engine-behaviour")]
319    pub use crate::unity_engine::behaviour::IBehaviourMethods;
320    #[cfg(feature = "unity_engine-component")]
321    pub use crate::unity_engine::component::IComponentMethods;
322    #[cfg(feature = "unity_engine-monobehaviour")]
323    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
324    #[cfg(feature = "unity_engine-object_2")]
325    pub use crate::unity_engine::object_2::IObject_2Methods;
326    pub use crate::{
327        app::basicmenuitemcontent::IBasicMenuItemContent,
328        system::object::IObject,
329        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
330    };
331}