Skip to main content

engage/generated/app/
shopsellroot.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-shopsellroot-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/shopsellroot/ShopSellRoot_ReturnEventHandler.md"))]
23    #[::unity::class(namespace = "App", name = "ShopSellRoot.ReturnEventHandler")]
24    #[parent(crate::system::multicastdelegate::MulticastDelegate)]
25    pub struct ShopSellRoot_ReturnEventHandler {}
26
27    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shopsellroot/ShopSellRoot.md"))]
28    #[::unity::class(namespace = "App", name = "ShopSellRoot")]
29    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
30    pub struct ShopSellRoot {
31        #[static_field]
32        #[rename(name = "PrefabPath")]
33        pub prefab_path: ::unity::Il2CppString,
34        #[offset(24)]
35        #[rename(name = "m_UnitNameText")]
36        pub m_unit_name_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
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_DetailInfoWindowObject")]
42        pub m_detail_info_window_object: crate::unity_engine::gameobject::GameObject,
43        #[offset(48)]
44        #[rename(name = "m_AccountWindowObject")]
45        pub m_account_window_object: crate::unity_engine::gameobject::GameObject,
46        #[offset(56)]
47        #[rename(name = "m_UnitImageObject")]
48        pub m_unit_image_object: crate::unity_engine::gameobject::GameObject,
49        #[offset(64)]
50        #[rename(name = "m_Unit")]
51        pub m_unit: crate::app::unit::Unit,
52        #[offset(72)]
53        #[rename(name = "m_ShopSellMenu")]
54        pub m_shop_sell_menu: crate::app::shopsellmenu::ShopSellMenu,
55        #[offset(80)]
56        #[rename(name = "m_ItemMenuDetailSetter")]
57        pub m_item_menu_detail_setter: crate::app::itemmenudetailsetter::ItemMenuDetailSetter,
58        #[offset(88)]
59        #[rename(name = "m_AccountWindow")]
60        pub m_account_window: crate::app::shopsellaccountwindow::ShopSellAccountWindow,
61        #[offset(96)]
62        #[rename(name = "m_ReturnEventHandler")]
63        pub m_return_event_handler: crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler,
64        #[offset(104)]
65        #[rename(name = "m_UnitItem")]
66        pub m_unit_item: crate::app::unititem::UnitItem,
67        #[offset(112)]
68        #[rename(name = "m_ItemDetailDisplayWithUnit")]
69        pub m_item_detail_display_with_unit: bool,
70    }
71}
72
73#[cfg(feature = "app-shopsellroot-types")]
74pub use __types::*;
75
76#[cfg(feature = "app-shopsellroot")]
77pub trait IShopSellRoot_ReturnEventHandlerMethods: IShopSellRoot_ReturnEventHandler {
78    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` overload"]
79    fn ctor(self, object: impl ::core::convert::Into<crate::system::object::Object>, method: impl ::core::convert::Into<::unity::IntPtr>) -> () {
80        unsafe {
81            let __receiver =
82                <ShopSellRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            ::unity::il2cpp_call!((::unity::module_base()+0x1d6c4b0usize)as*mut u8,();
84(ShopSellRoot_ReturnEventHandler)__receiver,(crate::system::object::Object)::core::convert::Into::into(object),(::unity::IntPtr)::core::convert::Into::into(method))
85        }
86    }
87    #[doc = "`Invoke(crate::app::unit::Unit)` overload"]
88    fn invoke(self, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
89        unsafe {
90            let __receiver =
91                <ShopSellRoot_ReturnEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            {
93                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
95                    panic!(
96                        "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101                        13usize,
102                        __vt.len(),
103                        <ShopSellRoot_ReturnEventHandler as ::unity::ClassIdentity>::NAME,
104                        "Invoke",
105                    )
106                });
107                let __inner: extern "C" fn(ShopSellRoot_ReturnEventHandler, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
108                    ::core::mem::transmute(__vi.method_ptr);
109                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
110                __inner(__receiver, ::core::convert::Into::into(unit), __mi)
111            }
112        }
113    }
114}
115
116#[cfg(feature = "app-shopsellroot")]
117impl<__T: IShopSellRoot_ReturnEventHandler> IShopSellRoot_ReturnEventHandlerMethods for __T {}
118
119#[cfg(feature = "app-shopsellroot")]
120impl ShopSellRoot_ReturnEventHandler {
121    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
123    }
124
125    pub fn invoke_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
127    }
128}
129
130#[cfg(feature = "app-shopsellroot")]
131impl ShopSellRoot_ReturnEventHandler {
132    #[doc = "Direct (non-virtual) call to `ShopSellRoot_ReturnEventHandler`'s own `Invoke`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
133    pub unsafe fn invoke(this: impl ::core::convert::Into<::unity::IlInstance>, unit: crate::app::unit::Unit) -> () {
134        let __mi = Self::invoke_method_info();
135        let __inner: extern "C" fn(::unity::IlInstance, crate::app::unit::Unit, ::unity::OptionalMethod) -> () =
136            ::core::mem::transmute(__mi.method_ptr);
137        __inner(this.into(), unit, ::core::option::Option::None)
138    }
139}
140
141#[cfg(feature = "app-shopsellroot")]
142impl ShopSellRoot_ReturnEventHandler {
143    #[doc = "`.ctor(crate::system::object::Object, ::unity::IntPtr)` — overload selector"]
144    pub fn new(object: crate::system::object::Object, method: ::unity::IntPtr) -> Self {
145        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
146            panic!(
147                "{}
148::{}
149 failed to instantiate",
150                ::core::stringify!(ShopSellRoot_ReturnEventHandler),
151                ::core::stringify!(new),
152            )
153        });
154        <Self as IShopSellRoot_ReturnEventHandlerMethods>::ctor(this, object, method);
155        this
156    }
157}
158
159#[cfg(feature = "app-shopsellroot")]
160impl ShopSellRoot {
161    #[doc = "`LoadPrefabAsync()` overload"]
162    pub fn load_prefab_async() -> () {
163        unsafe {
164            ::unity::il2cpp_call!((::unity::module_base()+0x21b8760usize)as*mut u8,();
165            )
166        }
167    }
168
169    #[doc = "`IsLoadingPrefab()` overload"]
170    pub fn is_loading_prefab() -> bool {
171        unsafe {
172            ::unity::il2cpp_call!((::unity::module_base()+0x21b8800usize)as*mut u8,bool;
173            )
174        }
175    }
176
177    #[doc = "`UnloadPrefab()` overload"]
178    pub fn unload_prefab() -> () {
179        unsafe {
180            ::unity::il2cpp_call!((::unity::module_base()+0x21b8880usize)as*mut u8,();
181            )
182        }
183    }
184
185    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler)` overload"]
186    pub fn create_bind(
187        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
188        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
189        return_event_handler: impl ::core::convert::Into<crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler>,
190    ) -> crate::app::shopsellroot::ShopSellRoot {
191        unsafe {
192            ::unity::il2cpp_call!((::unity::module_base()+0x21b8900usize)as*mut u8,crate::app::shopsellroot::ShopSellRoot;
193(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
194        }
195    }
196
197    #[doc = "`Destroy(crate::app::shopsellroot::ShopSellRoot)` overload"]
198    pub fn destroy(root: impl ::core::convert::Into<crate::app::shopsellroot::ShopSellRoot>) -> () {
199        unsafe {
200            ::unity::il2cpp_call!((::unity::module_base()+0x21b9120usize)as*mut u8,();
201(crate::app::shopsellroot::ShopSellRoot)::core::convert::Into::into(root))
202        }
203    }
204}
205
206#[cfg(feature = "app-shopsellroot")]
207pub trait IShopSellRootMethods: IShopSellRoot {
208    #[doc = "`Create(crate::app::procinst::ProcInst, crate::app::unit::Unit, crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler)` overload"]
209    fn create(
210        self,
211        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
212        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
213        return_event_handler: impl ::core::convert::Into<crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler>,
214    ) -> () {
215        unsafe {
216            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            ::unity::il2cpp_call!((::unity::module_base()+0x21b8aa0usize)as*mut u8,();
218(ShopSellRoot)__receiver,(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::shopsellroot::ShopSellRoot_ReturnEventHandler)::core::convert::Into::into(return_event_handler))
219        }
220    }
221    #[doc = "`Destroy()` overload"]
222    fn destroy_2(self) -> () {
223        unsafe {
224            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            ::unity::il2cpp_call!((::unity::module_base()+0x21b9240usize)as*mut u8,();
226(ShopSellRoot)__receiver)
227        }
228    }
229    #[doc = "`.ctor()` overload"]
230    fn ctor(self) -> () {
231        unsafe {
232            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            ::unity::il2cpp_call!((::unity::module_base()+0x21b92a0usize)as*mut u8,();
234(ShopSellRoot)__receiver)
235        }
236    }
237    #[doc = "`UpdateItemDetail()` overload"]
238    fn update_item_detail(self) -> () {
239        unsafe {
240            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241            ::unity::il2cpp_call!((::unity::module_base()+0x21b92b0usize)as*mut u8,();
242(ShopSellRoot)__receiver)
243        }
244    }
245    #[doc = "`SetUnitImageActive(bool)` overload"]
246    fn set_unit_image_active(self, is_active: impl ::core::convert::Into<bool>) -> () {
247        unsafe {
248            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249            ::unity::il2cpp_call!((::unity::module_base()+0x21b90d0usize)as*mut u8,();
250(ShopSellRoot)__receiver,(bool)::core::convert::Into::into(is_active))
251        }
252    }
253    #[doc = "`OnChangeUnitToPrev()` overload"]
254    fn on_change_unit_to_prev(self) -> () {
255        unsafe {
256            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            ::unity::il2cpp_call!((::unity::module_base()+0x21b93f0usize)as*mut u8,();
258(ShopSellRoot)__receiver)
259        }
260    }
261    #[doc = "`OnChangeUnitToNext()` overload"]
262    fn on_change_unit_to_next(self) -> () {
263        unsafe {
264            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            ::unity::il2cpp_call!((::unity::module_base()+0x21b96d0usize)as*mut u8,();
266(ShopSellRoot)__receiver)
267        }
268    }
269    #[doc = "`OnSwitchDetailDisplayWay()` overload"]
270    fn on_switch_detail_display_way(self) -> () {
271        unsafe {
272            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273            ::unity::il2cpp_call!((::unity::module_base()+0x21b99b0usize)as*mut u8,();
274(ShopSellRoot)__receiver)
275        }
276    }
277    #[doc = "`OnSelectMenuItem(crate::app::unititem::UnitItem)` overload"]
278    fn on_select_menu_item(self, unit_item: impl ::core::convert::Into<crate::app::unititem::UnitItem>) -> () {
279        unsafe {
280            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281            ::unity::il2cpp_call!((::unity::module_base()+0x21b99c0usize)as*mut u8,();
282(ShopSellRoot)__receiver,(crate::app::unititem::UnitItem)::core::convert::Into::into(unit_item))
283        }
284    }
285    #[doc = "`OnDecideItem(i32, i32)` overload"]
286    fn on_decide_item(self, item_count: impl ::core::convert::Into<i32>, total_value: impl ::core::convert::Into<i32>) -> () {
287        unsafe {
288            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289            ::unity::il2cpp_call!((::unity::module_base()+0x21b99f0usize)as*mut u8,();
290(ShopSellRoot)__receiver,(i32)::core::convert::Into::into(item_count),(i32)::core::convert::Into::into(total_value))
291        }
292    }
293    #[doc = "`OnCancelItem(i32, i32)` overload"]
294    fn on_cancel_item(self, item_count: impl ::core::convert::Into<i32>, total_value: impl ::core::convert::Into<i32>) -> () {
295        unsafe {
296            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297            ::unity::il2cpp_call!((::unity::module_base()+0x21b9aa0usize)as*mut u8,();
298(ShopSellRoot)__receiver,(i32)::core::convert::Into::into(item_count),(i32)::core::convert::Into::into(total_value))
299        }
300    }
301    #[doc = "`OnDecideToSell()` overload"]
302    fn on_decide_to_sell(self) -> () {
303        unsafe {
304            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305            ::unity::il2cpp_call!((::unity::module_base()+0x21b9b50usize)as*mut u8,();
306(ShopSellRoot)__receiver)
307        }
308    }
309    #[doc = "`Sell()` overload"]
310    fn sell(self) -> () {
311        unsafe {
312            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313            ::unity::il2cpp_call!((::unity::module_base()+0x21ba400usize)as*mut u8,();
314(ShopSellRoot)__receiver)
315        }
316    }
317    #[doc = "`OnRequestCloseMenu()` overload"]
318    fn on_request_close_menu(self) -> () {
319        unsafe {
320            let __receiver = <ShopSellRoot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
321            ::unity::il2cpp_call!((::unity::module_base()+0x21ba590usize)as*mut u8,();
322(ShopSellRoot)__receiver)
323        }
324    }
325}
326
327#[cfg(feature = "app-shopsellroot")]
328impl<__T: IShopSellRoot> IShopSellRootMethods for __T {}
329
330#[cfg(feature = "app-shopsellroot")]
331impl ShopSellRoot {
332    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
334    }
335
336    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
338    }
339
340    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
342    }
343
344    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
346    }
347
348    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
350    }
351
352    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
354    }
355
356    pub fn destroy_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
358    }
359
360    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
362    }
363
364    pub fn update_item_detail_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
366    }
367
368    pub fn set_unit_image_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
370    }
371
372    pub fn on_change_unit_to_prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
374    }
375
376    pub fn on_change_unit_to_next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
378    }
379
380    pub fn on_switch_detail_display_way_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
382    }
383
384    pub fn on_select_menu_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
386    }
387
388    pub fn on_decide_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
390    }
391
392    pub fn on_cancel_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
394    }
395
396    pub fn on_decide_to_sell_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
398    }
399
400    pub fn sell_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
402    }
403
404    pub fn on_request_close_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
406    }
407}
408
409#[cfg(feature = "app-shopsellroot")]
410impl ShopSellRoot {
411    #[doc = "`.ctor()` — no args"]
412    pub fn new() -> Self {
413        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
414            panic!(
415                "{}
416::{}
417 failed to instantiate",
418                ::core::stringify!(ShopSellRoot),
419                ::core::stringify!(new),
420            )
421        });
422        <Self as IShopSellRootMethods>::ctor(this);
423        this
424    }
425}
426
427#[cfg(feature = "app-shopsellroot")]
428#[doc(hidden)]
429pub mod prelude {
430    pub use super::{
431        IShopSellRoot, IShopSellRootMethods, IShopSellRoot_ReturnEventHandler, IShopSellRoot_ReturnEventHandlerMethods, ShopSellRoot,
432        ShopSellRoot_ReturnEventHandler,
433    };
434    #[cfg(feature = "system-delegate")]
435    pub use crate::system::delegate::IDelegateMethods;
436    #[cfg(feature = "system-multicastdelegate")]
437    pub use crate::system::multicastdelegate::IMulticastDelegateMethods;
438    #[cfg(feature = "system-object")]
439    pub use crate::system::object::IObjectMethods;
440    #[cfg(feature = "unity_engine-behaviour")]
441    pub use crate::unity_engine::behaviour::IBehaviourMethods;
442    #[cfg(feature = "unity_engine-component")]
443    pub use crate::unity_engine::component::IComponentMethods;
444    #[cfg(feature = "unity_engine-monobehaviour")]
445    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
446    #[cfg(feature = "unity_engine-object_2")]
447    pub use crate::unity_engine::object_2::IObject_2Methods;
448    pub use crate::{
449        system::{delegate::IDelegate, multicastdelegate::IMulticastDelegate, object::IObject},
450        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
451    };
452}