engage/generated/app/
profilecardstamplistmenuitem.rs1#[cfg(feature = "app-profilecardstamplistmenuitem-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/profilecardstamplistmenuitem/ProfileCardStampListMenuItem.md"))]
14 #[::unity::class(namespace = "App", name = "ProfileCardStampListMenuItem")]
15 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16 pub struct ProfileCardStampListMenuItem {
17 #[offset(104)]
18 #[rename(name = "m_ProfileCardStampData")]
19 pub m_profile_card_stamp_data: crate::app::profilecardstampdata::ProfileCardStampData,
20 #[offset(112)]
21 #[rename(name = "m_DecideEventHandler")]
22 pub m_decide_event_handler: crate::app::profilecardstamplistmenu::ProfileCardStampListMenu_DecideEventHandler,
23 }
24}
25
26#[cfg(feature = "app-profilecardstamplistmenuitem-types")]
27pub use __types::*;
28
29#[cfg(feature = "app-profilecardstamplistmenuitem")]
30pub trait IProfileCardStampListMenuItemMethods: IProfileCardStampListMenuItem {
31 #[doc = "`.ctor(crate::app::profilecardstampdata::ProfileCardStampData, bool, crate::app::profilecardstamplistmenu::ProfileCardStampListMenu_DecideEventHandler)` overload"]
32 fn ctor(
33 self,
34 profile_card_stamp_data: impl ::core::convert::Into<crate::app::profilecardstampdata::ProfileCardStampData>,
35 initial_select: impl ::core::convert::Into<bool>,
36 decide_event_handler: impl ::core::convert::Into<crate::app::profilecardstamplistmenu::ProfileCardStampListMenu_DecideEventHandler>,
37 ) -> () {
38 unsafe {
39 let __receiver =
40 <ProfileCardStampListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41 ::unity::il2cpp_call!((::unity::module_base()+0x2bf1d70usize)as*mut u8,();
42(ProfileCardStampListMenuItem)__receiver,(crate::app::profilecardstampdata::ProfileCardStampData)::core::convert::Into::into(profile_card_stamp_data),(bool)::core::convert::Into::into(initial_select),(crate::app::profilecardstamplistmenu::ProfileCardStampListMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler))
43 }
44 }
45 #[doc = "`OnBuildMenuItemContent()` overload"]
46 fn on_build_menu_item_content(self) -> () {
47 unsafe {
48 let __receiver =
49 <ProfileCardStampListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 {
51 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
53 panic!(
54 "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59 11usize,
60 __vt.len(),
61 <ProfileCardStampListMenuItem as ::unity::ClassIdentity>::NAME,
62 "OnBuildMenuItemContent",
63 )
64 });
65 let __inner: extern "C" fn(ProfileCardStampListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
66 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
67 __inner(__receiver, __mi)
68 }
69 }
70 }
71 #[doc = "`UpdateNewIcon()` overload"]
72 fn update_new_icon(self) -> () {
73 unsafe {
74 let __receiver =
75 <ProfileCardStampListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76 ::unity::il2cpp_call!((::unity::module_base()+0x2bf33a0usize)as*mut u8,();
77(ProfileCardStampListMenuItem)__receiver)
78 }
79 }
80 #[doc = "`OnSelect()` overload"]
81 fn on_select(self) -> () {
82 unsafe {
83 let __receiver =
84 <ProfileCardStampListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 {
86 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
88 panic!(
89 "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94 12usize,
95 __vt.len(),
96 <ProfileCardStampListMenuItem as ::unity::ClassIdentity>::NAME,
97 "OnSelect",
98 )
99 });
100 let __inner: extern "C" fn(ProfileCardStampListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
101 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102 __inner(__receiver, __mi)
103 }
104 }
105 }
106 #[doc = "`OnDeselect()` overload"]
107 fn on_deselect(self) -> () {
108 unsafe {
109 let __receiver =
110 <ProfileCardStampListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 13usize,
121 __vt.len(),
122 <ProfileCardStampListMenuItem as ::unity::ClassIdentity>::NAME,
123 "OnDeselect",
124 )
125 });
126 let __inner: extern "C" fn(ProfileCardStampListMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
127 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128 __inner(__receiver, __mi)
129 }
130 }
131 }
132 #[doc = "`ACall()` overload"]
133 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
134 unsafe {
135 let __receiver =
136 <ProfileCardStampListMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 {
138 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
139 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
140 panic!(
141 "unity: virtual slot {}
142 out of range (vtable len {}
143) on the runtime class behind {}
144 (method `{}
145`)",
146 18usize,
147 __vt.len(),
148 <ProfileCardStampListMenuItem as ::unity::ClassIdentity>::NAME,
149 "ACall",
150 )
151 });
152 let __inner: extern "C" fn(ProfileCardStampListMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
153 ::core::mem::transmute(__vi.method_ptr);
154 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155 __inner(__receiver, __mi)
156 }
157 }
158 }
159}
160
161#[cfg(feature = "app-profilecardstamplistmenuitem")]
162impl<__T: IProfileCardStampListMenuItem> IProfileCardStampListMenuItemMethods for __T {}
163
164#[cfg(feature = "app-profilecardstamplistmenuitem")]
165impl ProfileCardStampListMenuItem {
166 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
168 }
169
170 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
172 }
173
174 pub fn update_new_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
176 }
177
178 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
180 }
181
182 pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
184 }
185
186 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
188 }
189}
190
191#[cfg(feature = "app-profilecardstamplistmenuitem")]
192impl ProfileCardStampListMenuItem {
193 #[doc = "Direct (non-virtual) call to `ProfileCardStampListMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
194 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
195 let __mi = Self::on_build_menu_item_content_method_info();
196 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
197 __inner(this.into(), ::core::option::Option::None)
198 }
199
200 #[doc = "Direct (non-virtual) call to `ProfileCardStampListMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
201 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
202 let __mi = Self::on_select_method_info();
203 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
204 __inner(this.into(), ::core::option::Option::None)
205 }
206
207 #[doc = "Direct (non-virtual) call to `ProfileCardStampListMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
208 pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
209 let __mi = Self::on_deselect_method_info();
210 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
211 __inner(this.into(), ::core::option::Option::None)
212 }
213
214 #[doc = "Direct (non-virtual) call to `ProfileCardStampListMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
215 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
216 let __mi = Self::a_call_method_info();
217 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
218 ::core::mem::transmute(__mi.method_ptr);
219 __inner(this.into(), ::core::option::Option::None)
220 }
221}
222
223#[cfg(feature = "app-profilecardstamplistmenuitem")]
224impl ProfileCardStampListMenuItem {
225 #[doc = "`.ctor(crate::app::profilecardstampdata::ProfileCardStampData, bool, crate::app::profilecardstamplistmenu::ProfileCardStampListMenu_DecideEventHandler)` — overload selector"]
226 pub fn new(
227 profile_card_stamp_data: crate::app::profilecardstampdata::ProfileCardStampData,
228 initial_select: bool,
229 decide_event_handler: crate::app::profilecardstamplistmenu::ProfileCardStampListMenu_DecideEventHandler,
230 ) -> Self {
231 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
232 panic!(
233 "{}
234::{}
235 failed to instantiate",
236 ::core::stringify!(ProfileCardStampListMenuItem),
237 ::core::stringify!(new),
238 )
239 });
240 <Self as IProfileCardStampListMenuItemMethods>::ctor(this, profile_card_stamp_data, initial_select, decide_event_handler);
241 this
242 }
243}
244
245#[cfg(feature = "app-profilecardstamplistmenuitem")]
246#[doc(hidden)]
247pub mod prelude {
248 pub use super::{IProfileCardStampListMenuItem, IProfileCardStampListMenuItemMethods, ProfileCardStampListMenuItem};
249 #[cfg(feature = "app-basicmenuitem")]
250 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
251 #[cfg(feature = "system-object")]
252 pub use crate::system::object::IObjectMethods;
253 pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
254}