1#[cfg(feature = "app-challengedifficultymenu-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 basicmenu::{BasicMenu, IBasicMenu},
11 procinst::{IProcInst, ProcInst},
12 },
13 system::{
14 delegate::{Delegate, IDelegate},
15 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
16 object::{IObject, Object},
17 },
18 };
19
20 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengedifficultymenu/ChallengeDifficultyMenu_DecideEventHandler.md"))]
21 #[::unity::class(namespace = "App", name = "ChallengeDifficultyMenu.DecideEventHandler")]
22 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
23 pub struct ChallengeDifficultyMenu_DecideEventHandler {}
24
25 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengedifficultymenu/ChallengeDifficultyMenu_RequestCloseEventHandler.md"))]
26 #[::unity::class(namespace = "App", name = "ChallengeDifficultyMenu.RequestCloseEventHandler")]
27 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
28 pub struct ChallengeDifficultyMenu_RequestCloseEventHandler {}
29
30 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengedifficultymenu/ChallengeDifficultyMenu.md"))]
31 #[::unity::class(namespace = "App", name = "ChallengeDifficultyMenu")]
32 #[parent(crate::app::basicmenu::BasicMenu)]
33 pub struct ChallengeDifficultyMenu {
34 #[offset(200)]
35 #[rename(name = "m_RequestCloseEventHandler")]
36 pub m_request_close_event_handler: crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler,
37 #[offset(208)]
38 #[rename(name = "m_Root")]
39 pub m_root: crate::app::challengemapselectroot::ChallengeMapSelectRoot,
40 #[offset(216)]
41 #[rename(name = "m_TextDifficulty")]
42 pub m_text_difficulty: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
43 }
44}
45
46#[cfg(feature = "app-challengedifficultymenu-types")]
47pub use __types::*;
48
49#[cfg(feature = "app-challengedifficultymenu")]
50pub trait IChallengeDifficultyMenu_DecideEventHandlerMethods: IChallengeDifficultyMenu_DecideEventHandler {
51 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
52 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
53 unsafe {
54 let __receiver = <ChallengeDifficultyMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
55 <Self as ::unity::SystemObject>::as_instance(self),
56 );
57 ::unity::il2cpp_call!((::unity::module_base()+0x19bebe0usize)as*mut u8,();
58(ChallengeDifficultyMenu_DecideEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
59 }
60 }
61 #[doc = "`Invoke(i32)` overload"]
62 fn invoke(self, difficulty: impl ::core::convert::Into<i32>) -> () {
63 unsafe {
64 let __receiver = <ChallengeDifficultyMenu_DecideEventHandler as ::unity::FromIlInstance>::from_il_instance(
65 <Self as ::unity::SystemObject>::as_instance(self),
66 );
67 {
68 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
69 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
70 panic!(
71 "unity: virtual slot {}
72 out of range (vtable len {}
73) on the runtime class behind {}
74 (method `{}
75`)",
76 13usize,
77 __vt.len(),
78 <ChallengeDifficultyMenu_DecideEventHandler as ::unity::ClassIdentity>::NAME,
79 "Invoke",
80 )
81 });
82 let __inner: extern "C" fn(ChallengeDifficultyMenu_DecideEventHandler, i32, ::unity::OptionalMethod) -> () =
83 ::core::mem::transmute(__vi.method_ptr);
84 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85 __inner(__receiver, ::core::convert::Into::into(difficulty), __mi)
86 }
87 }
88 }
89}
90
91#[cfg(feature = "app-challengedifficultymenu")]
92impl<__T: IChallengeDifficultyMenu_DecideEventHandler> IChallengeDifficultyMenu_DecideEventHandlerMethods for __T {}
93
94#[cfg(feature = "app-challengedifficultymenu")]
95impl ChallengeDifficultyMenu_DecideEventHandler {
96 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
98 }
99
100 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
102 }
103}
104
105#[cfg(feature = "app-challengedifficultymenu")]
106impl ChallengeDifficultyMenu_DecideEventHandler {
107 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu_DecideEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
108 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, difficulty: i32) -> () {
109 let __mi = Self::invoke_method_info();
110 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
111 __inner(this.into(), difficulty, ::core::option::Option::None)
112 }
113}
114
115#[cfg(feature = "app-challengedifficultymenu")]
116impl ChallengeDifficultyMenu_DecideEventHandler {
117 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
118 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
119 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
120 panic!(
121 "{}
122::{}
123 failed to instantiate",
124 ::core::stringify!(ChallengeDifficultyMenu_DecideEventHandler),
125 ::core::stringify!(new),
126 )
127 });
128 <Self as IChallengeDifficultyMenu_DecideEventHandlerMethods>::ctor(this, object, method);
129 this
130 }
131}
132
133#[cfg(feature = "app-challengedifficultymenu")]
134pub trait IChallengeDifficultyMenu_RequestCloseEventHandlerMethods: IChallengeDifficultyMenu_RequestCloseEventHandler {
135 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
136 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
137 unsafe {
138 let __receiver = <ChallengeDifficultyMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
139 <Self as ::unity::SystemObject>::as_instance(self),
140 );
141 ::unity::il2cpp_call!((::unity::module_base()+0x19beed0usize)as*mut u8,();
142(ChallengeDifficultyMenu_RequestCloseEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
143 }
144 }
145 #[doc = "`Invoke(i32)` overload"]
146 fn invoke(self, difficulty: impl ::core::convert::Into<i32>) -> () {
147 unsafe {
148 let __receiver = <ChallengeDifficultyMenu_RequestCloseEventHandler as ::unity::FromIlInstance>::from_il_instance(
149 <Self as ::unity::SystemObject>::as_instance(self),
150 );
151 {
152 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
153 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
154 panic!(
155 "unity: virtual slot {}
156 out of range (vtable len {}
157) on the runtime class behind {}
158 (method `{}
159`)",
160 13usize,
161 __vt.len(),
162 <ChallengeDifficultyMenu_RequestCloseEventHandler as ::unity::ClassIdentity>::NAME,
163 "Invoke",
164 )
165 });
166 let __inner: extern "C" fn(ChallengeDifficultyMenu_RequestCloseEventHandler, i32, ::unity::OptionalMethod) -> () =
167 ::core::mem::transmute(__vi.method_ptr);
168 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
169 __inner(__receiver, ::core::convert::Into::into(difficulty), __mi)
170 }
171 }
172 }
173}
174
175#[cfg(feature = "app-challengedifficultymenu")]
176impl<__T: IChallengeDifficultyMenu_RequestCloseEventHandler> IChallengeDifficultyMenu_RequestCloseEventHandlerMethods for __T {}
177
178#[cfg(feature = "app-challengedifficultymenu")]
179impl ChallengeDifficultyMenu_RequestCloseEventHandler {
180 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
182 }
183
184 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
186 }
187}
188
189#[cfg(feature = "app-challengedifficultymenu")]
190impl ChallengeDifficultyMenu_RequestCloseEventHandler {
191 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu_RequestCloseEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
192 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, difficulty: i32) -> () {
193 let __mi = Self::invoke_method_info();
194 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
195 __inner(this.into(), difficulty, ::core::option::Option::None)
196 }
197}
198
199#[cfg(feature = "app-challengedifficultymenu")]
200impl ChallengeDifficultyMenu_RequestCloseEventHandler {
201 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
202 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
203 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
204 panic!(
205 "{}
206::{}
207 failed to instantiate",
208 ::core::stringify!(ChallengeDifficultyMenu_RequestCloseEventHandler),
209 ::core::stringify!(new),
210 )
211 });
212 <Self as IChallengeDifficultyMenu_RequestCloseEventHandlerMethods>::ctor(this, object, method);
213 this
214 }
215}
216
217#[cfg(feature = "app-challengedifficultymenu")]
218impl ChallengeDifficultyMenu {
219 #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::challengemapselectroot::ChallengeMapSelectRoot, crate::app::basicmenucontent::BasicMenuContent, crate::app::challengedifficultymenu::ChallengeDifficultyMenu_DecideEventHandler, crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler)` overload"]
220 pub fn create_bind(
221 super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
222 root: impl ::core::convert::Into<crate::app::challengemapselectroot::ChallengeMapSelectRoot>,
223 menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
224 decide_event_handler: impl ::core::convert::Into<crate::app::challengedifficultymenu::ChallengeDifficultyMenu_DecideEventHandler>,
225 request_close_event_handler: impl ::core::convert::Into<crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler>,
226 ) -> crate::app::challengedifficultymenu::ChallengeDifficultyMenu {
227 unsafe {
228 ::unity::il2cpp_call!((::unity::module_base()+0x25c23f0usize)as*mut u8,crate::app::challengedifficultymenu::ChallengeDifficultyMenu;
229(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::challengemapselectroot::ChallengeMapSelectRoot)::core::convert::Into::into(root),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::challengedifficultymenu::ChallengeDifficultyMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
230 }
231 }
232}
233
234#[cfg(feature = "app-challengedifficultymenu")]
235pub trait IChallengeDifficultyMenuMethods: IChallengeDifficultyMenu {
236 #[doc = "`get_Difficulty()` overload"]
237 fn get_difficulty(self) -> i32 {
238 unsafe {
239 let __receiver =
240 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241 ::unity::il2cpp_call!((::unity::module_base()+0x25c27e0usize)as*mut u8,i32;
242(ChallengeDifficultyMenu)__receiver)
243 }
244 }
245 #[doc = "`set_Difficulty(i32)` overload"]
246 fn set_difficulty(self, value: impl ::core::convert::Into<i32>) -> () {
247 unsafe {
248 let __receiver =
249 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250 ::unity::il2cpp_call!((::unity::module_base()+0x25c27f0usize)as*mut u8,();
251(ChallengeDifficultyMenu)__receiver,(i32)::core::convert::Into::into(value))
252 }
253 }
254 #[doc = "`.ctor(crate::app::challengemapselectroot::ChallengeMapSelectRoot, crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler)` overload"]
255 fn ctor(
256 self,
257 root: impl ::core::convert::Into<crate::app::challengemapselectroot::ChallengeMapSelectRoot>,
258 menu_item_list: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>>,
259 menu_content: impl ::core::convert::Into<crate::app::basicmenucontent::BasicMenuContent>,
260 request_close_event_handler: impl ::core::convert::Into<crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler>,
261 ) -> () {
262 unsafe {
263 let __receiver =
264 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265 ::unity::il2cpp_call!((::unity::module_base()+0x25c2840usize)as*mut u8,();
266(ChallengeDifficultyMenu)__receiver,(crate::app::challengemapselectroot::ChallengeMapSelectRoot)::core::convert::Into::into(root),(crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>)::core::convert::Into::into(menu_item_list),(crate::app::basicmenucontent::BasicMenuContent)::core::convert::Into::into(menu_content),(crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
267 }
268 }
269 #[doc = "`GetName()` overload"]
270 fn get_name(self) -> ::unity::Il2CppString {
271 unsafe {
272 let __receiver =
273 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274 {
275 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
276 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
277 panic!(
278 "unity: virtual slot {}
279 out of range (vtable len {}
280) on the runtime class behind {}
281 (method `{}
282`)",
283 30usize,
284 __vt.len(),
285 <ChallengeDifficultyMenu as ::unity::ClassIdentity>::NAME,
286 "GetName",
287 )
288 });
289 let __inner: extern "C" fn(ChallengeDifficultyMenu, ::unity::OptionalMethod) -> ::unity::Il2CppString =
290 ::core::mem::transmute(__vi.method_ptr);
291 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
292 __inner(__receiver, __mi)
293 }
294 }
295 }
296 #[doc = "`KeyLeft(bool)` overload"]
297 fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
298 unsafe {
299 let __receiver =
300 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301 {
302 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
303 let __vi = *__vt.get(42usize).unwrap_or_else(|| {
304 panic!(
305 "unity: virtual slot {}
306 out of range (vtable len {}
307) on the runtime class behind {}
308 (method `{}
309`)",
310 42usize,
311 __vt.len(),
312 <ChallengeDifficultyMenu as ::unity::ClassIdentity>::NAME,
313 "KeyLeft",
314 )
315 });
316 let __inner: extern "C" fn(ChallengeDifficultyMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
317 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
318 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
319 }
320 }
321 }
322 #[doc = "`KeyRight(bool)` overload"]
323 fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
324 unsafe {
325 let __receiver =
326 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
327 {
328 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
329 let __vi = *__vt.get(43usize).unwrap_or_else(|| {
330 panic!(
331 "unity: virtual slot {}
332 out of range (vtable len {}
333) on the runtime class behind {}
334 (method `{}
335`)",
336 43usize,
337 __vt.len(),
338 <ChallengeDifficultyMenu as ::unity::ClassIdentity>::NAME,
339 "KeyRight",
340 )
341 });
342 let __inner: extern "C" fn(ChallengeDifficultyMenu, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
343 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
344 __inner(__receiver, ::core::convert::Into::into(is_trigger), __mi)
345 }
346 }
347 }
348 #[doc = "`BCall()` overload"]
349 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
350 unsafe {
351 let __receiver =
352 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
353 {
354 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
355 let __vi = *__vt.get(51usize).unwrap_or_else(|| {
356 panic!(
357 "unity: virtual slot {}
358 out of range (vtable len {}
359) on the runtime class behind {}
360 (method `{}
361`)",
362 51usize,
363 __vt.len(),
364 <ChallengeDifficultyMenu as ::unity::ClassIdentity>::NAME,
365 "BCall",
366 )
367 });
368 let __inner: extern "C" fn(ChallengeDifficultyMenu, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
369 ::core::mem::transmute(__vi.method_ptr);
370 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
371 __inner(__receiver, __mi)
372 }
373 }
374 }
375 #[doc = "`OnDispose()` overload"]
376 fn on_dispose(self) -> () {
377 unsafe {
378 let __receiver =
379 <ChallengeDifficultyMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380 {
381 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
382 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
383 panic!(
384 "unity: virtual slot {}
385 out of range (vtable len {}
386) on the runtime class behind {}
387 (method `{}
388`)",
389 10usize,
390 __vt.len(),
391 <ChallengeDifficultyMenu as ::unity::ClassIdentity>::NAME,
392 "OnDispose",
393 )
394 });
395 let __inner: extern "C" fn(ChallengeDifficultyMenu, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
396 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
397 __inner(__receiver, __mi)
398 }
399 }
400 }
401}
402
403#[cfg(feature = "app-challengedifficultymenu")]
404impl<__T: IChallengeDifficultyMenu> IChallengeDifficultyMenuMethods for __T {}
405
406#[cfg(feature = "app-challengedifficultymenu")]
407impl ChallengeDifficultyMenu {
408 pub fn get_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
410 }
411
412 pub fn set_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
414 }
415
416 pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
418 }
419
420 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
422 }
423
424 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
426 }
427
428 pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
430 }
431
432 pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
434 }
435
436 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
438 }
439
440 pub fn on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
442 }
443}
444
445#[cfg(feature = "app-challengedifficultymenu")]
446impl ChallengeDifficultyMenu {
447 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
448 pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
449 let __mi = Self::get_name_method_info();
450 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
451 __inner(this.into(), ::core::option::Option::None)
452 }
453
454 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu`'s own `KeyLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
455 pub unsafe fn key_left(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
456 let __mi = Self::key_left_method_info();
457 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
458 __inner(this.into(), is_trigger, ::core::option::Option::None)
459 }
460
461 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu`'s own `KeyRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
462 pub unsafe fn key_right(this: impl ::core::convert::Into<::unity::IlInstance>, is_trigger: bool) -> () {
463 let __mi = Self::key_right_method_info();
464 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
465 __inner(this.into(), is_trigger, ::core::option::Option::None)
466 }
467
468 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
469 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
470 let __mi = Self::b_call_method_info();
471 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
472 ::core::mem::transmute(__mi.method_ptr);
473 __inner(this.into(), ::core::option::Option::None)
474 }
475
476 #[doc = "Direct (non-virtual) call to `ChallengeDifficultyMenu`'s own `OnDispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
477 pub unsafe fn on_dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
478 let __mi = Self::on_dispose_method_info();
479 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
480 __inner(this.into(), ::core::option::Option::None)
481 }
482}
483
484#[cfg(feature = "app-challengedifficultymenu")]
485impl ChallengeDifficultyMenu {
486 #[doc = "`.ctor(crate::app::challengemapselectroot::ChallengeMapSelectRoot, crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>, crate::app::basicmenucontent::BasicMenuContent, crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler)` — overload selector"]
487 pub fn new(
488 root: crate::app::challengemapselectroot::ChallengeMapSelectRoot,
489 menu_item_list: crate::system::collections::generic::list_1::List_1<crate::app::basicmenuitem::BasicMenuItem>,
490 menu_content: crate::app::basicmenucontent::BasicMenuContent,
491 request_close_event_handler: crate::app::challengedifficultymenu::ChallengeDifficultyMenu_RequestCloseEventHandler,
492 ) -> Self {
493 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
494 panic!(
495 "{}
496::{}
497 failed to instantiate",
498 ::core::stringify!(ChallengeDifficultyMenu),
499 ::core::stringify!(new),
500 )
501 });
502 <Self as IChallengeDifficultyMenuMethods>::ctor(this, root, menu_item_list, menu_content, request_close_event_handler);
503 this
504 }
505}
506
507#[cfg(feature = "app-challengedifficultymenu")]
508#[doc(hidden)]
509pub mod prelude {
510 pub use super::{
511 ChallengeDifficultyMenu, ChallengeDifficultyMenu_DecideEventHandler, ChallengeDifficultyMenu_RequestCloseEventHandler,
512 IChallengeDifficultyMenu, IChallengeDifficultyMenuMethods, IChallengeDifficultyMenu_DecideEventHandler,
513 IChallengeDifficultyMenu_DecideEventHandlerMethods, IChallengeDifficultyMenu_RequestCloseEventHandler,
514 IChallengeDifficultyMenu_RequestCloseEventHandlerMethods,
515 };
516 #[cfg(feature = "app-basicmenu")]
517 pub use crate::app::basicmenu::IBasicMenuMethods;
518 #[cfg(feature = "app-procinst")]
519 pub use crate::app::procinst::IProcInstMethods;
520 #[cfg(feature = "system-delegate")]
521 pub use crate::system::delegate::IDelegateMethods;
522 #[cfg(feature = "system-multicastdelegate")]
523 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
524 #[cfg(feature = "system-object")]
525 pub use crate::system::object::IObjectMethods;
526 pub use crate::{
527 app::{basicmenu::IBasicMenu, procinst::IProcInst},
528 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
529 };
530}