Skip to main content

engage/generated/app/
profilecardvisualbasemenuitem.rs

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