Skip to main content

engage/generated/app/
weaponshopbuyroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-weaponshopbuyroot-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            delegate::{Delegate, IDelegate},
11            multicastdelegate::{IMulticastDelegate, MulticastDelegate},
12            object::{IObject, Object},
13        },
14        unity_engine::{
15            behaviour::{Behaviour, IBehaviour},
16            component::{Component, IComponent},
17            monobehaviour::{IMonoBehaviour, MonoBehaviour},
18            object_2::{IObject_2, Object_2},
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuyroot/WeaponShopBuyRoot_ReturnEventHandler.md"))]
23    #[::unity::class(namespace = "App", name = "WeaponShopBuyRoot.ReturnEventHandler")]
24    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25    pub struct WeaponShopBuyRoot_ReturnEventHandler {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuyroot/WeaponShopBuyRoot.md"))]
28    #[::unity::class(namespace = "App", name = "WeaponShopBuyRoot")]
29    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
30    pub struct WeaponShopBuyRoot {
31        #[static_field]
32        #[rename(name = "PrefabPath")]
33        pub prefab_path: ::unity::Il2CppString,
34        #[offset(24)]
35        #[rename(name = "m_RootCanvasGroup")]
36        pub m_root_canvas_group: crate::unity_engine::canvasgroup::CanvasGroup,
37        #[offset(32)]
38        #[rename(name = "m_MenuObject")]
39        pub m_menu_object: crate::unity_engine::gameobject::GameObject,
40        #[offset(40)]
41        #[rename(name = "m_UnitItemMenuContent")]
42        pub m_unit_item_menu_content: crate::app::unititemmenucontent::UnitItemMenuContent,
43        #[offset(48)]
44        #[rename(name = "m_HoldingInfoWindowObject")]
45        pub m_holding_info_window_object: crate::unity_engine::gameobject::GameObject,
46        #[offset(56)]
47        #[rename(name = "m_ItemHelpObject")]
48        pub m_item_help_object: crate::unity_engine::gameobject::GameObject,
49        #[offset(64)]
50        #[rename(name = "m_UnitImageObject")]
51        pub m_unit_image_object: crate::unity_engine::gameobject::GameObject,
52        #[offset(72)]
53        #[rename(name = "m_PriceDownObject")]
54        pub m_price_down_object: crate::unity_engine::gameobject::GameObject,
55        #[offset(80)]
56        #[rename(name = "m_PriceDownText")]
57        pub m_price_down_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
58        #[offset(88)]
59        #[rename(name = "m_EquipableWeaponsCaptionText")]
60        pub m_equipable_weapons_caption_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
61        #[offset(96)]
62        #[rename(name = "m_EquipableWeaponInfo")]
63        pub m_equipable_weapon_info: ::unity::Array<crate::app::weaponshopbuyroot::WeaponShopBuyRoot_EquipableWeaponInfo>,
64        #[offset(104)]
65        #[rename(name = "m_Unit")]
66        pub m_unit: crate::app::unit::Unit,
67        #[offset(112)]
68        #[rename(name = "m_WeaponShopBuyMenu")]
69        pub m_weapon_shop_buy_menu: crate::app::weaponshopbuymenu::WeaponShopBuyMenu,
70        #[offset(120)]
71        #[rename(name = "m_UnitItemMenu")]
72        pub m_unit_item_menu: crate::app::unititemmenu::UnitItemMenu,
73        #[offset(128)]
74        #[rename(name = "m_WeaponHoldingInfoWindow")]
75        pub m_weapon_holding_info_window: crate::app::weaponholdinginfowindow::WeaponHoldingInfoWindow,
76        #[offset(136)]
77        #[rename(name = "m_ItemMenuDetailSetter")]
78        pub m_item_menu_detail_setter: crate::app::itemmenudetailsetter::ItemMenuDetailSetter,
79        #[offset(144)]
80        #[rename(name = "m_ReturnEventHandler")]
81        pub m_return_event_handler: crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler,
82        #[offset(152)]
83        #[rename(name = "m_YesNoDialog")]
84        pub m_yes_no_dialog: crate::app::exchangeyesnodialog::ExchangeYesNoDialog,
85        #[offset(160)]
86        #[rename(name = "m_SendItemMenu")]
87        pub m_send_item_menu: crate::app::procinst::ProcInst,
88        #[offset(168)]
89        #[rename(name = "m_DiscardItemMenu")]
90        pub m_discard_item_menu: crate::app::procinst::ProcInst,
91        #[offset(176)]
92        #[rename(name = "m_UnitItem")]
93        pub m_unit_item: crate::app::unititem::UnitItem,
94        #[offset(184)]
95        #[rename(name = "m_ItemData")]
96        pub m_item_data: crate::app::itemdata::ItemData,
97        #[offset(192)]
98        #[rename(name = "m_IsSendingItemToTransporter")]
99        pub m_is_sending_item_to_transporter: bool,
100        #[offset(193)]
101        #[rename(name = "m_IsSendingUnitItem")]
102        pub m_is_sending_unit_item: bool,
103        #[offset(196)]
104        #[rename(name = "m_SendingUnitItemIndex")]
105        pub m_sending_unit_item_index: i32,
106        #[offset(200)]
107        #[rename(name = "m_IsDiscardingTransporterItem")]
108        pub m_is_discarding_transporter_item: bool,
109        #[offset(204)]
110        #[rename(name = "m_DiscardingTransporterItemIndex")]
111        pub m_discarding_transporter_item_index: i32,
112        #[offset(208)]
113        #[rename(name = "m_ExistingOwner")]
114        pub m_existing_owner: bool,
115        #[offset(209)]
116        #[rename(name = "m_ItemDetailDisplayWithUnit")]
117        pub m_item_detail_display_with_unit: bool,
118    }
119
120    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/weaponshopbuyroot/WeaponShopBuyRoot_EquipableWeaponInfo.md"))]
121    #[::unity::class(namespace = "App", name = "WeaponShopBuyRoot.EquipableWeaponInfo")]
122    #[parent(crate::system::object::Object)]
123    pub struct WeaponShopBuyRoot_EquipableWeaponInfo {
124        #[offset(16)]
125        #[rename(name = "m_Root")]
126        pub m_root: crate::unity_engine::gameobject::GameObject,
127        #[offset(24)]
128        #[rename(name = "m_IconImage")]
129        pub m_icon_image: crate::unity_engine::ui::image::Image,
130        #[offset(32)]
131        #[rename(name = "m_LevelText")]
132        pub m_level_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
133    }
134}
135
136#[cfg(feature = "app-weaponshopbuyroot-types")]
137pub use __types::*;
138
139#[cfg(feature = "app-weaponshopbuyroot")]
140pub trait IWeaponShopBuyRoot_ReturnEventHandlerMethods: IWeaponShopBuyRoot_ReturnEventHandler {
141    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
142    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
143        unsafe {
144            let __receiver = <WeaponShopBuyRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
145                <Self as ::unity::SystemObject>::as_instance(self),
146            );
147            ::unity::il2cpp_call!((::unity::module_base()+0x1b2bf20usize)as*mut u8,();
148(WeaponShopBuyRoot_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
149        }
150    }
151    #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
152    fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
153        unsafe {
154            let __receiver = <WeaponShopBuyRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(
155                <Self as ::unity::SystemObject>::as_instance(self),
156            );
157            {
158                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
160                    panic!(
161                        "unity: virtual slot {}
162 out of range (vtable len {}
163) on the runtime class behind {}
164 (method `{}
165`)",
166                        13usize,
167                        __vt.len(),
168                        <WeaponShopBuyRoot_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
169                        "Invoke",
170                    )
171                });
172                let __inner: extern "C" fn(WeaponShopBuyRoot_ReturnEventHandler, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
173                    ::core::mem::transmute(__vi.method_ptr);
174                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
175                __inner(__receiver, ::core::convert::Into::into(unit), __mi)
176            }
177        }
178    }
179}
180
181#[cfg(feature = "app-weaponshopbuyroot")]
182impl<__T: IWeaponShopBuyRoot_ReturnEventHandler> IWeaponShopBuyRoot_ReturnEventHandlerMethods for __T {}
183
184#[cfg(feature = "app-weaponshopbuyroot")]
185impl WeaponShopBuyRoot_ReturnEventHandler {
186    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
188    }
189
190    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
192    }
193}
194
195#[cfg(feature = "app-weaponshopbuyroot")]
196impl WeaponShopBuyRoot_ReturnEventHandler {
197    #[doc = "Direct (non-virtual) call to `WeaponShopBuyRoot_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
198    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
199        let __mi = Self::invoke_method_info();
200        let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
201            ::core::mem::transmute(__mi.method_ptr);
202        __inner(this.into(), unit, ::core::option::Option::None)
203    }
204}
205
206#[cfg(feature = "app-weaponshopbuyroot")]
207impl WeaponShopBuyRoot_ReturnEventHandler {
208    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
209    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
210        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
211            panic!(
212                "{}
213::{}
214 failed to instantiate",
215                ::core::stringify!(WeaponShopBuyRoot_ReturnEventHandler),
216                ::core::stringify!(new),
217            )
218        });
219        <Self as IWeaponShopBuyRoot_ReturnEventHandlerMethods>::ctor(this, object, method);
220        this
221    }
222}
223
224#[cfg(feature = "app-weaponshopbuyroot")]
225impl WeaponShopBuyRoot {
226    #[doc = "`LoadPrefabAsync()` overload"]
227    pub fn load_prefab_async() -> () {
228        unsafe {
229            ::unity::il2cpp_call!((::unity::module_base()+0x21d03f0usize)as*mut u8,();
230            )
231        }
232    }
233
234    #[doc = "`IsLoadingPrefab()` overload"]
235    pub fn is_loading_prefab() -> bool {
236        unsafe {
237            ::unity::il2cpp_call!((::unity::module_base()+0x21d0490usize)as*mut u8,bool;
238            )
239        }
240    }
241
242    #[doc = "`UnloadPrefab()` overload"]
243    pub fn unload_prefab() -> () {
244        unsafe {
245            ::unity::il2cpp_call!((::unity::module_base()+0x21d0510usize)as*mut u8,();
246            )
247        }
248    }
249
250    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, bool, crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler)` overload"]
251    pub fn create_bind(
252        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
253        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
254        existing_owner: impl ::core::convert::Into<bool>,
255        return_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler>,
256    ) -> crate::app::weaponshopbuyroot::WeaponShopBuyRoot {
257        unsafe {
258            ::unity::il2cpp_call!((::unity::module_base()+0x21d0590usize)as*mut u8,crate::app::weaponshopbuyroot::WeaponShopBuyRoot;
259(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(bool)::core::convert::Into::into(existing_owner),(crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
260        }
261    }
262
263    #[doc = "`Destroy(crate::app::weaponshopbuyroot::WeaponShopBuyRoot)` overload"]
264    pub fn destroy(root: impl ::core::convert::Into<crate::app::weaponshopbuyroot::WeaponShopBuyRoot>) -> () {
265        unsafe {
266            ::unity::il2cpp_call!((::unity::module_base()+0x21d0dd0usize)as*mut u8,();
267(crate::app::weaponshopbuyroot::WeaponShopBuyRoot)::core::convert::Into::into(root))
268        }
269    }
270}
271
272#[cfg(feature = "app-weaponshopbuyroot")]
273pub trait IWeaponShopBuyRootMethods: IWeaponShopBuyRoot {
274    #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, bool, crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler)` overload"]
275    fn create(
276        self,
277        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
278        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
279        existing_owner: impl ::core::convert::Into<bool>,
280        return_event_handler: impl ::core::convert::Into<crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler>,
281    ) -> () {
282        unsafe {
283            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284            ::unity::il2cpp_call!((::unity::module_base()+0x21d0740usize)as*mut u8,();
285(WeaponShopBuyRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(bool)::core::convert::Into::into(existing_owner),(crate::app::weaponshopbuyroot::WeaponShopBuyRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
286        }
287    }
288    #[doc = "`.ctor()` overload"]
289    fn ctor(self) -> () {
290        unsafe {
291            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292            ::unity::il2cpp_call!((::unity::module_base()+0x21d0ef0usize)as*mut u8,();
293(WeaponShopBuyRoot)__receiver)
294        }
295    }
296    #[doc = "`Start()` overload"]
297    fn start(self) -> () {
298        unsafe {
299            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300            ::unity::il2cpp_call!((::unity::module_base()+0x21d0f00usize)as*mut u8,();
301(WeaponShopBuyRoot)__receiver)
302        }
303    }
304    #[doc = "`UpdateItemDetail()` overload"]
305    fn update_item_detail(self) -> () {
306        unsafe {
307            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308            ::unity::il2cpp_call!((::unity::module_base()+0x21d1090usize)as*mut u8,();
309(WeaponShopBuyRoot)__receiver)
310        }
311    }
312    #[doc = "`UpdateEquipableWeaponInfo()` overload"]
313    fn update_equipable_weapon_info(self) -> () {
314        unsafe {
315            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316            ::unity::il2cpp_call!((::unity::module_base()+0x21d0cc0usize)as*mut u8,();
317(WeaponShopBuyRoot)__receiver)
318        }
319    }
320    #[doc = "`OnChangeUnitToPrev(crate::app::unititem::UnitItem)` overload"]
321    fn on_change_unit_to_prev(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
322        unsafe {
323            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324            ::unity::il2cpp_call!((::unity::module_base()+0x21d11c0usize)as*mut u8,();
325(WeaponShopBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
326        }
327    }
328    #[doc = "`OnChangeUnitToNext(crate::app::unititem::UnitItem)` overload"]
329    fn on_change_unit_to_next(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
330        unsafe {
331            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332            ::unity::il2cpp_call!((::unity::module_base()+0x21d1420usize)as*mut u8,();
333(WeaponShopBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
334        }
335    }
336    #[doc = "`OnSwitchDetailDisplayWay()` overload"]
337    fn on_switch_detail_display_way(self) -> () {
338        unsafe {
339            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340            ::unity::il2cpp_call!((::unity::module_base()+0x21d1640usize)as*mut u8,();
341(WeaponShopBuyRoot)__receiver)
342        }
343    }
344    #[doc = "`OnSelectMenuItem(crate::app::unititem::UnitItem)` overload"]
345    fn on_select_menu_item(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
346        unsafe {
347            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348            ::unity::il2cpp_call!((::unity::module_base()+0x21d1650usize)as*mut u8,();
349(WeaponShopBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
350        }
351    }
352    #[doc = "`OnDecideMenuItem(crate::app::itemdata::ItemData)` overload"]
353    fn on_decide_menu_item(self, item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> bool {
354        unsafe {
355            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356            ::unity::il2cpp_call!((::unity::module_base()+0x21d17d0usize)as*mut u8,bool;
357(WeaponShopBuyRoot)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
358        }
359    }
360    #[doc = "`OnYesToBuy()` overload"]
361    fn on_yes_to_buy(self) -> () {
362        unsafe {
363            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364            ::unity::il2cpp_call!((::unity::module_base()+0x21d1930usize)as*mut u8,();
365(WeaponShopBuyRoot)__receiver)
366        }
367    }
368    #[doc = "`OnDecideToSendItem(bool, i32)` overload"]
369    fn on_decide_to_send_item(
370        self,
371        is_selecting_unit_item: impl ::core::convert::Into<bool>,
372        unit_item_index: impl ::core::convert::Into<i32>,
373    ) -> () {
374        unsafe {
375            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
376            ::unity::il2cpp_call!((::unity::module_base()+0x21d2050usize)as*mut u8,();
377(WeaponShopBuyRoot)__receiver,(bool)::core::convert::Into::into(is_selecting_unit_item),(i32)::core::convert::Into::into(unit_item_index))
378        }
379    }
380    #[doc = "`OnCancelToSendItem()` overload"]
381    fn on_cancel_to_send_item(self) -> () {
382        unsafe {
383            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
384            ::unity::il2cpp_call!((::unity::module_base()+0x21d22e0usize)as*mut u8,();
385(WeaponShopBuyRoot)__receiver)
386        }
387    }
388    #[doc = "`OnDecidelToDiscardItem(bool, i32)` overload"]
389    fn on_decidel_to_discard_item(
390        self,
391        transporter_is_selected: impl ::core::convert::Into<bool>,
392        transporter_item_index: impl ::core::convert::Into<i32>,
393    ) -> () {
394        unsafe {
395            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396            ::unity::il2cpp_call!((::unity::module_base()+0x21d23d0usize)as*mut u8,();
397(WeaponShopBuyRoot)__receiver,(bool)::core::convert::Into::into(transporter_is_selected),(i32)::core::convert::Into::into(transporter_item_index))
398        }
399    }
400    #[doc = "`OnCancelToDiscardItem()` overload"]
401    fn on_cancel_to_discard_item(self) -> () {
402        unsafe {
403            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404            ::unity::il2cpp_call!((::unity::module_base()+0x21d24f0usize)as*mut u8,();
405(WeaponShopBuyRoot)__receiver)
406        }
407    }
408    #[doc = "`OnBuy()` overload"]
409    fn on_buy(self) -> () {
410        unsafe {
411            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412            ::unity::il2cpp_call!((::unity::module_base()+0x21d1dc0usize)as*mut u8,();
413(WeaponShopBuyRoot)__receiver)
414        }
415    }
416    #[doc = "`OnRequestClose()` overload"]
417    fn on_request_close(self) -> () {
418        unsafe {
419            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
420            ::unity::il2cpp_call!((::unity::module_base()+0x21d2740usize)as*mut u8,();
421(WeaponShopBuyRoot)__receiver)
422        }
423    }
424    #[doc = "`Close()` overload"]
425    fn close(self) -> () {
426        unsafe {
427            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
428            ::unity::il2cpp_call!((::unity::module_base()+0x21d2750usize)as*mut u8,();
429(WeaponShopBuyRoot)__receiver)
430        }
431    }
432    #[doc = "`SetUnitImageActive(bool)` overload"]
433    fn set_unit_image_active(self, is_active: impl ::core::convert::Into<bool>) -> () {
434        unsafe {
435            let __receiver = <WeaponShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
436            ::unity::il2cpp_call!((::unity::module_base()+0x21d13d0usize)as*mut u8,();
437(WeaponShopBuyRoot)__receiver,(bool)::core::convert::Into::into(is_active))
438        }
439    }
440}
441
442#[cfg(feature = "app-weaponshopbuyroot")]
443impl<__T: IWeaponShopBuyRoot> IWeaponShopBuyRootMethods for __T {}
444
445#[cfg(feature = "app-weaponshopbuyroot")]
446impl WeaponShopBuyRoot {
447    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
449    }
450
451    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
453    }
454
455    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
457    }
458
459    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
461    }
462
463    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
465    }
466
467    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
469    }
470
471    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
473    }
474
475    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
477    }
478
479    pub fn update_item_detail_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
481    }
482
483    pub fn update_equipable_weapon_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
485    }
486
487    pub fn on_change_unit_to_prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
489    }
490
491    pub fn on_change_unit_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
493    }
494
495    pub fn on_switch_detail_display_way_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
497    }
498
499    pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
501    }
502
503    pub fn on_decide_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
505    }
506
507    pub fn on_yes_to_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
509    }
510
511    pub fn on_decide_to_send_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
512        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
513    }
514
515    pub fn on_cancel_to_send_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
516        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
517    }
518
519    pub fn on_decidel_to_discard_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
521    }
522
523    pub fn on_cancel_to_discard_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
525    }
526
527    pub fn on_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
529    }
530
531    pub fn on_request_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
533    }
534
535    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
537    }
538
539    pub fn set_unit_image_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
541    }
542}
543
544#[cfg(feature = "app-weaponshopbuyroot")]
545impl WeaponShopBuyRoot {
546    #[doc = "`.ctor()` — no args"]
547    pub fn new() -> Self {
548        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
549            panic!(
550                "{}
551::{}
552 failed to instantiate",
553                ::core::stringify!(WeaponShopBuyRoot),
554                ::core::stringify!(new),
555            )
556        });
557        <Self as IWeaponShopBuyRootMethods>::ctor(this);
558        this
559    }
560}
561
562#[cfg(feature = "app-weaponshopbuyroot")]
563pub trait IWeaponShopBuyRoot_EquipableWeaponInfoMethods: IWeaponShopBuyRoot_EquipableWeaponInfo {
564    #[doc = "`Set(crate::app::itemdata::ItemData_Kinds, crate::app::weaponlevel::WeaponLevel_Kind, crate::app::jobdata::JobData)` overload"]
565    fn set(
566        self,
567        item_kinds: impl ::core::convert::Into<crate::app::itemdata::ItemData_Kinds>,
568        weapon_level: impl ::core::convert::Into<crate::app::weaponlevel::WeaponLevel_Kind>,
569        job_data: impl ::core::convert::Into<crate::app::jobdata::JobData>,
570    ) -> () {
571        unsafe {
572            let __receiver = <WeaponShopBuyRoot_EquipableWeaponInfo as ::unity::FromIlInstance>::from_il_instance(
573                <Self as ::unity::SystemObject>::as_instance(self),
574            );
575            ::unity::il2cpp_call!((::unity::module_base()+0x1b2bc70usize)as*mut u8,();
576(WeaponShopBuyRoot_EquipableWeaponInfo)__receiver,(crate::app::itemdata::ItemData_Kinds)::core::convert::Into::into(item_kinds),(crate::app::weaponlevel::WeaponLevel_Kind)::core::convert::Into::into(weapon_level),(crate::app::jobdata::JobData)::core::convert::Into::into(job_data))
577        }
578    }
579    #[doc = "`.ctor()` overload"]
580    fn ctor(self) -> () {
581        unsafe {
582            let __receiver = <WeaponShopBuyRoot_EquipableWeaponInfo as ::unity::FromIlInstance>::from_il_instance(
583                <Self as ::unity::SystemObject>::as_instance(self),
584            );
585            ::unity::il2cpp_call!((::unity::module_base()+0x1b2bf10usize)as*mut u8,();
586(WeaponShopBuyRoot_EquipableWeaponInfo)__receiver)
587        }
588    }
589}
590
591#[cfg(feature = "app-weaponshopbuyroot")]
592impl<__T: IWeaponShopBuyRoot_EquipableWeaponInfo> IWeaponShopBuyRoot_EquipableWeaponInfoMethods for __T {}
593
594#[cfg(feature = "app-weaponshopbuyroot")]
595impl WeaponShopBuyRoot_EquipableWeaponInfo {
596    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
597        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
598    }
599
600    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
601        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
602    }
603}
604
605#[cfg(feature = "app-weaponshopbuyroot")]
606impl WeaponShopBuyRoot_EquipableWeaponInfo {
607    #[doc = "`.ctor()` — no args"]
608    pub fn new() -> Self {
609        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
610            panic!(
611                "{}
612::{}
613 failed to instantiate",
614                ::core::stringify!(WeaponShopBuyRoot_EquipableWeaponInfo),
615                ::core::stringify!(new),
616            )
617        });
618        <Self as IWeaponShopBuyRoot_EquipableWeaponInfoMethods>::ctor(this);
619        this
620    }
621}
622
623#[cfg(feature = "app-weaponshopbuyroot")]
624#[doc(hidden)]
625pub mod prelude {
626    pub use super::{
627        IWeaponShopBuyRoot, IWeaponShopBuyRootMethods, IWeaponShopBuyRoot_EquipableWeaponInfo, IWeaponShopBuyRoot_EquipableWeaponInfoMethods,
628        IWeaponShopBuyRoot_ReturnEventHandler, IWeaponShopBuyRoot_ReturnEventHandlerMethods, WeaponShopBuyRoot,
629        WeaponShopBuyRoot_EquipableWeaponInfo, WeaponShopBuyRoot_ReturnEventHandler,
630    };
631    #[cfg(feature = "system-delegate")]
632    pub use crate::system::delegate::IDelegateMethods;
633    #[cfg(feature = "system-multicastdelegate")]
634    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
635    #[cfg(feature = "system-object")]
636    pub use crate::system::object::IObjectMethods;
637    #[cfg(feature = "unity_engine-behaviour")]
638    pub use crate::unity_engine::behaviour::IBehaviourMethods;
639    #[cfg(feature = "unity_engine-component")]
640    pub use crate::unity_engine::component::IComponentMethods;
641    #[cfg(feature = "unity_engine-monobehaviour")]
642    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
643    #[cfg(feature = "unity_engine-object_2")]
644    pub use crate::unity_engine::object_2::IObject_2Methods;
645    pub use crate::{
646        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
647        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
648    };
649}