Skip to main content

engage/generated/app/
itemshopbuyroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemshopbuyroot-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/itemshopbuyroot/ItemShopBuyRoot.md"))]
23    #[::unity::class(namespace = "App", name = "ItemShopBuyRoot")]
24    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
25    pub struct ItemShopBuyRoot {
26        #[static_field]
27        #[rename(name = "PrefabPath")]
28        pub prefab_path: ::unity::Il2CppString,
29        #[offset(24)]
30        #[rename(name = "m_MenuObject")]
31        pub m_menu_object: crate::unity_engine::gameobject::GameObject,
32        #[offset(32)]
33        #[rename(name = "m_UnitItemMenuContent")]
34        pub m_unit_item_menu_content: crate::app::unititemmenucontent::UnitItemMenuContent,
35        #[offset(40)]
36        #[rename(name = "m_HoldingInfoWindowObject")]
37        pub m_holding_info_window_object: crate::unity_engine::gameobject::GameObject,
38        #[offset(48)]
39        #[rename(name = "m_DetailInfoWindowObject")]
40        pub m_detail_info_window_object: crate::unity_engine::gameobject::GameObject,
41        #[offset(56)]
42        #[rename(name = "m_UnitImageObject")]
43        pub m_unit_image_object: crate::unity_engine::gameobject::GameObject,
44        #[offset(64)]
45        #[rename(name = "m_PriceDownObject")]
46        pub m_price_down_object: crate::unity_engine::gameobject::GameObject,
47        #[offset(72)]
48        #[rename(name = "m_PriceDownText")]
49        pub m_price_down_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
50        #[offset(80)]
51        #[rename(name = "m_Unit")]
52        pub m_unit: crate::app::unit::Unit,
53        #[offset(88)]
54        #[rename(name = "m_ItemShopBuyMenu")]
55        pub m_item_shop_buy_menu: crate::app::itemshopbuymenu::ItemShopBuyMenu,
56        #[offset(96)]
57        #[rename(name = "m_UnitItemMenu")]
58        pub m_unit_item_menu: crate::app::unititemmenu::UnitItemMenu,
59        #[offset(104)]
60        #[rename(name = "m_ItemHoldingInfoWindow")]
61        pub m_item_holding_info_window: crate::app::itemholdinginfowindow::ItemHoldingInfoWindow,
62        #[offset(112)]
63        #[rename(name = "m_ItemMenuDetailSetter")]
64        pub m_item_menu_detail_setter: crate::app::itemmenudetailsetter::ItemMenuDetailSetter,
65        #[offset(120)]
66        #[rename(name = "m_ReturnEventHandler")]
67        pub m_return_event_handler: crate::app::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler,
68        #[offset(128)]
69        #[rename(name = "m_YesNoDialog")]
70        pub m_yes_no_dialog: crate::app::exchangeyesnodialog::ExchangeYesNoDialog,
71        #[offset(136)]
72        #[rename(name = "m_SendItemMenu")]
73        pub m_send_item_menu: crate::app::procinst::ProcInst,
74        #[offset(144)]
75        #[rename(name = "m_DiscardItemMenu")]
76        pub m_discard_item_menu: crate::app::procinst::ProcInst,
77        #[offset(152)]
78        #[rename(name = "m_ItemData")]
79        pub m_item_data: crate::app::itemdata::ItemData,
80        #[offset(160)]
81        #[rename(name = "m_UnitItem")]
82        pub m_unit_item: crate::app::unititem::UnitItem,
83        #[offset(168)]
84        #[rename(name = "m_IsSendingItemToTransporter")]
85        pub m_is_sending_item_to_transporter: bool,
86        #[offset(169)]
87        #[rename(name = "m_IsSendingUnitItem")]
88        pub m_is_sending_unit_item: bool,
89        #[offset(172)]
90        #[rename(name = "m_SendingUnitItemIndex")]
91        pub m_sending_unit_item_index: i32,
92        #[offset(176)]
93        #[rename(name = "m_IsDiscardingTransporterItem")]
94        pub m_is_discarding_transporter_item: bool,
95        #[offset(180)]
96        #[rename(name = "m_DiscardingTransporterItemIndex")]
97        pub m_discarding_transporter_item_index: i32,
98        #[offset(184)]
99        #[rename(name = "m_ExistingOwner")]
100        pub m_existing_owner: bool,
101        #[offset(185)]
102        #[rename(name = "m_ItemDetailDisplayWithUnit")]
103        pub m_item_detail_display_with_unit: bool,
104    }
105
106    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/itemshopbuyroot/ItemShopBuyRoot_ReturnEventHandler.md"))]
107    #[::unity::class(namespace = "App", name = "ItemShopBuyRoot.ReturnEventHandler")]
108    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
109    pub struct ItemShopBuyRoot_ReturnEventHandler {}
110}
111
112#[cfg(feature = "app-itemshopbuyroot-types")]
113pub use __types::*;
114
115#[cfg(feature = "app-itemshopbuyroot")]
116impl ItemShopBuyRoot {
117    #[doc = "`LoadPrefabAsync()` overload"]
118    pub fn load_prefab_async() -> () {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x204e9c0usize)as*mut u8,();
121            )
122        }
123    }
124
125    #[doc = "`IsLoadingPrefab()` overload"]
126    pub fn is_loading_prefab() -> bool {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x204ea60usize)as*mut u8,bool;
129            )
130        }
131    }
132
133    #[doc = "`UnloadPrefab()` overload"]
134    pub fn unload_prefab() -> () {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x204eae0usize)as*mut u8,();
137            )
138        }
139    }
140
141    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, bool, crate::app::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler)` overload"]
142    pub fn create_bind(
143        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
144        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
145        existing_owner: impl ::core::convert::Into<bool>,
146        return_event_handler: impl ::core::convert::Into<crate::app::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler>,
147    ) -> crate::app::itemshopbuyroot::ItemShopBuyRoot {
148        unsafe {
149            ::unity::il2cpp_call!((::unity::module_base()+0x204eb60usize)as*mut u8,crate::app::itemshopbuyroot::ItemShopBuyRoot;
150(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::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
151        }
152    }
153
154    #[doc = "`Destroy(crate::app::itemshopbuyroot::ItemShopBuyRoot)` overload"]
155    pub fn destroy(root: impl ::core::convert::Into<crate::app::itemshopbuyroot::ItemShopBuyRoot>) -> () {
156        unsafe {
157            ::unity::il2cpp_call!((::unity::module_base()+0x204f340usize)as*mut u8,();
158(crate::app::itemshopbuyroot::ItemShopBuyRoot)::core::convert::Into::into(root))
159        }
160    }
161}
162
163#[cfg(feature = "app-itemshopbuyroot")]
164pub trait IItemShopBuyRootMethods: IItemShopBuyRoot {
165    #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, bool, crate::app::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler)` overload"]
166    fn create(
167        self,
168        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
169        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
170        existing_owner: impl ::core::convert::Into<bool>,
171        return_event_handler: impl ::core::convert::Into<crate::app::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler>,
172    ) -> () {
173        unsafe {
174            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x204ed10usize)as*mut u8,();
176(ItemShopBuyRoot)__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::itemshopbuyroot::ItemShopBuyRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
177        }
178    }
179    #[doc = "`.ctor()` overload"]
180    fn ctor(self) -> () {
181        unsafe {
182            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183            ::unity::il2cpp_call!((::unity::module_base()+0x204f420usize)as*mut u8,();
184(ItemShopBuyRoot)__receiver)
185        }
186    }
187    #[doc = "`Start()` overload"]
188    fn start(self) -> () {
189        unsafe {
190            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x204f430usize)as*mut u8,();
192(ItemShopBuyRoot)__receiver)
193        }
194    }
195    #[doc = "`SetUnitImageActive(bool)` overload"]
196    fn set_unit_image_active(self, is_active: impl ::core::convert::Into<bool>) -> () {
197        unsafe {
198            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199            ::unity::il2cpp_call!((::unity::module_base()+0x204f2f0usize)as*mut u8,();
200(ItemShopBuyRoot)__receiver,(bool)::core::convert::Into::into(is_active))
201        }
202    }
203    #[doc = "`UpdateItemDetail()` overload"]
204    fn update_item_detail(self) -> () {
205        unsafe {
206            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x204f530usize)as*mut u8,();
208(ItemShopBuyRoot)__receiver)
209        }
210    }
211    #[doc = "`OnChangeUnitToPrev(crate::app::unititem::UnitItem)` overload"]
212    fn on_change_unit_to_prev(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
213        unsafe {
214            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
215            ::unity::il2cpp_call!((::unity::module_base()+0x204f660usize)as*mut u8,();
216(ItemShopBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
217        }
218    }
219    #[doc = "`OnChangeUnitToNext(crate::app::unititem::UnitItem)` overload"]
220    fn on_change_unit_to_next(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
221        unsafe {
222            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223            ::unity::il2cpp_call!((::unity::module_base()+0x204f820usize)as*mut u8,();
224(ItemShopBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
225        }
226    }
227    #[doc = "`OnSwitchDetailDisplayWay()` overload"]
228    fn on_switch_detail_display_way(self) -> () {
229        unsafe {
230            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x204f9f0usize)as*mut u8,();
232(ItemShopBuyRoot)__receiver)
233        }
234    }
235    #[doc = "`OnSelectMenuItem(crate::app::unititem::UnitItem)` overload"]
236    fn on_select_menu_item(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
237        unsafe {
238            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239            ::unity::il2cpp_call!((::unity::module_base()+0x204fa00usize)as*mut u8,();
240(ItemShopBuyRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
241        }
242    }
243    #[doc = "`OnDecideMenuItem(crate::app::itemdata::ItemData)` overload"]
244    fn on_decide_menu_item(self, item_data: impl ::core::convert::Into<crate::app::itemdata::ItemData>) -> bool {
245        unsafe {
246            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            ::unity::il2cpp_call!((::unity::module_base()+0x204fb50usize)as*mut u8,bool;
248(ItemShopBuyRoot)__receiver,(crate::app::itemdata::ItemData)::core::convert::Into::into(item_data))
249        }
250    }
251    #[doc = "`OnYesToBuy()` overload"]
252    fn on_yes_to_buy(self) -> () {
253        unsafe {
254            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255            ::unity::il2cpp_call!((::unity::module_base()+0x204fcb0usize)as*mut u8,();
256(ItemShopBuyRoot)__receiver)
257        }
258    }
259    #[doc = "`OnDecideToSendItem(bool, i32)` overload"]
260    fn on_decide_to_send_item(
261        self,
262        is_selecting_unit_item: impl ::core::convert::Into<bool>,
263        unit_item_index: impl ::core::convert::Into<i32>,
264    ) -> () {
265        unsafe {
266            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            ::unity::il2cpp_call!((::unity::module_base()+0x2050350usize)as*mut u8,();
268(ItemShopBuyRoot)__receiver,(bool)::core::convert::Into::into(is_selecting_unit_item),(i32)::core::convert::Into::into(unit_item_index))
269        }
270    }
271    #[doc = "`OnCancelToSendItem()` overload"]
272    fn on_cancel_to_send_item(self) -> () {
273        unsafe {
274            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275            ::unity::il2cpp_call!((::unity::module_base()+0x2050580usize)as*mut u8,();
276(ItemShopBuyRoot)__receiver)
277        }
278    }
279    #[doc = "`OnDecidelToDiscardItem(bool, i32)` overload"]
280    fn on_decidel_to_discard_item(
281        self,
282        transporter_is_selected: impl ::core::convert::Into<bool>,
283        transporter_item_index: impl ::core::convert::Into<i32>,
284    ) -> () {
285        unsafe {
286            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
287            ::unity::il2cpp_call!((::unity::module_base()+0x2050670usize)as*mut u8,();
288(ItemShopBuyRoot)__receiver,(bool)::core::convert::Into::into(transporter_is_selected),(i32)::core::convert::Into::into(transporter_item_index))
289        }
290    }
291    #[doc = "`OnCancelToDiscardItem()` overload"]
292    fn on_cancel_to_discard_item(self) -> () {
293        unsafe {
294            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
295            ::unity::il2cpp_call!((::unity::module_base()+0x2050790usize)as*mut u8,();
296(ItemShopBuyRoot)__receiver)
297        }
298    }
299    #[doc = "`OnBuy()` overload"]
300    fn on_buy(self) -> () {
301        unsafe {
302            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
303            ::unity::il2cpp_call!((::unity::module_base()+0x20500c0usize)as*mut u8,();
304(ItemShopBuyRoot)__receiver)
305        }
306    }
307    #[doc = "`OnRequestClose()` overload"]
308    fn on_request_close(self) -> () {
309        unsafe {
310            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
311            ::unity::il2cpp_call!((::unity::module_base()+0x2050990usize)as*mut u8,();
312(ItemShopBuyRoot)__receiver)
313        }
314    }
315    #[doc = "`Close()` overload"]
316    fn close(self) -> () {
317        unsafe {
318            let __receiver = <ItemShopBuyRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
319            ::unity::il2cpp_call!((::unity::module_base()+0x20509a0usize)as*mut u8,();
320(ItemShopBuyRoot)__receiver)
321        }
322    }
323}
324
325#[cfg(feature = "app-itemshopbuyroot")]
326impl<__T: IItemShopBuyRoot> IItemShopBuyRootMethods for __T {}
327
328#[cfg(feature = "app-itemshopbuyroot")]
329impl ItemShopBuyRoot {
330    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
332    }
333
334    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
336    }
337
338    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
340    }
341
342    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
344    }
345
346    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
348    }
349
350    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
352    }
353
354    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
356    }
357
358    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
360    }
361
362    pub fn set_unit_image_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
364    }
365
366    pub fn update_item_detail_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
368    }
369
370    pub fn on_change_unit_to_prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
372    }
373
374    pub fn on_change_unit_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
376    }
377
378    pub fn on_switch_detail_display_way_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
380    }
381
382    pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
384    }
385
386    pub fn on_decide_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
388    }
389
390    pub fn on_yes_to_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
392    }
393
394    pub fn on_decide_to_send_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
396    }
397
398    pub fn on_cancel_to_send_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
400    }
401
402    pub fn on_decidel_to_discard_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
404    }
405
406    pub fn on_cancel_to_discard_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
408    }
409
410    pub fn on_buy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
412    }
413
414    pub fn on_request_close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
416    }
417
418    pub fn close_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
420    }
421}
422
423#[cfg(feature = "app-itemshopbuyroot")]
424impl ItemShopBuyRoot {
425    #[doc = "`.ctor()` — no args"]
426    pub fn new() -> Self {
427        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
428            panic!(
429                "{}
430::{}
431 failed to instantiate",
432                ::core::stringify!(ItemShopBuyRoot),
433                ::core::stringify!(new),
434            )
435        });
436        <Self as IItemShopBuyRootMethods>::ctor(this);
437        this
438    }
439}
440
441#[cfg(feature = "app-itemshopbuyroot")]
442pub trait IItemShopBuyRoot_ReturnEventHandlerMethods: IItemShopBuyRoot_ReturnEventHandler {
443    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
444    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
445        unsafe {
446            let __receiver =
447                <ItemShopBuyRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
448            ::unity::il2cpp_call!((::unity::module_base()+0x1fd0420usize)as*mut u8,();
449(ItemShopBuyRoot_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
450        }
451    }
452    #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
453    fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
454        unsafe {
455            let __receiver =
456                <ItemShopBuyRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
457            {
458                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
459                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
460                    panic!(
461                        "unity: virtual slot {}
462 out of range (vtable len {}
463) on the runtime class behind {}
464 (method `{}
465`)",
466                        13usize,
467                        __vt.len(),
468                        <ItemShopBuyRoot_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
469                        "Invoke",
470                    )
471                });
472                let __inner: extern "C" fn(ItemShopBuyRoot_ReturnEventHandler, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
473                    ::core::mem::transmute(__vi.method_ptr);
474                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
475                __inner(__receiver, ::core::convert::Into::into(unit), __mi)
476            }
477        }
478    }
479}
480
481#[cfg(feature = "app-itemshopbuyroot")]
482impl<__T: IItemShopBuyRoot_ReturnEventHandler> IItemShopBuyRoot_ReturnEventHandlerMethods for __T {}
483
484#[cfg(feature = "app-itemshopbuyroot")]
485impl ItemShopBuyRoot_ReturnEventHandler {
486    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
488    }
489
490    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
492    }
493}
494
495#[cfg(feature = "app-itemshopbuyroot")]
496impl ItemShopBuyRoot_ReturnEventHandler {
497    #[doc = "Direct (non-virtual) call to `ItemShopBuyRoot_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
498    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
499        let __mi = Self::invoke_method_info();
500        let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
501            ::core::mem::transmute(__mi.method_ptr);
502        __inner(this.into(), unit, ::core::option::Option::None)
503    }
504}
505
506#[cfg(feature = "app-itemshopbuyroot")]
507impl ItemShopBuyRoot_ReturnEventHandler {
508    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
509    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
510        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
511            panic!(
512                "{}
513::{}
514 failed to instantiate",
515                ::core::stringify!(ItemShopBuyRoot_ReturnEventHandler),
516                ::core::stringify!(new),
517            )
518        });
519        <Self as IItemShopBuyRoot_ReturnEventHandlerMethods>::ctor(this, object, method);
520        this
521    }
522}
523
524#[cfg(feature = "app-itemshopbuyroot")]
525#[doc(hidden)]
526pub mod prelude {
527    pub use super::{
528        IItemShopBuyRoot, IItemShopBuyRootMethods, IItemShopBuyRoot_ReturnEventHandler, IItemShopBuyRoot_ReturnEventHandlerMethods, ItemShopBuyRoot,
529        ItemShopBuyRoot_ReturnEventHandler,
530    };
531    #[cfg(feature = "system-delegate")]
532    pub use crate::system::delegate::IDelegateMethods;
533    #[cfg(feature = "system-multicastdelegate")]
534    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
535    #[cfg(feature = "system-object")]
536    pub use crate::system::object::IObjectMethods;
537    #[cfg(feature = "unity_engine-behaviour")]
538    pub use crate::unity_engine::behaviour::IBehaviourMethods;
539    #[cfg(feature = "unity_engine-component")]
540    pub use crate::unity_engine::component::IComponentMethods;
541    #[cfg(feature = "unity_engine-monobehaviour")]
542    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
543    #[cfg(feature = "unity_engine-object_2")]
544    pub use crate::unity_engine::object_2::IObject_2Methods;
545    pub use crate::{
546        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
547        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
548    };
549}