engage/generated/app/
arenatopmenucontent.rs1#[cfg(feature = "app-arenatopmenucontent-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/arenatopmenucontent/ArenaTopMenuContent.md"))]
20 #[::unity::class(namespace = "App", name = "ArenaTopMenuContent")]
21 #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22 pub struct ArenaTopMenuContent {
23 #[static_field]
24 #[rename(name = "PrefabPath")]
25 pub prefab_path: ::unity::Il2CppString,
26 #[offset(232)]
27 #[rename(name = "LastCountRoot")]
28 pub last_count_root: crate::unity_engine::gameobject::GameObject,
29 #[offset(240)]
30 #[rename(name = "LastCount")]
31 pub last_count: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
32 #[offset(248)]
33 #[rename(name = "GodBondHelpRoot")]
34 pub god_bond_help_root: crate::unity_engine::gameobject::GameObject,
35 }
36}
37
38#[cfg(feature = "app-arenatopmenucontent-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-arenatopmenucontent")]
42impl ArenaTopMenuContent {
43 #[doc = "`LoadPrefabAsync()` overload"]
44 pub fn load_prefab_async() -> () {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x2117cb0usize)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()+0x2117d30usize)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()+0x2117db0usize)as*mut u8,();
63 )
64 }
65 }
66
67 #[doc = "`Create()` overload"]
68 pub fn create() -> crate::app::arenatopmenucontent::ArenaTopMenuContent {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x21178e0usize)as*mut u8,crate::app::arenatopmenucontent::ArenaTopMenuContent;
71 )
72 }
73 }
74}
75
76#[cfg(feature = "app-arenatopmenucontent")]
77pub trait IArenaTopMenuContentMethods: IArenaTopMenuContent {
78 #[doc = "`GetMenuItemContentMax()` overload"]
79 fn get_menu_item_content_max(self) -> i32 {
80 unsafe {
81 let __receiver = <ArenaTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 {
83 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
85 panic!(
86 "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91 4usize,
92 __vt.len(),
93 <ArenaTopMenuContent as ::unity::ClassIdentity>::NAME,
94 "GetMenuItemContentMax",
95 )
96 });
97 let __inner: extern "C" fn(ArenaTopMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
98 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99 __inner(__receiver, __mi)
100 }
101 }
102 }
103 #[doc = "`CalcW()` overload"]
104 fn calc_w(self) -> f32 {
105 unsafe {
106 let __receiver = <ArenaTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 {
108 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
110 panic!(
111 "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116 21usize,
117 __vt.len(),
118 <ArenaTopMenuContent as ::unity::ClassIdentity>::NAME,
119 "CalcW",
120 )
121 });
122 let __inner: extern "C" fn(ArenaTopMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
123 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124 __inner(__receiver, __mi)
125 }
126 }
127 }
128 #[doc = "`CalcH()` overload"]
129 fn calc_h(self) -> f32 {
130 unsafe {
131 let __receiver = <ArenaTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 {
133 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
135 panic!(
136 "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141 22usize,
142 __vt.len(),
143 <ArenaTopMenuContent as ::unity::ClassIdentity>::NAME,
144 "CalcH",
145 )
146 });
147 let __inner: extern "C" fn(ArenaTopMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
148 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
149 __inner(__receiver, __mi)
150 }
151 }
152 }
153 #[doc = "`SetState(i32, bool)` overload"]
154 fn set_state(self, last_train_count: impl ::core::convert::Into<i32>, show_count: impl ::core::convert::Into<bool>) -> () {
155 unsafe {
156 let __receiver = <ArenaTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157 ::unity::il2cpp_call!((::unity::module_base()+0x2117990usize)as*mut u8,();
158(ArenaTopMenuContent)__receiver,(i32)::core::convert::Into::into(last_train_count),(bool)::core::convert::Into::into(show_count))
159 }
160 }
161 #[doc = "`ToggleNormal(i32)` overload"]
162 fn toggle_normal(self, index: impl ::core::convert::Into<i32>) -> () {
163 unsafe {
164 let __receiver = <ArenaTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2117b50usize)as*mut u8,();
166(ArenaTopMenuContent)__receiver,(i32)::core::convert::Into::into(index))
167 }
168 }
169 #[doc = "`.ctor()` overload"]
170 fn ctor(self) -> () {
171 unsafe {
172 let __receiver = <ArenaTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x2117f20usize)as*mut u8,();
174(ArenaTopMenuContent)__receiver)
175 }
176 }
177}
178
179#[cfg(feature = "app-arenatopmenucontent")]
180impl<__T: IArenaTopMenuContent> IArenaTopMenuContentMethods for __T {}
181
182#[cfg(feature = "app-arenatopmenucontent")]
183impl ArenaTopMenuContent {
184 pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
186 }
187
188 pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
190 }
191
192 pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
194 }
195
196 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
198 }
199
200 pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
202 }
203
204 pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
206 }
207
208 pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
210 }
211
212 pub fn set_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
214 }
215
216 pub fn toggle_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
218 }
219
220 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
222 }
223}
224
225#[cfg(feature = "app-arenatopmenucontent")]
226impl ArenaTopMenuContent {
227 #[doc = "Direct (non-virtual) call to `ArenaTopMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
228 pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
229 let __mi = Self::get_menu_item_content_max_method_info();
230 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
231 __inner(this.into(), ::core::option::Option::None)
232 }
233
234 #[doc = "Direct (non-virtual) call to `ArenaTopMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
235 pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
236 let __mi = Self::calc_w_method_info();
237 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
238 __inner(this.into(), ::core::option::Option::None)
239 }
240
241 #[doc = "Direct (non-virtual) call to `ArenaTopMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
242 pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
243 let __mi = Self::calc_h_method_info();
244 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
245 __inner(this.into(), ::core::option::Option::None)
246 }
247}
248
249#[cfg(feature = "app-arenatopmenucontent")]
250impl ArenaTopMenuContent {
251 #[doc = "`.ctor()` — no args"]
252 pub fn new() -> Self {
253 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
254 panic!(
255 "{}
256::{}
257 failed to instantiate",
258 ::core::stringify!(ArenaTopMenuContent),
259 ::core::stringify!(new),
260 )
261 });
262 <Self as IArenaTopMenuContentMethods>::ctor(this);
263 this
264 }
265}
266
267#[cfg(feature = "app-arenatopmenucontent")]
268#[doc(hidden)]
269pub mod prelude {
270 pub use super::{ArenaTopMenuContent, IArenaTopMenuContent, IArenaTopMenuContentMethods};
271 #[cfg(feature = "app-basicmenucontent")]
272 pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
273 #[cfg(feature = "system-object")]
274 pub use crate::system::object::IObjectMethods;
275 #[cfg(feature = "unity_engine-behaviour")]
276 pub use crate::unity_engine::behaviour::IBehaviourMethods;
277 #[cfg(feature = "unity_engine-component")]
278 pub use crate::unity_engine::component::IComponentMethods;
279 #[cfg(feature = "unity_engine-monobehaviour")]
280 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
281 #[cfg(feature = "unity_engine-object_2")]
282 pub use crate::unity_engine::object_2::IObject_2Methods;
283 pub use crate::{
284 app::basicmenucontent::IBasicMenuContent,
285 system::object::IObject,
286 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
287 };
288}