engage/generated/app/
godroomunitselectmenucontent.rs1#[cfg(feature = "app-godroomunitselectmenucontent-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/godroomunitselectmenucontent/GodRoomUnitSelectMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "GodRoomUnitSelectMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct GodRoomUnitSelectMenuContent {
23 #[static_field]
24 #[rename(name = "PrefabPath")]
25 pub prefab_path: ::unity::Il2CppString,
26 #[offset(232)]
27 #[rename(name = "m_statusWindow")]
28 pub m_status_window: crate::app::shopunitselectstatus::ShopUnitSelectStatus,
29 #[offset(240)]
30 #[rename(name = "m_godInfo")]
31 pub m_god_info: crate::app::godroomgodinfosetter::GodRoomGodInfoSetter,
32 #[offset(248)]
33 #[rename(name = "m_GodListActive")]
34 pub m_god_list_active: crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit>,
35 }
36}
37
38#[cfg(feature = "app-godroomunitselectmenucontent-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-godroomunitselectmenucontent")]
42impl GodRoomUnitSelectMenuContent {
43 #[doc = "`LoadPrefabAsync()` overload"]
44 pub fn load_prefab_async() -> () {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x233cf00usize)as*mut u8,();
47 )
48 }
49 }
50
51 #[doc = "`IsLoadingPrefab()` overload"]
52 pub fn is_loading_prefab() -> bool {
53 unsafe {
54 ::unity::il2cpp_call!((::unity::module_base()+0x233cfa0usize)as*mut u8,bool;
55 )
56 }
57 }
58
59 #[doc = "`UnloadPrefab()` overload"]
60 pub fn unload_prefab() -> () {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x233d020usize)as*mut u8,();
63 )
64 }
65 }
66
67 #[doc = "`Create()` overload"]
68 pub fn create() -> crate::app::godroomunitselectmenucontent::GodRoomUnitSelectMenuContent {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x233c2c0usize)as*mut u8,crate::app::godroomunitselectmenucontent::GodRoomUnitSelectMenuContent;
71 )
72 }
73 }
74
75 #[doc = "`Destroy(crate::app::godroomunitselectmenucontent::GodRoomUnitSelectMenuContent)` overload"]
76 pub fn destroy(content: impl ::core::convert::Into<crate::app::godroomunitselectmenucontent::GodRoomUnitSelectMenuContent>) -> () {
77 unsafe {
78 ::unity::il2cpp_call!((::unity::module_base()+0x233d0a0usize)as*mut u8,();
79(crate::app::godroomunitselectmenucontent::GodRoomUnitSelectMenuContent)::core::convert::Into::into(content))
80 }
81 }
82}
83
84#[cfg(feature = "app-godroomunitselectmenucontent")]
85pub trait IGodRoomUnitSelectMenuContentMethods: IGodRoomUnitSelectMenuContent {
86 #[doc = "`GetGodListActive()` overload"]
87 fn get_god_list_active(self) -> crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit> {
88 unsafe {
89 let __receiver =
90 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 ::unity::il2cpp_call!((::unity::module_base()+0x233ce30usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::app::godunit::GodUnit> ;
92(GodRoomUnitSelectMenuContent)__receiver)
93 }
94 }
95 #[doc = "`CalcCursorMovedPosY(i32)` overload"]
96 fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
97 unsafe {
98 let __receiver =
99 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 10usize,
110 __vt.len(),
111 <GodRoomUnitSelectMenuContent as ::unity::ClassIdentity>::NAME,
112 "CalcCursorMovedPosY",
113 )
114 });
115 let __inner: extern "C" fn(GodRoomUnitSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 =
116 ::core::mem::transmute(__vi.method_ptr);
117 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118 __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
119 }
120 }
121 }
122 #[doc = "`CalcW()` overload"]
123 fn calc_w(self) -> f32 {
124 unsafe {
125 let __receiver =
126 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 {
128 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
129 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
130 panic!(
131 "unity: virtual slot {}
132 out of range (vtable len {}
133) on the runtime class behind {}
134 (method `{}
135`)",
136 21usize,
137 __vt.len(),
138 <GodRoomUnitSelectMenuContent as ::unity::ClassIdentity>::NAME,
139 "CalcW",
140 )
141 });
142 let __inner: extern "C" fn(GodRoomUnitSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
143 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
144 __inner(__receiver, __mi)
145 }
146 }
147 }
148 #[doc = "`CalcH()` overload"]
149 fn calc_h(self) -> f32 {
150 unsafe {
151 let __receiver =
152 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 {
154 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
156 panic!(
157 "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162 22usize,
163 __vt.len(),
164 <GodRoomUnitSelectMenuContent as ::unity::ClassIdentity>::NAME,
165 "CalcH",
166 )
167 });
168 let __inner: extern "C" fn(GodRoomUnitSelectMenuContent, ::unity::OptionalMethod) -> f32 = ::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 = "`OpenStatus()` overload"]
175 fn open_status(self) -> () {
176 unsafe {
177 let __receiver =
178 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179 ::unity::il2cpp_call!((::unity::module_base()+0x233c850usize)as*mut u8,();
180(GodRoomUnitSelectMenuContent)__receiver)
181 }
182 }
183 #[doc = "`CloseStatus()` overload"]
184 fn close_status(self) -> () {
185 unsafe {
186 let __receiver =
187 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x233cd30usize)as*mut u8,();
189(GodRoomUnitSelectMenuContent)__receiver)
190 }
191 }
192 #[doc = "`SetUnitStatus(crate::app::unit::Unit)` overload"]
193 fn set_unit_status(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
194 unsafe {
195 let __receiver =
196 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x233cac0usize)as*mut u8,();
198(GodRoomUnitSelectMenuContent)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
199 }
200 }
201 #[doc = "`OnHelp(crate::app::procinst::ProcInst)` overload"]
202 fn on_help(self, parent: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
203 unsafe {
204 let __receiver =
205 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206 ::unity::il2cpp_call!((::unity::module_base()+0x233c6b0usize)as*mut u8,();
207(GodRoomUnitSelectMenuContent)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(parent))
208 }
209 }
210 #[doc = "`UpdateGodInfo(crate::app::unit::Unit)` overload"]
211 fn update_god_info(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
212 unsafe {
213 let __receiver =
214 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215 ::unity::il2cpp_call!((::unity::module_base()+0x233cb60usize)as*mut u8,();
216(GodRoomUnitSelectMenuContent)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit))
217 }
218 }
219 #[doc = "`.ctor()` overload"]
220 fn ctor(self) -> () {
221 unsafe {
222 let __receiver =
223 <GodRoomUnitSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x233d200usize)as*mut u8,();
225(GodRoomUnitSelectMenuContent)__receiver)
226 }
227 }
228}
229
230#[cfg(feature = "app-godroomunitselectmenucontent")]
231impl<__T: IGodRoomUnitSelectMenuContent> IGodRoomUnitSelectMenuContentMethods for __T {}
232
233#[cfg(feature = "app-godroomunitselectmenucontent")]
234impl GodRoomUnitSelectMenuContent {
235 pub fn get_god_list_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
237 }
238
239 pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
241 }
242
243 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
245 }
246
247 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
249 }
250
251 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
253 }
254
255 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
257 }
258
259 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
261 }
262
263 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
265 }
266
267 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
269 }
270
271 pub fn open_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
273 }
274
275 pub fn close_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
277 }
278
279 pub fn set_unit_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
281 }
282
283 pub fn on_help_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
285 }
286
287 pub fn update_god_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
289 }
290
291 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
293 }
294}
295
296#[cfg(feature = "app-godroomunitselectmenucontent")]
297impl GodRoomUnitSelectMenuContent {
298 #[doc = "Direct (non-virtual) call to `GodRoomUnitSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299 pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
300 let __mi = Self::calc_cursor_moved_pos_y_method_info();
301 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
302 __inner(this.into(), menu_item_index, ::core::option::Option::None)
303 }
304
305 #[doc = "Direct (non-virtual) call to `GodRoomUnitSelectMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
306 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
307 let __mi = Self::calc_w_method_info();
308 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
309 __inner(this.into(), ::core::option::Option::None)
310 }
311
312 #[doc = "Direct (non-virtual) call to `GodRoomUnitSelectMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
314 let __mi = Self::calc_h_method_info();
315 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
316 __inner(this.into(), ::core::option::Option::None)
317 }
318}
319
320#[cfg(feature = "app-godroomunitselectmenucontent")]
321impl GodRoomUnitSelectMenuContent {
322 #[doc = "`.ctor()` — no args"]
323 pub fn new() -> Self {
324 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
325 panic!(
326 "{}
327::{}
328 failed to instantiate",
329 ::core::stringify!(GodRoomUnitSelectMenuContent),
330 ::core::stringify!(new),
331 )
332 });
333 <Self as IGodRoomUnitSelectMenuContentMethods>::ctor(this);
334 this
335 }
336}
337
338#[cfg(feature = "app-godroomunitselectmenucontent")]
339#[doc(hidden)]
340pub mod prelude {
341 pub use super::{GodRoomUnitSelectMenuContent, IGodRoomUnitSelectMenuContent, IGodRoomUnitSelectMenuContentMethods};
342 #[cfg(feature = "app-basicmenucontent")]
343 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
344 #[cfg(feature = "system-object")]
345 pub use crate::system::object::IObjectMethods;
346 #[cfg(feature = "unity_engine-behaviour")]
347 pub use crate::unity_engine::behaviour::IBehaviourMethods;
348 #[cfg(feature = "unity_engine-component")]
349 pub use crate::unity_engine::component::IComponentMethods;
350 #[cfg(feature = "unity_engine-monobehaviour")]
351 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
352 #[cfg(feature = "unity_engine-object_2")]
353 pub use crate::unity_engine::object_2::IObject_2Methods;
354 pub use crate::{
355 app::basicmenucontent::IBasicMenuContent,
356 system::object::IObject,
357 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
358 };
359}