Skip to main content

engage/generated/app/
weaponshopbuymenuitem.rs

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