Skip to main content

engage/generated/app/
profilecardfavoritecharactermenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-profilecardfavoritecharactermenuitem-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/profilecardfavoritecharactermenuitem/ProfileCardFavoriteCharacterMenuItem.md"))]
14    #[::unity::class(namespace = "App", name = "ProfileCardFavoriteCharacterMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct ProfileCardFavoriteCharacterMenuItem {}
17}
18
19#[cfg(feature = "app-profilecardfavoritecharactermenuitem-types")]
20pub use __types::*;
21
22#[cfg(feature = "app-profilecardfavoritecharactermenuitem")]
23pub trait IProfileCardFavoriteCharacterMenuItemMethods: IProfileCardFavoriteCharacterMenuItem {
24    #[doc = "`get_m_CharacterData()` overload"]
25    fn get_m_character_data(self) -> crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData {
26        unsafe {
27            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
28                <Self as ::unity::SystemObject>::as_instance(self),
29            );
30            ::unity::il2cpp_call!((::unity::module_base()+0x2314b50usize)as*mut u8,crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData;
31(ProfileCardFavoriteCharacterMenuItem)__receiver)
32        }
33    }
34    #[doc = "`set_m_CharacterData(crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData)` overload"]
35    fn set_m_character_data(
36        self,
37        value: impl ::core::convert::Into<crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData>,
38    ) -> () {
39        unsafe {
40            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
41                <Self as ::unity::SystemObject>::as_instance(self),
42            );
43            ::unity::il2cpp_call!((::unity::module_base()+0x2314b60usize)as*mut u8,();
44(ProfileCardFavoriteCharacterMenuItem)__receiver,(crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData)::core::convert::Into::into(value))
45        }
46    }
47    #[doc = "`get_m_Decided()` overload"]
48    fn get_m_decided(self) -> bool {
49        unsafe {
50            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
51                <Self as ::unity::SystemObject>::as_instance(self),
52            );
53            ::unity::il2cpp_call!((::unity::module_base()+0x2314b70usize)as*mut u8,bool;
54(ProfileCardFavoriteCharacterMenuItem)__receiver)
55        }
56    }
57    #[doc = "`set_m_Decided(bool)` overload"]
58    fn set_m_decided(self, value: impl ::core::convert::Into<bool>) -> () {
59        unsafe {
60            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
61                <Self as ::unity::SystemObject>::as_instance(self),
62            );
63            ::unity::il2cpp_call!((::unity::module_base()+0x2314b80usize)as*mut u8,();
64(ProfileCardFavoriteCharacterMenuItem)__receiver,(bool)::core::convert::Into::into(value))
65        }
66    }
67    #[doc = "`.ctor(crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData, bool)` overload"]
68    fn ctor(
69        self,
70        character_data: impl ::core::convert::Into<crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData>,
71        initial_select: impl ::core::convert::Into<bool>,
72    ) -> () {
73        unsafe {
74            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
75                <Self as ::unity::SystemObject>::as_instance(self),
76            );
77            ::unity::il2cpp_call!((::unity::module_base()+0x2313820usize)as*mut u8,();
78(ProfileCardFavoriteCharacterMenuItem)__receiver,(crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData)::core::convert::Into::into(character_data),(bool)::core::convert::Into::into(initial_select))
79        }
80    }
81    #[doc = "`OnBuild()` overload"]
82    fn on_build(self) -> () {
83        unsafe {
84            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
85                <Self as ::unity::SystemObject>::as_instance(self),
86            );
87            {
88                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
89                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
90                    panic!(
91                        "unity: virtual slot {}
92 out of range (vtable len {}
93) on the runtime class behind {}
94 (method `{}
95`)",
96                        10usize,
97                        __vt.len(),
98                        <ProfileCardFavoriteCharacterMenuItem as ::unity::ClassIdentity>::NAME,
99                        "OnBuild",
100                    )
101                });
102                let __inner: extern "C" fn(ProfileCardFavoriteCharacterMenuItem, ::unity::OptionalMethod) -> () =
103                    ::core::mem::transmute(__vi.method_ptr);
104                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
105                __inner(__receiver, __mi)
106            }
107        }
108    }
109    #[doc = "`OnBuildMenuItemContent()` overload"]
110    fn on_build_menu_item_content(self) -> () {
111        unsafe {
112            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
113                <Self as ::unity::SystemObject>::as_instance(self),
114            );
115            {
116                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
118                    panic!(
119                        "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124                        11usize,
125                        __vt.len(),
126                        <ProfileCardFavoriteCharacterMenuItem as ::unity::ClassIdentity>::NAME,
127                        "OnBuildMenuItemContent",
128                    )
129                });
130                let __inner: extern "C" fn(ProfileCardFavoriteCharacterMenuItem, ::unity::OptionalMethod) -> () =
131                    ::core::mem::transmute(__vi.method_ptr);
132                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133                __inner(__receiver, __mi)
134            }
135        }
136    }
137    #[doc = "`SetInitialColor()` overload"]
138    fn set_initial_color(self) -> () {
139        unsafe {
140            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
141                <Self as ::unity::SystemObject>::as_instance(self),
142            );
143            ::unity::il2cpp_call!((::unity::module_base()+0x2314bd0usize)as*mut u8,();
144(ProfileCardFavoriteCharacterMenuItem)__receiver)
145        }
146    }
147    #[doc = "`UpdateFixedCursor()` overload"]
148    fn update_fixed_cursor(self) -> () {
149        unsafe {
150            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
151                <Self as ::unity::SystemObject>::as_instance(self),
152            );
153            ::unity::il2cpp_call!((::unity::module_base()+0x2314d30usize)as*mut u8,();
154(ProfileCardFavoriteCharacterMenuItem)__receiver)
155        }
156    }
157    #[doc = "`UpdateNewIcon()` overload"]
158    fn update_new_icon(self) -> () {
159        unsafe {
160            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
161                <Self as ::unity::SystemObject>::as_instance(self),
162            );
163            ::unity::il2cpp_call!((::unity::module_base()+0x2314e20usize)as*mut u8,();
164(ProfileCardFavoriteCharacterMenuItem)__receiver)
165        }
166    }
167    #[doc = "`SetDecided(bool)` overload"]
168    fn set_decided(self, decided: impl ::core::convert::Into<bool>) -> () {
169        unsafe {
170            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
171                <Self as ::unity::SystemObject>::as_instance(self),
172            );
173            ::unity::il2cpp_call!((::unity::module_base()+0x23147a0usize)as*mut u8,();
174(ProfileCardFavoriteCharacterMenuItem)__receiver,(bool)::core::convert::Into::into(decided))
175        }
176    }
177    #[doc = "`OnSelect()` overload"]
178    fn on_select(self) -> () {
179        unsafe {
180            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
181                <Self as ::unity::SystemObject>::as_instance(self),
182            );
183            {
184                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
185                let __vi = *__vt.get(12usize).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                        12usize,
193                        __vt.len(),
194                        <ProfileCardFavoriteCharacterMenuItem as ::unity::ClassIdentity>::NAME,
195                        "OnSelect",
196                    )
197                });
198                let __inner: extern "C" fn(ProfileCardFavoriteCharacterMenuItem, ::unity::OptionalMethod) -> () =
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 = "`OnCursorMoveEnd()` overload"]
206    fn on_cursor_move_end(self) -> () {
207        unsafe {
208            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
209                <Self as ::unity::SystemObject>::as_instance(self),
210            );
211            {
212                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
213                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
214                    panic!(
215                        "unity: virtual slot {}
216 out of range (vtable len {}
217) on the runtime class behind {}
218 (method `{}
219`)",
220                        14usize,
221                        __vt.len(),
222                        <ProfileCardFavoriteCharacterMenuItem as ::unity::ClassIdentity>::NAME,
223                        "OnCursorMoveEnd",
224                    )
225                });
226                let __inner: extern "C" fn(ProfileCardFavoriteCharacterMenuItem, ::unity::OptionalMethod) -> () =
227                    ::core::mem::transmute(__vi.method_ptr);
228                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
229                __inner(__receiver, __mi)
230            }
231        }
232    }
233    #[doc = "`OnDeselect()` overload"]
234    fn on_deselect(self) -> () {
235        unsafe {
236            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
237                <Self as ::unity::SystemObject>::as_instance(self),
238            );
239            {
240                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
241                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
242                    panic!(
243                        "unity: virtual slot {}
244 out of range (vtable len {}
245) on the runtime class behind {}
246 (method `{}
247`)",
248                        13usize,
249                        __vt.len(),
250                        <ProfileCardFavoriteCharacterMenuItem as ::unity::ClassIdentity>::NAME,
251                        "OnDeselect",
252                    )
253                });
254                let __inner: extern "C" fn(ProfileCardFavoriteCharacterMenuItem, ::unity::OptionalMethod) -> () =
255                    ::core::mem::transmute(__vi.method_ptr);
256                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
257                __inner(__receiver, __mi)
258            }
259        }
260    }
261    #[doc = "`ACall()` overload"]
262    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
263        unsafe {
264            let __receiver = <ProfileCardFavoriteCharacterMenuItem as ::unity::FromIlInstance>::from_il_instance(
265                <Self as ::unity::SystemObject>::as_instance(self),
266            );
267            {
268                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
270                    panic!(
271                        "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276                        18usize,
277                        __vt.len(),
278                        <ProfileCardFavoriteCharacterMenuItem as ::unity::ClassIdentity>::NAME,
279                        "ACall",
280                    )
281                });
282                let __inner: extern "C" fn(ProfileCardFavoriteCharacterMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
283                    ::core::mem::transmute(__vi.method_ptr);
284                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
285                __inner(__receiver, __mi)
286            }
287        }
288    }
289}
290
291#[cfg(feature = "app-profilecardfavoritecharactermenuitem")]
292impl<__T: IProfileCardFavoriteCharacterMenuItem> IProfileCardFavoriteCharacterMenuItemMethods for __T {}
293
294#[cfg(feature = "app-profilecardfavoritecharactermenuitem")]
295impl ProfileCardFavoriteCharacterMenuItem {
296    pub fn get_m_character_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298    }
299
300    pub fn set_m_character_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302    }
303
304    pub fn get_m_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
306    }
307
308    pub fn set_m_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
310    }
311
312    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
314    }
315
316    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
318    }
319
320    pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
322    }
323
324    pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
326    }
327
328    pub fn update_fixed_cursor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
330    }
331
332    pub fn update_new_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
334    }
335
336    pub fn set_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
338    }
339
340    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
342    }
343
344    pub fn on_cursor_move_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
346    }
347
348    pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
350    }
351
352    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
354    }
355}
356
357#[cfg(feature = "app-profilecardfavoritecharactermenuitem")]
358impl ProfileCardFavoriteCharacterMenuItem {
359    #[doc = "Direct (non-virtual) call to `ProfileCardFavoriteCharacterMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
360    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
361        let __mi = Self::on_build_method_info();
362        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
363        __inner(this.into(), ::core::option::Option::None)
364    }
365
366    #[doc = "Direct (non-virtual) call to `ProfileCardFavoriteCharacterMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
367    pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
368        let __mi = Self::on_build_menu_item_content_method_info();
369        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
370        __inner(this.into(), ::core::option::Option::None)
371    }
372
373    #[doc = "Direct (non-virtual) call to `ProfileCardFavoriteCharacterMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
375        let __mi = Self::on_select_method_info();
376        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
377        __inner(this.into(), ::core::option::Option::None)
378    }
379
380    #[doc = "Direct (non-virtual) call to `ProfileCardFavoriteCharacterMenuItem`'s own `OnCursorMoveEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
381    pub unsafe fn on_cursor_move_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
382        let __mi = Self::on_cursor_move_end_method_info();
383        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
384        __inner(this.into(), ::core::option::Option::None)
385    }
386
387    #[doc = "Direct (non-virtual) call to `ProfileCardFavoriteCharacterMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
388    pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
389        let __mi = Self::on_deselect_method_info();
390        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
391        __inner(this.into(), ::core::option::Option::None)
392    }
393
394    #[doc = "Direct (non-virtual) call to `ProfileCardFavoriteCharacterMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
395    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
396        let __mi = Self::a_call_method_info();
397        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
398            ::core::mem::transmute(__mi.method_ptr);
399        __inner(this.into(), ::core::option::Option::None)
400    }
401}
402
403#[cfg(feature = "app-profilecardfavoritecharactermenuitem")]
404impl ProfileCardFavoriteCharacterMenuItem {
405    #[doc = "`.ctor(crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData, bool)` — overload selector"]
406    pub fn new(character_data: crate::app::profilecardfavoritecharacterdata::ProfileCardFavoriteCharacterData, initial_select: bool) -> Self {
407        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
408            panic!(
409                "{}
410::{}
411 failed to instantiate",
412                ::core::stringify!(ProfileCardFavoriteCharacterMenuItem),
413                ::core::stringify!(new),
414            )
415        });
416        <Self as IProfileCardFavoriteCharacterMenuItemMethods>::ctor(this, character_data, initial_select);
417        this
418    }
419}
420
421#[cfg(feature = "app-profilecardfavoritecharactermenuitem")]
422#[doc(hidden)]
423pub mod prelude {
424    pub use super::{IProfileCardFavoriteCharacterMenuItem, IProfileCardFavoriteCharacterMenuItemMethods, ProfileCardFavoriteCharacterMenuItem};
425    #[cfg(feature = "app-basicmenuitem")]
426    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
427    #[cfg(feature = "system-object")]
428    pub use crate::system::object::IObjectMethods;
429    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
430}