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