1#[cfg(feature = "app-shopsellmenuitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::basicmenuitem::{BasicMenuItem, IBasicMenuItem},
10 system::{
11 delegate::{Delegate, IDelegate},
12 multicastdelegate::{IMulticastDelegate, MulticastDelegate},
13 object::{IObject, Object},
14 },
15 };
16
17 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopsellmenuitem/ShopSellMenuItem_DecideItemEventHandler.md"))]
18 #[::unity::class(namespace = "App", name = "ShopSellMenuItem.DecideItemEventHandler")]
19 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
20 pub struct ShopSellMenuItem_DecideItemEventHandler {}
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopsellmenuitem/ShopSellMenuItem_CancelItemEventHandler.md"))]
23 #[::unity::class(namespace = "App", name = "ShopSellMenuItem.CancelItemEventHandler")]
24 #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25 pub struct ShopSellMenuItem_CancelItemEventHandler {}
26
27 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopsellmenuitem/ShopSellMenuItem.md"))]
28 #[::unity::class(namespace = "App", name = "ShopSellMenuItem")]
29 #[parent(crate::app::basicmenuitem::BasicMenuItem)]
30 pub struct ShopSellMenuItem {
31 #[offset(132)]
32 #[rename(name = "m_activeTextColor2")]
33 pub m_active_text_color2: crate::unity_engine::color::Color,
34 #[offset(148)]
35 #[rename(name = "m_inactiveTextColor2")]
36 pub m_inactive_text_color2: crate::unity_engine::color::Color,
37 #[offset(168)]
38 #[rename(name = "m_SelectEventHandler")]
39 pub m_select_event_handler: crate::app::shopsellmenu::ShopSellMenu_SelectEventHandler,
40 #[offset(176)]
41 #[rename(name = "m_DecideItemEventHandler")]
42 pub m_decide_item_event_handler: crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler,
43 #[offset(184)]
44 #[rename(name = "m_CancelItemEventHandler")]
45 pub m_cancel_item_event_handler: crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler,
46 #[offset(192)]
47 #[rename(name = "m_DecideEventHandler")]
48 pub m_decide_event_handler: crate::app::shopsellmenu::ShopSellMenu_DecideEventHandler,
49 #[offset(200)]
50 #[rename(name = "m_ChangeUnitToPrevEventHandler")]
51 pub m_change_unit_to_prev_event_handler: crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToPrevEventHandler,
52 #[offset(208)]
53 #[rename(name = "m_ChangeUnitToNextEventHandler")]
54 pub m_change_unit_to_next_event_handler: crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToNextEventHandler,
55 }
56}
57
58#[cfg(feature = "app-shopsellmenuitem-types")]
59pub use __types::*;
60
61#[cfg(feature = "app-shopsellmenuitem")]
62pub trait IShopSellMenuItem_DecideItemEventHandlerMethods: IShopSellMenuItem_DecideItemEventHandler {
63 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
64 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
65 unsafe {
66 let __receiver = <ShopSellMenuItem_DecideItemEventHandler as ::unity::FromIlInstance>::from_il_instance(
67 <Self as ::unity::SystemObject>::as_instance(self),
68 );
69 ::unity::il2cpp_call!((::unity::module_base()+0x1d6c1c0usize)as*mut u8,();
70(ShopSellMenuItem_DecideItemEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
71 }
72 }
73 #[doc = "`Invoke(i32)` overload"]
74 fn invoke(self, item_index: impl ::core::convert::Into<i32>) -> () {
75 unsafe {
76 let __receiver = <ShopSellMenuItem_DecideItemEventHandler as ::unity::FromIlInstance>::from_il_instance(
77 <Self as ::unity::SystemObject>::as_instance(self),
78 );
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 13usize,
89 __vt.len(),
90 <ShopSellMenuItem_DecideItemEventHandler as ::unity::ClassIdentity>::NAME,
91 "Invoke",
92 )
93 });
94 let __inner: extern "C" fn(ShopSellMenuItem_DecideItemEventHandler, i32, ::unity::OptionalMethod) -> () =
95 ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(__receiver, ::core::convert::Into::into(item_index), __mi)
98 }
99 }
100 }
101}
102
103#[cfg(feature = "app-shopsellmenuitem")]
104impl<__T: IShopSellMenuItem_DecideItemEventHandler> IShopSellMenuItem_DecideItemEventHandlerMethods for __T {}
105
106#[cfg(feature = "app-shopsellmenuitem")]
107impl ShopSellMenuItem_DecideItemEventHandler {
108 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110 }
111
112 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114 }
115}
116
117#[cfg(feature = "app-shopsellmenuitem")]
118impl ShopSellMenuItem_DecideItemEventHandler {
119 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem_DecideItemEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
120 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, item_index: i32) -> () {
121 let __mi = Self::invoke_method_info();
122 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
123 __inner(this.into(), item_index, ::core::option::Option::None)
124 }
125}
126
127#[cfg(feature = "app-shopsellmenuitem")]
128impl ShopSellMenuItem_DecideItemEventHandler {
129 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
130 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
131 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
132 panic!(
133 "{}
134::{}
135 failed to instantiate",
136 ::core::stringify!(ShopSellMenuItem_DecideItemEventHandler),
137 ::core::stringify!(new),
138 )
139 });
140 <Self as IShopSellMenuItem_DecideItemEventHandlerMethods>::ctor(this, object, method);
141 this
142 }
143}
144
145#[cfg(feature = "app-shopsellmenuitem")]
146pub trait IShopSellMenuItem_CancelItemEventHandlerMethods: IShopSellMenuItem_CancelItemEventHandler {
147 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
148 fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
149 unsafe {
150 let __receiver = <ShopSellMenuItem_CancelItemEventHandler as ::unity::FromIlInstance>::from_il_instance(
151 <Self as ::unity::SystemObject>::as_instance(self),
152 );
153 ::unity::il2cpp_call!((::unity::module_base()+0x1d6bed0usize)as*mut u8,();
154(ShopSellMenuItem_CancelItemEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
155 }
156 }
157 #[doc = "`Invoke(i32)` overload"]
158 fn invoke(self, item_index: impl ::core::convert::Into<i32>) -> () {
159 unsafe {
160 let __receiver = <ShopSellMenuItem_CancelItemEventHandler as ::unity::FromIlInstance>::from_il_instance(
161 <Self as ::unity::SystemObject>::as_instance(self),
162 );
163 {
164 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
166 panic!(
167 "unity: virtual slot {}
168 out of range (vtable len {}
169) on the runtime class behind {}
170 (method `{}
171`)",
172 13usize,
173 __vt.len(),
174 <ShopSellMenuItem_CancelItemEventHandler as ::unity::ClassIdentity>::NAME,
175 "Invoke",
176 )
177 });
178 let __inner: extern "C" fn(ShopSellMenuItem_CancelItemEventHandler, i32, ::unity::OptionalMethod) -> () =
179 ::core::mem::transmute(__vi.method_ptr);
180 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
181 __inner(__receiver, ::core::convert::Into::into(item_index), __mi)
182 }
183 }
184 }
185}
186
187#[cfg(feature = "app-shopsellmenuitem")]
188impl<__T: IShopSellMenuItem_CancelItemEventHandler> IShopSellMenuItem_CancelItemEventHandlerMethods for __T {}
189
190#[cfg(feature = "app-shopsellmenuitem")]
191impl ShopSellMenuItem_CancelItemEventHandler {
192 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
194 }
195
196 pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
198 }
199}
200
201#[cfg(feature = "app-shopsellmenuitem")]
202impl ShopSellMenuItem_CancelItemEventHandler {
203 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem_CancelItemEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
204 pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, item_index: i32) -> () {
205 let __mi = Self::invoke_method_info();
206 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
207 __inner(this.into(), item_index, ::core::option::Option::None)
208 }
209}
210
211#[cfg(feature = "app-shopsellmenuitem")]
212impl ShopSellMenuItem_CancelItemEventHandler {
213 #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
214 pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
215 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
216 panic!(
217 "{}
218::{}
219 failed to instantiate",
220 ::core::stringify!(ShopSellMenuItem_CancelItemEventHandler),
221 ::core::stringify!(new),
222 )
223 });
224 <Self as IShopSellMenuItem_CancelItemEventHandlerMethods>::ctor(this, object, method);
225 this
226 }
227}
228
229#[cfg(feature = "app-shopsellmenuitem")]
230pub trait IShopSellMenuItemMethods: IShopSellMenuItem {
231 #[doc = "`get_m_Unit()` overload"]
232 fn get_m_unit(self) -> crate::app::unit::Unit {
233 unsafe {
234 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x21b5610usize)as*mut u8,crate::app::unit::Unit;
236(ShopSellMenuItem)__receiver)
237 }
238 }
239 #[doc = "`set_m_Unit(crate::app::unit::Unit)` overload"]
240 fn set_m_unit(self, value: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
241 unsafe {
242 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 ::unity::il2cpp_call!((::unity::module_base()+0x21b5620usize)as*mut u8,();
244(ShopSellMenuItem)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(value))
245 }
246 }
247 #[doc = "`get_m_ItemIndex()` overload"]
248 fn get_m_item_index(self) -> i32 {
249 unsafe {
250 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x21b5630usize)as*mut u8,i32;
252(ShopSellMenuItem)__receiver)
253 }
254 }
255 #[doc = "`set_m_ItemIndex(i32)` overload"]
256 fn set_m_item_index(self, value: impl ::core::convert::Into<i32>) -> () {
257 unsafe {
258 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!((::unity::module_base()+0x21b5640usize)as*mut u8,();
260(ShopSellMenuItem)__receiver,(i32)::core::convert::Into::into(value))
261 }
262 }
263 #[doc = "`get_m_UnitItem()` overload"]
264 fn get_m_unit_item(self) -> crate::app::unititem::UnitItem {
265 unsafe {
266 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x21b5650usize)as*mut u8,crate::app::unititem::UnitItem;
268(ShopSellMenuItem)__receiver)
269 }
270 }
271 #[doc = "`set_m_UnitItem(crate::app::unititem::UnitItem)` overload"]
272 fn set_m_unit_item(self, value: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
273 unsafe {
274 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275 ::unity::il2cpp_call!((::unity::module_base()+0x21b5660usize)as*mut u8,();
276(ShopSellMenuItem)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(value))
277 }
278 }
279 #[doc = "`get_m_Decided()` overload"]
280 fn get_m_decided(self) -> bool {
281 unsafe {
282 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283 ::unity::il2cpp_call!((::unity::module_base()+0x21b5670usize)as*mut u8,bool;
284(ShopSellMenuItem)__receiver)
285 }
286 }
287 #[doc = "`set_m_Decided(bool)` overload"]
288 fn set_m_decided(self, value: impl ::core::convert::Into<bool>) -> () {
289 unsafe {
290 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 ::unity::il2cpp_call!((::unity::module_base()+0x21b5680usize)as*mut u8,();
292(ShopSellMenuItem)__receiver,(bool)::core::convert::Into::into(value))
293 }
294 }
295 #[doc = "`get_m_SortValue()` overload"]
296 fn get_m_sort_value(self) -> i64 {
297 unsafe {
298 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 ::unity::il2cpp_call!((::unity::module_base()+0x21b5690usize)as*mut u8,i64;
300(ShopSellMenuItem)__receiver)
301 }
302 }
303 #[doc = "`set_m_SortValue(i64)` overload"]
304 fn set_m_sort_value(self, value: impl ::core::convert::Into<i64>) -> () {
305 unsafe {
306 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 ::unity::il2cpp_call!((::unity::module_base()+0x21b56a0usize)as*mut u8,();
308(ShopSellMenuItem)__receiver,(i64)::core::convert::Into::into(value))
309 }
310 }
311 #[doc = "`.ctor(crate::app::unit::Unit, i32, bool, crate::app::shopsellmenu::ShopSellMenu_SelectEventHandler, crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler, crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler, crate::app::shopsellmenu::ShopSellMenu_DecideEventHandler, crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToPrevEventHandler, crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToNextEventHandler)` overload"]
312 fn ctor(
313 self,
314 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
315 item_index: impl ::core::convert::Into<i32>,
316 decided: impl ::core::convert::Into<bool>,
317 select_event_handler: impl ::core::convert::Into<crate::app::shopsellmenu::ShopSellMenu_SelectEventHandler>,
318 decide_item_event_handler: impl ::core::convert::Into<crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler>,
319 cancel_item_event_handler: impl ::core::convert::Into<crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler>,
320 decide_event_handler: impl ::core::convert::Into<crate::app::shopsellmenu::ShopSellMenu_DecideEventHandler>,
321 change_unit_to_prev_event_handler: impl ::core::convert::Into<crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToPrevEventHandler>,
322 change_unit_to_next_event_handler: impl ::core::convert::Into<crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToNextEventHandler>,
323 ) -> () {
324 unsafe {
325 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
326 ::unity::il2cpp_call!((::unity::module_base()+0x21b3650usize)as*mut u8,();
327(ShopSellMenuItem)__receiver,(crate::app::unit::Unit)::core::convert::Into::into(unit),(i32)::core::convert::Into::into(item_index),(bool)::core::convert::Into::into(decided),(crate::app::shopsellmenu::ShopSellMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler)::core::convert::Into::into(decide_item_event_handler),(crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler)::core::convert::Into::into(cancel_item_event_handler),(crate::app::shopsellmenu::ShopSellMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToPrevEventHandler)::core::convert::Into::into(change_unit_to_prev_event_handler),(crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToNextEventHandler)::core::convert::Into::into(change_unit_to_next_event_handler))
328 }
329 }
330 #[doc = "`BuildAttribute()` overload"]
331 fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
332 unsafe {
333 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
334 {
335 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
336 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
337 panic!(
338 "unity: virtual slot {}
339 out of range (vtable len {}
340) on the runtime class behind {}
341 (method `{}
342`)",
343 8usize,
344 __vt.len(),
345 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
346 "BuildAttribute",
347 )
348 });
349 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
350 ::core::mem::transmute(__vi.method_ptr);
351 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
352 __inner(__receiver, __mi)
353 }
354 }
355 }
356 #[doc = "`OnBuild()` overload"]
357 fn on_build(self) -> () {
358 unsafe {
359 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
360 {
361 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
362 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
363 panic!(
364 "unity: virtual slot {}
365 out of range (vtable len {}
366) on the runtime class behind {}
367 (method `{}
368`)",
369 10usize,
370 __vt.len(),
371 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
372 "OnBuild",
373 )
374 });
375 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
376 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
377 __inner(__receiver, __mi)
378 }
379 }
380 }
381 #[doc = "`OnBuildMenuItemContent()` overload"]
382 fn on_build_menu_item_content(self) -> () {
383 unsafe {
384 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
385 {
386 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
387 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
388 panic!(
389 "unity: virtual slot {}
390 out of range (vtable len {}
391) on the runtime class behind {}
392 (method `{}
393`)",
394 11usize,
395 __vt.len(),
396 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
397 "OnBuildMenuItemContent",
398 )
399 });
400 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
401 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
402 __inner(__receiver, __mi)
403 }
404 }
405 }
406 #[doc = "`SetInitialColor()` overload"]
407 fn set_initial_color(self) -> () {
408 unsafe {
409 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
410 ::unity::il2cpp_call!((::unity::module_base()+0x21b5930usize)as*mut u8,();
411(ShopSellMenuItem)__receiver)
412 }
413 }
414 #[doc = "`IsEffective()` overload"]
415 fn is_effective(self) -> bool {
416 unsafe {
417 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
418 ::unity::il2cpp_call!((::unity::module_base()+0x21b5ca0usize)as*mut u8,bool;
419(ShopSellMenuItem)__receiver)
420 }
421 }
422 #[doc = "`SetTextColor(crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
423 fn set_text_color(
424 self,
425 active_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
426 active_color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
427 inactive_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
428 inactive_color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
429 ) -> () {
430 unsafe {
431 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432 ::unity::il2cpp_call!((::unity::module_base()+0x21b68a0usize)as*mut u8,();
433(ShopSellMenuItem)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(active_color),(crate::unity_engine::color::Color)::core::convert::Into::into(active_color2),(crate::unity_engine::color::Color)::core::convert::Into::into(inactive_color),(crate::unity_engine::color::Color)::core::convert::Into::into(inactive_color2))
434 }
435 }
436 #[doc = "`SetDecide()` overload"]
437 fn set_decide(self) -> () {
438 unsafe {
439 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
440 ::unity::il2cpp_call!((::unity::module_base()+0x21b5820usize)as*mut u8,();
441(ShopSellMenuItem)__receiver)
442 }
443 }
444 #[doc = "`SetNotDecide()` overload"]
445 fn set_not_decide(self) -> () {
446 unsafe {
447 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
448 ::unity::il2cpp_call!((::unity::module_base()+0x21b5730usize)as*mut u8,();
449(ShopSellMenuItem)__receiver)
450 }
451 }
452 #[doc = "`OnSelect()` overload"]
453 fn on_select(self) -> () {
454 unsafe {
455 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
456 {
457 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
458 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
459 panic!(
460 "unity: virtual slot {}
461 out of range (vtable len {}
462) on the runtime class behind {}
463 (method `{}
464`)",
465 12usize,
466 __vt.len(),
467 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
468 "OnSelect",
469 )
470 });
471 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
472 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
473 __inner(__receiver, __mi)
474 }
475 }
476 }
477 #[doc = "`OnDeselect()` overload"]
478 fn on_deselect(self) -> () {
479 unsafe {
480 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481 {
482 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
483 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
484 panic!(
485 "unity: virtual slot {}
486 out of range (vtable len {}
487) on the runtime class behind {}
488 (method `{}
489`)",
490 13usize,
491 __vt.len(),
492 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
493 "OnDeselect",
494 )
495 });
496 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
497 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
498 __inner(__receiver, __mi)
499 }
500 }
501 }
502 #[doc = "`OnCursorMoveEnd()` overload"]
503 fn on_cursor_move_end(self) -> () {
504 unsafe {
505 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
506 {
507 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
508 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
509 panic!(
510 "unity: virtual slot {}
511 out of range (vtable len {}
512) on the runtime class behind {}
513 (method `{}
514`)",
515 14usize,
516 __vt.len(),
517 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
518 "OnCursorMoveEnd",
519 )
520 });
521 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
522 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
523 __inner(__receiver, __mi)
524 }
525 }
526 }
527 #[doc = "`SetDecideItemEventHandler(crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler)` overload"]
528 fn set_decide_item_event_handler(
529 self,
530 decide_item_event_handler: impl ::core::convert::Into<crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler>,
531 ) -> () {
532 unsafe {
533 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
534 ::unity::il2cpp_call!((::unity::module_base()+0x21b6e30usize)as*mut u8,();
535(ShopSellMenuItem)__receiver,(crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler)::core::convert::Into::into(decide_item_event_handler))
536 }
537 }
538 #[doc = "`SetCancelItemEventHandler(crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler)` overload"]
539 fn set_cancel_item_event_handler(
540 self,
541 cancel_item_event_handler: impl ::core::convert::Into<crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler>,
542 ) -> () {
543 unsafe {
544 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
545 ::unity::il2cpp_call!((::unity::module_base()+0x21b6e40usize)as*mut u8,();
546(ShopSellMenuItem)__receiver,(crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler)::core::convert::Into::into(cancel_item_event_handler))
547 }
548 }
549 #[doc = "`ACall()` overload"]
550 fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
551 unsafe {
552 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
553 {
554 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
555 let __vi = *__vt.get(18usize).unwrap_or_else(|| {
556 panic!(
557 "unity: virtual slot {}
558 out of range (vtable len {}
559) on the runtime class behind {}
560 (method `{}
561`)",
562 18usize,
563 __vt.len(),
564 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
565 "ACall",
566 )
567 });
568 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
569 ::core::mem::transmute(__vi.method_ptr);
570 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
571 __inner(__receiver, __mi)
572 }
573 }
574 }
575 #[doc = "`BCall()` overload"]
576 fn b_call(self) -> crate::app::basicmenu::BasicMenu_Result {
577 unsafe {
578 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
579 {
580 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
581 let __vi = *__vt.get(19usize).unwrap_or_else(|| {
582 panic!(
583 "unity: virtual slot {}
584 out of range (vtable len {}
585) on the runtime class behind {}
586 (method `{}
587`)",
588 19usize,
589 __vt.len(),
590 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
591 "BCall",
592 )
593 });
594 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
595 ::core::mem::transmute(__vi.method_ptr);
596 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
597 __inner(__receiver, __mi)
598 }
599 }
600 }
601 #[doc = "`CustomCall()` overload"]
602 fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
603 unsafe {
604 let __receiver = <ShopSellMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
605 {
606 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
607 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
608 panic!(
609 "unity: virtual slot {}
610 out of range (vtable len {}
611) on the runtime class behind {}
612 (method `{}
613`)",
614 26usize,
615 __vt.len(),
616 <ShopSellMenuItem as ::unity::ClassIdentity>::NAME,
617 "CustomCall",
618 )
619 });
620 let __inner: extern "C" fn(ShopSellMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
621 ::core::mem::transmute(__vi.method_ptr);
622 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
623 __inner(__receiver, __mi)
624 }
625 }
626 }
627}
628
629#[cfg(feature = "app-shopsellmenuitem")]
630impl<__T: IShopSellMenuItem> IShopSellMenuItemMethods for __T {}
631
632#[cfg(feature = "app-shopsellmenuitem")]
633impl ShopSellMenuItem {
634 pub fn get_m_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
635 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
636 }
637
638 pub fn set_m_unit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
639 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
640 }
641
642 pub fn get_m_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
643 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
644 }
645
646 pub fn set_m_item_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
647 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
648 }
649
650 pub fn get_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
651 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
652 }
653
654 pub fn set_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
655 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
656 }
657
658 pub fn get_m_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
659 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
660 }
661
662 pub fn set_m_decided_method_info() -> &'static ::unity::il2cpp::MethodInfo {
663 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
664 }
665
666 pub fn get_m_sort_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
667 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
668 }
669
670 pub fn set_m_sort_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
671 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
672 }
673
674 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
675 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
676 }
677
678 pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
679 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
680 }
681
682 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
683 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
684 }
685
686 pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
687 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
688 }
689
690 pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
691 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
692 }
693
694 pub fn is_effective_method_info() -> &'static ::unity::il2cpp::MethodInfo {
695 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
696 }
697
698 pub fn set_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
699 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
700 }
701
702 pub fn set_decide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
703 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
704 }
705
706 pub fn set_not_decide_method_info() -> &'static ::unity::il2cpp::MethodInfo {
707 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
708 }
709
710 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
711 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
712 }
713
714 pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
715 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
716 }
717
718 pub fn on_cursor_move_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
719 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
720 }
721
722 pub fn set_decide_item_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
723 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
724 }
725
726 pub fn set_cancel_item_event_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
727 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
728 }
729
730 pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
731 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
732 }
733
734 pub fn b_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
735 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
736 }
737
738 pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
739 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
740 }
741}
742
743#[cfg(feature = "app-shopsellmenuitem")]
744impl ShopSellMenuItem {
745 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
746 pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
747 let __mi = Self::build_attribute_method_info();
748 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
749 ::core::mem::transmute(__mi.method_ptr);
750 __inner(this.into(), ::core::option::Option::None)
751 }
752
753 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
754 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
755 let __mi = Self::on_build_method_info();
756 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
757 __inner(this.into(), ::core::option::Option::None)
758 }
759
760 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
761 pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
762 let __mi = Self::on_build_menu_item_content_method_info();
763 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
764 __inner(this.into(), ::core::option::Option::None)
765 }
766
767 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
768 pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
769 let __mi = Self::on_select_method_info();
770 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
771 __inner(this.into(), ::core::option::Option::None)
772 }
773
774 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
775 pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
776 let __mi = Self::on_deselect_method_info();
777 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
778 __inner(this.into(), ::core::option::Option::None)
779 }
780
781 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `OnCursorMoveEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
782 pub unsafe fn on_cursor_move_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
783 let __mi = Self::on_cursor_move_end_method_info();
784 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
785 __inner(this.into(), ::core::option::Option::None)
786 }
787
788 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
789 pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
790 let __mi = Self::a_call_method_info();
791 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
792 ::core::mem::transmute(__mi.method_ptr);
793 __inner(this.into(), ::core::option::Option::None)
794 }
795
796 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `BCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
797 pub unsafe fn b_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
798 let __mi = Self::b_call_method_info();
799 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
800 ::core::mem::transmute(__mi.method_ptr);
801 __inner(this.into(), ::core::option::Option::None)
802 }
803
804 #[doc = "Direct (non-virtual) call to `ShopSellMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
805 pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
806 let __mi = Self::custom_call_method_info();
807 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
808 ::core::mem::transmute(__mi.method_ptr);
809 __inner(this.into(), ::core::option::Option::None)
810 }
811}
812
813#[cfg(feature = "app-shopsellmenuitem")]
814impl ShopSellMenuItem {
815 #[doc = "`.ctor(crate::app::unit::Unit, i32, bool, crate::app::shopsellmenu::ShopSellMenu_SelectEventHandler, crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler, crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler, crate::app::shopsellmenu::ShopSellMenu_DecideEventHandler, crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToPrevEventHandler, crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToNextEventHandler)` — overload selector"]
816 pub fn new(
817 unit: crate::app::unit::Unit,
818 item_index: i32,
819 decided: bool,
820 select_event_handler: crate::app::shopsellmenu::ShopSellMenu_SelectEventHandler,
821 decide_item_event_handler: crate::app::shopsellmenuitem::ShopSellMenuItem_DecideItemEventHandler,
822 cancel_item_event_handler: crate::app::shopsellmenuitem::ShopSellMenuItem_CancelItemEventHandler,
823 decide_event_handler: crate::app::shopsellmenu::ShopSellMenu_DecideEventHandler,
824 change_unit_to_prev_event_handler: crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToPrevEventHandler,
825 change_unit_to_next_event_handler: crate::app::shopsellmenu::ShopSellMenu_ChangeUnitToNextEventHandler,
826 ) -> Self {
827 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
828 panic!(
829 "{}
830::{}
831 failed to instantiate",
832 ::core::stringify!(ShopSellMenuItem),
833 ::core::stringify!(new),
834 )
835 });
836 <Self as IShopSellMenuItemMethods>::ctor(
837 this,
838 unit,
839 item_index,
840 decided,
841 select_event_handler,
842 decide_item_event_handler,
843 cancel_item_event_handler,
844 decide_event_handler,
845 change_unit_to_prev_event_handler,
846 change_unit_to_next_event_handler,
847 );
848 this
849 }
850}
851
852#[cfg(feature = "app-shopsellmenuitem")]
853#[doc(hidden)]
854pub mod prelude {
855 pub use super::{
856 IShopSellMenuItem, IShopSellMenuItemMethods, IShopSellMenuItem_CancelItemEventHandler, IShopSellMenuItem_CancelItemEventHandlerMethods,
857 IShopSellMenuItem_DecideItemEventHandler, IShopSellMenuItem_DecideItemEventHandlerMethods, ShopSellMenuItem,
858 ShopSellMenuItem_CancelItemEventHandler, ShopSellMenuItem_DecideItemEventHandler,
859 };
860 #[cfg(feature = "app-basicmenuitem")]
861 pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
862 #[cfg(feature = "system-delegate")]
863 pub use crate::system::delegate::IDelegateMethods;
864 #[cfg(feature = "system-multicastdelegate")]
865 pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
866 #[cfg(feature = "system-object")]
867 pub use crate::system::object::IObjectMethods;
868 pub use crate::{
869 app::basicmenuitem::IBasicMenuItem,
870 system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
871 };
872}