Skip to main content

engage/generated/app/
challengemapselectmenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-challengemapselectmenuitem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10        system::object::{IObject, Object},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/challengemapselectmenuitem/ChallengeMapSelectMenuItem.md"))]
14    #[::unity::class(namespace = "App", name = "ChallengeMapSelectMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct ChallengeMapSelectMenuItem {
17        #[offset(104)]
18        #[rename(name = "m_SelectEventHandler")]
19        pub m_select_event_handler: crate::app::challengemapselectmenu::ChallengeMapSelectMenu_SelectEventHandler,
20        #[offset(112)]
21        #[rename(name = "m_DecideEventHandler")]
22        pub m_decide_event_handler: crate::app::challengemapselectmenu::ChallengeMapSelectMenu_DecideEventHandler,
23        #[offset(120)]
24        #[rename(name = "m_RequestCloseEventHandler")]
25        pub m_request_close_event_handler: crate::app::challengemapselectmenu::ChallengeMapSelectMenu_RequestCloseEventHandler,
26        #[offset(128)]
27        #[rename(name = "m_ChallengeData")]
28        pub m_challenge_data: crate::app::challengedata::ChallengeData,
29    }
30}
31
32#[cfg(feature = "app-challengemapselectmenuitem-types")]
33pub use __types::*;
34
35#[cfg(feature = "app-challengemapselectmenuitem")]
36pub trait IChallengeMapSelectMenuItemMethods: IChallengeMapSelectMenuItem {
37    #[doc = "`IsNew()` overload"]
38    fn is_new(self) -> bool {
39        unsafe {
40            let __receiver =
41                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
42            ::unity::il2cpp_call!((::unity::module_base()+0x25c5170usize)as*mut u8,bool;
43(ChallengeMapSelectMenuItem)__receiver)
44        }
45    }
46    #[doc = "`SawNewAccess()` overload"]
47    fn saw_new_access(self) -> () {
48        unsafe {
49            let __receiver =
50                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            ::unity::il2cpp_call!((::unity::module_base()+0x25c5060usize)as*mut u8,();
52(ChallengeMapSelectMenuItem)__receiver)
53        }
54    }
55    #[doc = "`.ctor(crate::app::challengedata::ChallengeData, crate::app::challengemapselectmenu::ChallengeMapSelectMenu_SelectEventHandler, crate::app::challengemapselectmenu::ChallengeMapSelectMenu_DecideEventHandler, crate::app::challengemapselectmenu::ChallengeMapSelectMenu_RequestCloseEventHandler)` overload"]
56    fn ctor(
57        self,
58        challenge_data: impl ::core::convert::Into<crate::app::challengedata::ChallengeData>,
59        select_event_handler: impl ::core::convert::Into<crate::app::challengemapselectmenu::ChallengeMapSelectMenu_SelectEventHandler>,
60        decide_event_handler: impl ::core::convert::Into<crate::app::challengemapselectmenu::ChallengeMapSelectMenu_DecideEventHandler>,
61        request_close_event_handler: impl ::core::convert::Into<crate::app::challengemapselectmenu::ChallengeMapSelectMenu_RequestCloseEventHandler>,
62    ) -> () {
63        unsafe {
64            let __receiver =
65                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66            ::unity::il2cpp_call!((::unity::module_base()+0x25c4d60usize)as*mut u8,();
67(ChallengeMapSelectMenuItem)__receiver,(crate::app::challengedata::ChallengeData)::core::convert::Into::into(challenge_data),(crate::app::challengemapselectmenu::ChallengeMapSelectMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::challengemapselectmenu::ChallengeMapSelectMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::challengemapselectmenu::ChallengeMapSelectMenu_RequestCloseEventHandler)::core::convert::Into::into(request_close_event_handler))
68        }
69    }
70    #[doc = "`GetName()` overload"]
71    fn get_name(self) -> ::unity::Il2CppString {
72        unsafe {
73            let __receiver =
74                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            {
76                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
78                    panic!(
79                        "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84                        4usize,
85                        __vt.len(),
86                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
87                        "GetName",
88                    )
89                });
90                let __inner: extern "C" fn(ChallengeMapSelectMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
91                    ::core::mem::transmute(__vi.method_ptr);
92                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
93                __inner(__receiver, __mi)
94            }
95        }
96    }
97    #[doc = "`BuildAttribute()` overload"]
98    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
99        unsafe {
100            let __receiver =
101                <ChallengeMapSelectMenuItem 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(8usize).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                        8usize,
112                        __vt.len(),
113                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
114                        "BuildAttribute",
115                    )
116                });
117                let __inner: extern "C" fn(
118                    ChallengeMapSelectMenuItem,
119                    ::unity::OptionalMethod,
120                ) -> crate::app::basicmenuitem::BasicMenuItem_Attribute = ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(__receiver, __mi)
123            }
124        }
125    }
126    #[doc = "`OnBuild()` overload"]
127    fn on_build(self) -> () {
128        unsafe {
129            let __receiver =
130                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            {
132                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
134                    panic!(
135                        "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140                        10usize,
141                        __vt.len(),
142                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
143                        "OnBuild",
144                    )
145                });
146                let __inner: extern "C" fn(ChallengeMapSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
147                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148                __inner(__receiver, __mi)
149            }
150        }
151    }
152    #[doc = "`OnBuildMenuItemContent()` overload"]
153    fn on_build_menu_item_content(self) -> () {
154        unsafe {
155            let __receiver =
156                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            {
158                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
160                    panic!(
161                        "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166                        11usize,
167                        __vt.len(),
168                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
169                        "OnBuildMenuItemContent",
170                    )
171                });
172                let __inner: extern "C" fn(ChallengeMapSelectMenuItem, ::unity::OptionalMethod) -> () = ::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 = "`SetInitialColor()` overload"]
179    fn set_initial_color(self) -> () {
180        unsafe {
181            let __receiver =
182                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x25c5220usize)as*mut u8,();
184(ChallengeMapSelectMenuItem)__receiver)
185        }
186    }
187    #[doc = "`OnSelect()` overload"]
188    fn on_select(self) -> () {
189        unsafe {
190            let __receiver =
191                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            {
193                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
194                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
195                    panic!(
196                        "unity: virtual slot {}
197 out of range (vtable len {}
198) on the runtime class behind {}
199 (method `{}
200`)",
201                        12usize,
202                        __vt.len(),
203                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
204                        "OnSelect",
205                    )
206                });
207                let __inner: extern "C" fn(ChallengeMapSelectMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
208                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
209                __inner(__receiver, __mi)
210            }
211        }
212    }
213    #[doc = "`ACall()` overload"]
214    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
215        unsafe {
216            let __receiver =
217                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            {
219                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
220                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
221                    panic!(
222                        "unity: virtual slot {}
223 out of range (vtable len {}
224) on the runtime class behind {}
225 (method `{}
226`)",
227                        18usize,
228                        __vt.len(),
229                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
230                        "ACall",
231                    )
232                });
233                let __inner: extern "C" fn(ChallengeMapSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
234                    ::core::mem::transmute(__vi.method_ptr);
235                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
236                __inner(__receiver, __mi)
237            }
238        }
239    }
240    #[doc = "`BCall()` overload"]
241    fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
242        unsafe {
243            let __receiver =
244                <ChallengeMapSelectMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            {
246                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
247                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
248                    panic!(
249                        "unity: virtual slot {}
250 out of range (vtable len {}
251) on the runtime class behind {}
252 (method `{}
253`)",
254                        19usize,
255                        __vt.len(),
256                        <ChallengeMapSelectMenuItem as ::unity::ClassIdentity>::NAME,
257                        "BCall",
258                    )
259                });
260                let __inner: extern "C" fn(ChallengeMapSelectMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
261                    ::core::mem::transmute(__vi.method_ptr);
262                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
263                __inner(__receiver, __mi)
264            }
265        }
266    }
267}
268
269#[cfg(feature = "app-challengemapselectmenuitem")]
270impl<__T: IChallengeMapSelectMenuItem> IChallengeMapSelectMenuItemMethods for __T {}
271
272#[cfg(feature = "app-challengemapselectmenuitem")]
273impl ChallengeMapSelectMenuItem {
274    pub fn is_new_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
276    }
277
278    pub fn saw_new_access_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
280    }
281
282    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
284    }
285
286    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
288    }
289
290    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
292    }
293
294    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
296    }
297
298    pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
300    }
301
302    pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
304    }
305
306    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
308    }
309
310    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
312    }
313
314    pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
316    }
317}
318
319#[cfg(feature = "app-challengemapselectmenuitem")]
320impl ChallengeMapSelectMenuItem {
321    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
322    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
323        let __mi = Self::get_name_method_info();
324        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
325        __inner(this.into(), ::core::option::Option::None)
326    }
327
328    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
329    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
330        let __mi = Self::build_attribute_method_info();
331        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
332            ::core::mem::transmute(__mi.method_ptr);
333        __inner(this.into(), ::core::option::Option::None)
334    }
335
336    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
337    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
338        let __mi = Self::on_build_method_info();
339        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
340        __inner(this.into(), ::core::option::Option::None)
341    }
342
343    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
344    pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
345        let __mi = Self::on_build_menu_item_content_method_info();
346        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
347        __inner(this.into(), ::core::option::Option::None)
348    }
349
350    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
351    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
352        let __mi = Self::on_select_method_info();
353        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
354        __inner(this.into(), ::core::option::Option::None)
355    }
356
357    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
358    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
359        let __mi = Self::a_call_method_info();
360        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
361            ::core::mem::transmute(__mi.method_ptr);
362        __inner(this.into(), ::core::option::Option::None)
363    }
364
365    #[doc = "Direct (non-virtual) call to `ChallengeMapSelectMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
366    pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
367        let __mi = Self::b_call_method_info();
368        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
369            ::core::mem::transmute(__mi.method_ptr);
370        __inner(this.into(), ::core::option::Option::None)
371    }
372}
373
374#[cfg(feature = "app-challengemapselectmenuitem")]
375impl ChallengeMapSelectMenuItem {
376    #[doc = "`.ctor(crate::app::challengedata::ChallengeData, crate::app::challengemapselectmenu::ChallengeMapSelectMenu_SelectEventHandler, crate::app::challengemapselectmenu::ChallengeMapSelectMenu_DecideEventHandler, crate::app::challengemapselectmenu::ChallengeMapSelectMenu_RequestCloseEventHandler)` — overload selector"]
377    pub fn new(
378        challenge_data: crate::app::challengedata::ChallengeData,
379        select_event_handler: crate::app::challengemapselectmenu::ChallengeMapSelectMenu_SelectEventHandler,
380        decide_event_handler: crate::app::challengemapselectmenu::ChallengeMapSelectMenu_DecideEventHandler,
381        request_close_event_handler: crate::app::challengemapselectmenu::ChallengeMapSelectMenu_RequestCloseEventHandler,
382    ) -> Self {
383        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
384            panic!(
385                "{}
386::{}
387 failed to instantiate",
388                ::core::stringify!(ChallengeMapSelectMenuItem),
389                ::core::stringify!(new),
390            )
391        });
392        <Self as IChallengeMapSelectMenuItemMethods>::ctor(
393            this,
394            challenge_data,
395            select_event_handler,
396            decide_event_handler,
397            request_close_event_handler,
398        );
399        this
400    }
401}
402
403#[cfg(feature = "app-challengemapselectmenuitem")]
404#[doc(hidden)]
405pub mod prelude {
406    pub use super::{ChallengeMapSelectMenuItem, IChallengeMapSelectMenuItem, IChallengeMapSelectMenuItemMethods};
407    #[cfg(feature = "app-basicmenuitem")]
408    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
409    #[cfg(feature = "system-object")]
410    pub use crate::system::object::IObjectMethods;
411    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
412}