engage/generated/app/
unitselectmenuitemcontent.rs1#[cfg(feature = "app-unitselectmenuitemcontent-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/unitselectmenuitemcontent/UnitSelectMenuItemContent.md"))]
20 #[::unity::class(namespace = "App", name = "UnitSelectMenuItemContent")]
21 #[parent(crate::app::basicmenuitemcontent::BasicMenuItemContent)]
22 pub struct UnitSelectMenuItemContent {
23 #[offset(72)]
24 #[rename(name = "m_Setter")]
25 pub m_setter: crate::app::unitmenuitemsetter::UnitMenuItemSetter,
26 #[offset(80)]
27 #[rename(name = "m_relayOthers")]
28 pub m_relay_others: crate::unity_engine::gameobject::GameObject,
29 #[offset(88)]
30 #[rename(name = "m_versusDefense")]
31 pub m_versus_defense: crate::unity_engine::gameobject::GameObject,
32 #[offset(96)]
33 #[rename(name = "m_subFrameType")]
34 pub m_sub_frame_type: crate::app::unitmenuitemsetter::UnitMenuItemSetter_SubFrame,
35 #[offset(100)]
36 #[rename(name = "m_IsSortieBackupUnit")]
37 pub m_is_sortie_backup_unit: bool,
38 }
39}
40
41#[cfg(feature = "app-unitselectmenuitemcontent-types")]
42pub use __types::*;
43
44#[cfg(feature = "app-unitselectmenuitemcontent")]
45pub trait IUnitSelectMenuItemContentMethods: IUnitSelectMenuItemContent {
46 #[doc = "`GetTextMeshProComponent()` overload"]
47 fn get_text_mesh_pro_component(self) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI {
48 unsafe {
49 let __receiver =
50 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 {
52 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54 panic!(
55 "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60 5usize,
61 __vt.len(),
62 <UnitSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
63 "GetTextMeshProComponent",
64 )
65 });
66 let __inner: extern "C" fn(UnitSelectMenuItemContent, ::unity::OptionalMethod) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI =
67 ::core::mem::transmute(__vi.method_ptr);
68 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69 __inner(__receiver, __mi)
70 }
71 }
72 }
73 #[doc = "`SetupObjects()` overload"]
74 fn setup_objects(self) -> () {
75 unsafe {
76 let __receiver =
77 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x1c5fd90usize)as*mut u8,();
79(UnitSelectMenuItemContent)__receiver)
80 }
81 }
82 #[doc = "`GetMenuItemUnit()` overload"]
83 fn get_menu_item_unit(self) -> crate::app::unit::Unit {
84 unsafe {
85 let __receiver =
86 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x1c5ff40usize)as*mut u8,crate::app::unit::Unit;
88(UnitSelectMenuItemContent)__receiver)
89 }
90 }
91 #[doc = "`UpdateTextColor()` overload"]
92 fn update_text_color(self) -> () {
93 unsafe {
94 let __receiver =
95 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 {
97 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
98 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
99 panic!(
100 "unity: virtual slot {}
101 out of range (vtable len {}
102) on the runtime class behind {}
103 (method `{}
104`)",
105 7usize,
106 __vt.len(),
107 <UnitSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
108 "UpdateTextColor",
109 )
110 });
111 let __inner: extern "C" fn(UnitSelectMenuItemContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
112 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
113 __inner(__receiver, __mi)
114 }
115 }
116 }
117 #[doc = "`Build(crate::app::basicmenuitem::BasicMenuItem)` overload"]
118 fn build(self, menu_item: impl ::core::convert::Into<crate::app::basicmenuitem::BasicMenuItem>) -> () {
119 unsafe {
120 let __receiver =
121 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 {
123 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
124 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
125 panic!(
126 "unity: virtual slot {}
127 out of range (vtable len {}
128) on the runtime class behind {}
129 (method `{}
130`)",
131 8usize,
132 __vt.len(),
133 <UnitSelectMenuItemContent as ::unity::ClassIdentity>::NAME,
134 "Build",
135 )
136 });
137 let __inner: extern "C" fn(UnitSelectMenuItemContent, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
138 ::core::mem::transmute(__vi.method_ptr);
139 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140 __inner(__receiver, ::core::convert::Into::into(menu_item), __mi)
141 }
142 }
143 }
144 #[doc = "`UpdateUnitStatus()` overload"]
145 fn update_unit_status(self) -> () {
146 unsafe {
147 let __receiver =
148 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149 ::unity::il2cpp_call!((::unity::module_base()+0x1c60300usize)as*mut u8,();
150(UnitSelectMenuItemContent)__receiver)
151 }
152 }
153 #[doc = "`.ctor()` overload"]
154 fn ctor(self) -> () {
155 unsafe {
156 let __receiver =
157 <UnitSelectMenuItemContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x1c607c0usize)as*mut u8,();
159(UnitSelectMenuItemContent)__receiver)
160 }
161 }
162}
163
164#[cfg(feature = "app-unitselectmenuitemcontent")]
165impl<__T: IUnitSelectMenuItemContent> IUnitSelectMenuItemContentMethods for __T {}
166
167#[cfg(feature = "app-unitselectmenuitemcontent")]
168impl UnitSelectMenuItemContent {
169 pub fn get_text_mesh_pro_component_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
171 }
172
173 pub fn setup_objects_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
175 }
176
177 pub fn get_menu_item_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
179 }
180
181 pub fn update_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
183 }
184
185 pub fn build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
187 }
188
189 pub fn update_unit_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
191 }
192
193 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
195 }
196}
197
198#[cfg(feature = "app-unitselectmenuitemcontent")]
199impl UnitSelectMenuItemContent {
200 #[doc = "Direct (non-virtual) call to `UnitSelectMenuItemContent`'s own `GetTextMeshProComponent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
201 pub unsafe fn get_text_mesh_pro_component(
202 this: impl ::core::convert::Into<::unity::IlInstance>,
203 ) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI {
204 let __mi = Self::get_text_mesh_pro_component_method_info();
205 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::tm_pro::textmeshprougui::TextMeshProUGUI =
206 ::core::mem::transmute(__mi.method_ptr);
207 __inner(this.into(), ::core::option::Option::None)
208 }
209
210 #[doc = "Direct (non-virtual) call to `UnitSelectMenuItemContent`'s own `UpdateTextColor`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
211 pub unsafe fn update_text_color(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
212 let __mi = Self::update_text_color_method_info();
213 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
214 __inner(this.into(), ::core::option::Option::None)
215 }
216
217 #[doc = "Direct (non-virtual) call to `UnitSelectMenuItemContent`'s own `Build`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
218 pub unsafe fn build(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item: crate::app::basicmenuitem::BasicMenuItem) -> () {
219 let __mi = Self::build_method_info();
220 let __inner: extern "C" fn(::unity::IlInstance, crate::app::basicmenuitem::BasicMenuItem, ::unity::OptionalMethod) -> () =
221 ::core::mem::transmute(__mi.method_ptr);
222 __inner(this.into(), menu_item, ::core::option::Option::None)
223 }
224}
225
226#[cfg(feature = "app-unitselectmenuitemcontent")]
227impl UnitSelectMenuItemContent {
228 #[doc = "`.ctor()` — no args"]
229 pub fn new() -> Self {
230 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
231 panic!(
232 "{}
233::{}
234 failed to instantiate",
235 ::core::stringify!(UnitSelectMenuItemContent),
236 ::core::stringify!(new),
237 )
238 });
239 <Self as IUnitSelectMenuItemContentMethods>::ctor(this);
240 this
241 }
242}
243
244#[cfg(feature = "app-unitselectmenuitemcontent")]
245#[doc(hidden)]
246pub mod prelude {
247 pub use super::{IUnitSelectMenuItemContent, IUnitSelectMenuItemContentMethods, UnitSelectMenuItemContent};
248 #[cfg(feature = "app-basicmenuitemcontent")]
249 pub use crate::app::basicmenuitemcontent::IBasicMenuItemContentMethods;
250 #[cfg(feature = "system-object")]
251 pub use crate::system::object::IObjectMethods;
252 #[cfg(feature = "unity_engine-behaviour")]
253 pub use crate::unity_engine::behaviour::IBehaviourMethods;
254 #[cfg(feature = "unity_engine-component")]
255 pub use crate::unity_engine::component::IComponentMethods;
256 #[cfg(feature = "unity_engine-monobehaviour")]
257 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
258 #[cfg(feature = "unity_engine-object_2")]
259 pub use crate::unity_engine::object_2::IObject_2Methods;
260 pub use crate::{
261 app::basicmenuitemcontent::IBasicMenuItemContent,
262 system::object::IObject,
263 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
264 };
265}