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