Skip to main content

engage/generated/app/
itemshopbuymenuitem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemshopbuymenuitem-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/itemshopbuymenuitem/ItemShopBuyMenuItem.md"))]
14    #[::unity::class(namespace = "App", name = "ItemShopBuyMenuItem")]
15    #[parent(crate::app::basicmenuitem::BasicMenuItem)]
16    pub struct ItemShopBuyMenuItem {
17        #[offset(104)]
18        #[rename(name = "m_Iid")]
19        pub m_iid: ::unity::Il2CppString,
20        #[offset(136)]
21        #[rename(name = "m_Unit")]
22        pub m_unit: crate::app::unit::Unit,
23        #[offset(144)]
24        #[rename(name = "m_activeTextColor2")]
25        pub m_active_text_color2: crate::unity_engine::color::Color,
26        #[offset(160)]
27        #[rename(name = "m_inactiveTextColor2")]
28        pub m_inactive_text_color2: crate::unity_engine::color::Color,
29        #[offset(176)]
30        #[rename(name = "m_SelectEventHandler")]
31        pub m_select_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler,
32        #[offset(184)]
33        #[rename(name = "m_DecideEventHandler")]
34        pub m_decide_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_DecideEventHandler,
35        #[offset(192)]
36        #[rename(name = "m_ChangeUnitToPrevEventHandler")]
37        pub m_change_unit_to_prev_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToPrevEventHandler,
38        #[offset(200)]
39        #[rename(name = "m_ChangeUnitToNextEventHandler")]
40        pub m_change_unit_to_next_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToNextEventHandler,
41        #[offset(208)]
42        #[rename(name = "m_ForFleaMarket")]
43        pub m_for_flea_market: bool,
44    }
45}
46
47#[cfg(feature = "app-itemshopbuymenuitem-types")]
48pub use __types::*;
49
50#[cfg(feature = "app-itemshopbuymenuitem")]
51pub trait IItemShopBuyMenuItemMethods: IItemShopBuyMenuItem {
52    #[doc = "`get_m_ItemData()` overload"]
53    fn get_m_item_data(self) -> crate::app::itemdata::ItemData {
54        unsafe {
55            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            ::unity::il2cpp_call!((::unity::module_base()+0x204b9f0usize)as*mut u8,crate::app::itemdata::ItemData;
57(ItemShopBuyMenuItem)__receiver)
58        }
59    }
60    #[doc = "`set_m_ItemData(crate::app::itemdata::ItemData)` overload"]
61    fn set_m_item_data(self, value: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> () {
62        unsafe {
63            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x204ba00usize)as*mut u8,();
65(ItemShopBuyMenuItem)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(value))
66        }
67    }
68    #[doc = "`get_m_UnitItem()` overload"]
69    fn get_m_unit_item(self) -> crate::app::unititem::UnitItem {
70        unsafe {
71            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x204ba10usize)as*mut u8,crate::app::unititem::UnitItem;
73(ItemShopBuyMenuItem)__receiver)
74        }
75    }
76    #[doc = "`set_m_UnitItem(crate::app::unititem::UnitItem)` overload"]
77    fn set_m_unit_item(self, value: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
78        unsafe {
79            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            ::unity::il2cpp_call!((::unity::module_base()+0x204ba20usize)as*mut u8,();
81(ItemShopBuyMenuItem)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(value))
82        }
83    }
84    #[doc = "`get_m_StockNum()` overload"]
85    fn get_m_stock_num(self) -> i32 {
86        unsafe {
87            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x204ba30usize)as*mut u8,i32;
89(ItemShopBuyMenuItem)__receiver)
90        }
91    }
92    #[doc = "`set_m_StockNum(i32)` overload"]
93    fn set_m_stock_num(self, value: impl ::core::convert::Into<i32>) -> () {
94        unsafe {
95            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96            ::unity::il2cpp_call!((::unity::module_base()+0x204ba40usize)as*mut u8,();
97(ItemShopBuyMenuItem)__receiver,(i32)::core::convert::Into::into(value))
98        }
99    }
100    #[doc = "`get_m_NewArrival()` overload"]
101    fn get_m_new_arrival(self) -> bool {
102        unsafe {
103            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104            ::unity::il2cpp_call!((::unity::module_base()+0x204ba50usize)as*mut u8,bool;
105(ItemShopBuyMenuItem)__receiver)
106        }
107    }
108    #[doc = "`set_m_NewArrival(bool)` overload"]
109    fn set_m_new_arrival(self, value: impl ::core::convert::Into<bool>) -> () {
110        unsafe {
111            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112            ::unity::il2cpp_call!((::unity::module_base()+0x204ba60usize)as*mut u8,();
113(ItemShopBuyMenuItem)__receiver,(bool)::core::convert::Into::into(value))
114        }
115    }
116    #[doc = "`.ctor(crate::app::shopcontent::ShopContent, crate::app::unit::Unit, crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler, crate::app::itemshopbuymenu::ItemShopBuyMenu_DecideEventHandler, crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToPrevEventHandler, crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToNextEventHandler, bool)` overload"]
117    fn ctor(
118        self,
119        shop_content: impl ::core::convert::Into<crate::app::shopcontent::ShopContent>,
120        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
121        select_event_handler: impl ::core::convert::Into<crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler>,
122        decide_event_handler: impl ::core::convert::Into<crate::app::itemshopbuymenu::ItemShopBuyMenu_DecideEventHandler>,
123        change_unit_to_prev_event_handler: impl ::core::convert::Into<crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToPrevEventHandler>,
124        change_unit_to_next_event_handler: impl ::core::convert::Into<crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToNextEventHandler>,
125        for_flea_market: impl ::core::convert::Into<bool>,
126    ) -> () {
127        unsafe {
128            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129            ::unity::il2cpp_call!((::unity::module_base()+0x204acd0usize)as*mut u8,();
130(ItemShopBuyMenuItem)__receiver,(crate::app::shopcontent::ShopContent)::core::convert::Into::into(shop_content),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler)::core::convert::Into::into(select_event_handler),(crate::app::itemshopbuymenu::ItemShopBuyMenu_DecideEventHandler)::core::convert::Into::into(decide_event_handler),(crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToPrevEventHandler)::core::convert::Into::into(change_unit_to_prev_event_handler),(crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToNextEventHandler)::core::convert::Into::into(change_unit_to_next_event_handler),(bool)::core::convert::Into::into(for_flea_market))
131        }
132    }
133    #[doc = "`GetName()` overload"]
134    fn get_name(self) -> ::unity::Il2CppString {
135        unsafe {
136            let __receiver = <ItemShopBuyMenuItem 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(4usize).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                        4usize,
147                        __vt.len(),
148                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
149                        "GetName",
150                    )
151                });
152                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> ::unity::Il2CppString =
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    #[doc = "`BuildAttribute()` overload"]
160    fn build_attribute(self) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
161        unsafe {
162            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            {
164                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
165                let __vi = *__vt.get(8usize).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                        8usize,
173                        __vt.len(),
174                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
175                        "BuildAttribute",
176                    )
177                });
178                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
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, __mi)
182            }
183        }
184    }
185    #[doc = "`OnBuild()` overload"]
186    fn on_build(self) -> () {
187        unsafe {
188            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            {
190                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
191                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
192                    panic!(
193                        "unity: virtual slot {}
194 out of range (vtable len {}
195) on the runtime class behind {}
196 (method `{}
197`)",
198                        10usize,
199                        __vt.len(),
200                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
201                        "OnBuild",
202                    )
203                });
204                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
205                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
206                __inner(__receiver, __mi)
207            }
208        }
209    }
210    #[doc = "`OnBuildMenuItemContent()` overload"]
211    fn on_build_menu_item_content(self) -> () {
212        unsafe {
213            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
214            {
215                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
216                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
217                    panic!(
218                        "unity: virtual slot {}
219 out of range (vtable len {}
220) on the runtime class behind {}
221 (method `{}
222`)",
223                        11usize,
224                        __vt.len(),
225                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
226                        "OnBuildMenuItemContent",
227                    )
228                });
229                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
230                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
231                __inner(__receiver, __mi)
232            }
233        }
234    }
235    #[doc = "`SetInitialColor()` overload"]
236    fn set_initial_color(self) -> () {
237        unsafe {
238            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239            ::unity::il2cpp_call!((::unity::module_base()+0x204bb50usize)as*mut u8,();
240(ItemShopBuyMenuItem)__receiver)
241        }
242    }
243    #[doc = "`IsEffective()` overload"]
244    fn is_effective(self) -> bool {
245        unsafe {
246            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            ::unity::il2cpp_call!((::unity::module_base()+0x204c120usize)as*mut u8,bool;
248(ItemShopBuyMenuItem)__receiver)
249        }
250    }
251    #[doc = "`SetTextColor(crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
252    fn set_text_color(
253        self,
254        active_color1: impl ::core::convert::Into<crate::unity_engine::color::Color>,
255        active_color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
256        inactive_color1: impl ::core::convert::Into<crate::unity_engine::color::Color>,
257        inactive_color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
258    ) -> () {
259        unsafe {
260            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x204bf40usize)as*mut u8,();
262(ItemShopBuyMenuItem)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(active_color1),(crate::unity_engine::color::Color)::core::convert::Into::into(active_color2),(crate::unity_engine::color::Color)::core::convert::Into::into(inactive_color1),(crate::unity_engine::color::Color)::core::convert::Into::into(inactive_color2))
263        }
264    }
265    #[doc = "`OnSelect()` overload"]
266    fn on_select(self) -> () {
267        unsafe {
268            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            {
270                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
271                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
272                    panic!(
273                        "unity: virtual slot {}
274 out of range (vtable len {}
275) on the runtime class behind {}
276 (method `{}
277`)",
278                        12usize,
279                        __vt.len(),
280                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
281                        "OnSelect",
282                    )
283                });
284                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
285                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
286                __inner(__receiver, __mi)
287            }
288        }
289    }
290    #[doc = "`OnDeselect()` overload"]
291    fn on_deselect(self) -> () {
292        unsafe {
293            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294            {
295                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
296                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
297                    panic!(
298                        "unity: virtual slot {}
299 out of range (vtable len {}
300) on the runtime class behind {}
301 (method `{}
302`)",
303                        13usize,
304                        __vt.len(),
305                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
306                        "OnDeselect",
307                    )
308                });
309                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
310                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
311                __inner(__receiver, __mi)
312            }
313        }
314    }
315    #[doc = "`OnCursorMoveEnd()` overload"]
316    fn on_cursor_move_end(self) -> () {
317        unsafe {
318            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319            {
320                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
321                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
322                    panic!(
323                        "unity: virtual slot {}
324 out of range (vtable len {}
325) on the runtime class behind {}
326 (method `{}
327`)",
328                        14usize,
329                        __vt.len(),
330                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
331                        "OnCursorMoveEnd",
332                    )
333                });
334                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
335                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
336                __inner(__receiver, __mi)
337            }
338        }
339    }
340    #[doc = "`ACall()` overload"]
341    fn a_call(self) -> crate::app::basicmenu::BasicMenu_Result {
342        unsafe {
343            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
344            {
345                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
346                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
347                    panic!(
348                        "unity: virtual slot {}
349 out of range (vtable len {}
350) on the runtime class behind {}
351 (method `{}
352`)",
353                        18usize,
354                        __vt.len(),
355                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
356                        "ACall",
357                    )
358                });
359                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
360                    ::core::mem::transmute(__vi.method_ptr);
361                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
362                __inner(__receiver, __mi)
363            }
364        }
365    }
366    #[doc = "`OnDoneToBuy()` overload"]
367    fn on_done_to_buy(self) -> () {
368        unsafe {
369            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370            ::unity::il2cpp_call!((::unity::module_base()+0x204b330usize)as*mut u8,();
371(ItemShopBuyMenuItem)__receiver)
372        }
373    }
374    #[doc = "`CustomCall()` overload"]
375    fn custom_call(self) -> crate::app::basicmenu::BasicMenu_Result {
376        unsafe {
377            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
378            {
379                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
380                let __vi = *__vt.get(26usize).unwrap_or_else(|| {
381                    panic!(
382                        "unity: virtual slot {}
383 out of range (vtable len {}
384) on the runtime class behind {}
385 (method `{}
386`)",
387                        26usize,
388                        __vt.len(),
389                        <ItemShopBuyMenuItem as ::unity::ClassIdentity>::NAME,
390                        "CustomCall",
391                    )
392                });
393                let __inner: extern "C" fn(ItemShopBuyMenuItem, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
394                    ::core::mem::transmute(__vi.method_ptr);
395                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
396                __inner(__receiver, __mi)
397            }
398        }
399    }
400    #[doc = "`GetUnitItemEmptyCount()` overload"]
401    fn get_unit_item_empty_count(self) -> i32 {
402        unsafe {
403            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404            ::unity::il2cpp_call!((::unity::module_base()+0x204d450usize)as*mut u8,i32;
405(ItemShopBuyMenuItem)__receiver)
406        }
407    }
408    #[doc = "`IsEnoughMoneyToBeBuyed()` overload"]
409    fn is_enough_money_to_be_buyed(self) -> bool {
410        unsafe {
411            let __receiver = <ItemShopBuyMenuItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412            ::unity::il2cpp_call!((::unity::module_base()+0x204d480usize)as*mut u8,bool;
413(ItemShopBuyMenuItem)__receiver)
414        }
415    }
416}
417
418#[cfg(feature = "app-itemshopbuymenuitem")]
419impl<__T: IItemShopBuyMenuItem> IItemShopBuyMenuItemMethods for __T {}
420
421#[cfg(feature = "app-itemshopbuymenuitem")]
422impl ItemShopBuyMenuItem {
423    pub fn get_m_item_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
425    }
426
427    pub fn set_m_item_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
429    }
430
431    pub fn get_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
433    }
434
435    pub fn set_m_unit_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
437    }
438
439    pub fn get_m_stock_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
440        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
441    }
442
443    pub fn set_m_stock_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
445    }
446
447    pub fn get_m_new_arrival_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
449    }
450
451    pub fn set_m_new_arrival_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
453    }
454
455    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
457    }
458
459    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
461    }
462
463    pub fn build_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
465    }
466
467    pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
469    }
470
471    pub fn on_build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
473    }
474
475    pub fn set_initial_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
477    }
478
479    pub fn is_effective_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
481    }
482
483    pub fn set_text_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
485    }
486
487    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
489    }
490
491    pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
493    }
494
495    pub fn on_cursor_move_end_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
497    }
498
499    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
501    }
502
503    pub fn on_done_to_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
505    }
506
507    pub fn custom_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
509    }
510
511    pub fn get_unit_item_empty_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
512        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
513    }
514
515    pub fn is_enough_money_to_be_buyed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
516        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
517    }
518}
519
520#[cfg(feature = "app-itemshopbuymenuitem")]
521impl ItemShopBuyMenuItem {
522    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `GetName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
523    pub unsafe fn get_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
524        let __mi = Self::get_name_method_info();
525        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
526        __inner(this.into(), ::core::option::Option::None)
527    }
528
529    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `BuildAttribute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
530    pub unsafe fn build_attribute(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenuitem::BasicMenuItem_Attribute {
531        let __mi = Self::build_attribute_method_info();
532        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenuitem::BasicMenuItem_Attribute =
533            ::core::mem::transmute(__mi.method_ptr);
534        __inner(this.into(), ::core::option::Option::None)
535    }
536
537    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
538    pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
539        let __mi = Self::on_build_method_info();
540        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
541        __inner(this.into(), ::core::option::Option::None)
542    }
543
544    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `OnBuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
545    pub unsafe fn on_build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
546        let __mi = Self::on_build_menu_item_content_method_info();
547        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
548        __inner(this.into(), ::core::option::Option::None)
549    }
550
551    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
552    pub unsafe fn on_select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
553        let __mi = Self::on_select_method_info();
554        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
555        __inner(this.into(), ::core::option::Option::None)
556    }
557
558    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
559    pub unsafe fn on_deselect(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
560        let __mi = Self::on_deselect_method_info();
561        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
562        __inner(this.into(), ::core::option::Option::None)
563    }
564
565    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `OnCursorMoveEnd`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
566    pub unsafe fn on_cursor_move_end(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
567        let __mi = Self::on_cursor_move_end_method_info();
568        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
569        __inner(this.into(), ::core::option::Option::None)
570    }
571
572    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
573    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
574        let __mi = Self::a_call_method_info();
575        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
576            ::core::mem::transmute(__mi.method_ptr);
577        __inner(this.into(), ::core::option::Option::None)
578    }
579
580    #[doc = "Direct (non-virtual) call to `ItemShopBuyMenuItem`'s own `CustomCall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
581    pub unsafe fn custom_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::basicmenu::BasicMenu_Result {
582        let __mi = Self::custom_call_method_info();
583        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::basicmenu::BasicMenu_Result =
584            ::core::mem::transmute(__mi.method_ptr);
585        __inner(this.into(), ::core::option::Option::None)
586    }
587}
588
589#[cfg(feature = "app-itemshopbuymenuitem")]
590impl ItemShopBuyMenuItem {
591    #[doc = "`.ctor(crate::app::shopcontent::ShopContent, crate::app::unit::Unit, crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler, crate::app::itemshopbuymenu::ItemShopBuyMenu_DecideEventHandler, crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToPrevEventHandler, crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToNextEventHandler, bool)` — overload selector"]
592    pub fn new(
593        shop_content: crate::app::shopcontent::ShopContent,
594        unit: crate::app::unit::Unit,
595        select_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_SelectEventHandler,
596        decide_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_DecideEventHandler,
597        change_unit_to_prev_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToPrevEventHandler,
598        change_unit_to_next_event_handler: crate::app::itemshopbuymenu::ItemShopBuyMenu_ChangeUnitToNextEventHandler,
599        for_flea_market: bool,
600    ) -> Self {
601        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
602            panic!(
603                "{}
604::{}
605 failed to instantiate",
606                ::core::stringify!(ItemShopBuyMenuItem),
607                ::core::stringify!(new),
608            )
609        });
610        <Self as IItemShopBuyMenuItemMethods>::ctor(
611            this,
612            shop_content,
613            unit,
614            select_event_handler,
615            decide_event_handler,
616            change_unit_to_prev_event_handler,
617            change_unit_to_next_event_handler,
618            for_flea_market,
619        );
620        this
621    }
622}
623
624#[cfg(feature = "app-itemshopbuymenuitem")]
625#[doc(hidden)]
626pub mod prelude {
627    pub use super::{IItemShopBuyMenuItem, IItemShopBuyMenuItemMethods, ItemShopBuyMenuItem};
628    #[cfg(feature = "app-basicmenuitem")]
629    pub use crate::app::basicmenuitem::IBasicMenuItemMethods;
630    #[cfg(feature = "system-object")]
631    pub use crate::system::object::IObjectMethods;
632    pub use crate::{app::basicmenuitem::IBasicMenuItem, system::object::IObject};
633}