Skip to main content

engage/generated/app/
debugshopmenu.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-debugshopmenu-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            menuitem::{IMenuItem, MenuItem},
11            stringitem::{IStringItem, StringItem},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugshopmenu/DebugShopMenu_ShopCallItem.md"))]
17    #[::unity::class(namespace = "App", name = "DebugShopMenu.ShopCallItem")]
18    #[parent(crate::app::stringitem::StringItem)]
19    pub struct DebugShopMenu_ShopCallItem {
20        #[offset(48)]
21        #[rename(name = "m_Unit")]
22        pub m_unit: crate::app::unit::Unit,
23    }
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugshopmenu/DebugShopMenu.md"))]
26    #[::unity::class(namespace = "App", name = "DebugShopMenu")]
27    #[parent(crate::system::object::Object)]
28    pub struct DebugShopMenu {}
29}
30
31#[cfg(feature = "app-debugshopmenu-types")]
32pub use __types::*;
33
34#[cfg(feature = "app-debugshopmenu")]
35pub trait IDebugShopMenu_ShopCallItemMethods: IDebugShopMenu_ShopCallItem {
36    #[doc = "`.ctor(::unity::Il2CppString, crate::app::unit::Unit)` overload"]
37    fn ctor(self, name: impl ::core::convert::Into<::unity::Il2CppString>, unit: impl ::core::convert::Into<crate::app::unit::Unit>) -> () {
38        unsafe {
39            let __receiver =
40                <DebugShopMenu_ShopCallItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x1bb9e50usize)as*mut u8,();
42(DebugShopMenu_ShopCallItem)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(crate::app::unit::Unit)::core::convert::Into::into(unit))
43        }
44    }
45    #[doc = "`ACall()` overload"]
46    fn a_call(self) -> crate::app::menuitem::MenuItem_Result {
47        unsafe {
48            let __receiver =
49                <DebugShopMenu_ShopCallItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            {
51                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
52                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
53                    panic!(
54                        "unity: virtual slot {}
55 out of range (vtable len {}
56) on the runtime class behind {}
57 (method `{}
58`)",
59                        12usize,
60                        __vt.len(),
61                        <DebugShopMenu_ShopCallItem as ::unity::ClassIdentity>::NAME,
62                        "ACall",
63                    )
64                });
65                let __inner: extern "C" fn(DebugShopMenu_ShopCallItem, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
66                    ::core::mem::transmute(__vi.method_ptr);
67                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68                __inner(__receiver, __mi)
69            }
70        }
71    }
72}
73
74#[cfg(feature = "app-debugshopmenu")]
75impl<__T: IDebugShopMenu_ShopCallItem> IDebugShopMenu_ShopCallItemMethods for __T {}
76
77#[cfg(feature = "app-debugshopmenu")]
78impl DebugShopMenu_ShopCallItem {
79    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
81    }
82
83    pub fn a_call_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
85    }
86}
87
88#[cfg(feature = "app-debugshopmenu")]
89impl DebugShopMenu_ShopCallItem {
90    #[doc = "Direct (non-virtual) call to `DebugShopMenu_ShopCallItem`'s own `ACall`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
91    pub unsafe fn a_call(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::app::menuitem::MenuItem_Result {
92        let __mi = Self::a_call_method_info();
93        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::app::menuitem::MenuItem_Result =
94            ::core::mem::transmute(__mi.method_ptr);
95        __inner(this.into(), ::core::option::Option::None)
96    }
97}
98
99#[cfg(feature = "app-debugshopmenu")]
100impl DebugShopMenu_ShopCallItem {
101    #[doc = "`.ctor(::unity::Il2CppString, crate::app::unit::Unit)` — overload selector"]
102    pub fn new(name: ::unity::Il2CppString, unit: crate::app::unit::Unit) -> Self {
103        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
104            panic!(
105                "{}
106::{}
107 failed to instantiate",
108                ::core::stringify!(DebugShopMenu_ShopCallItem),
109                ::core::stringify!(new),
110            )
111        });
112        <Self as IDebugShopMenu_ShopCallItemMethods>::ctor(this, name, unit);
113        this
114    }
115}
116
117#[cfg(feature = "app-debugshopmenu")]
118impl DebugShopMenu {
119    #[doc = "`CreateBind(crate::app::procinst::ProcInst, crate::app::unit::Unit)` overload"]
120    pub fn create_bind(
121        super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>,
122        unit: impl ::core::convert::Into<crate::app::unit::Unit>,
123    ) -> () {
124        unsafe {
125            ::unity::il2cpp_call!((::unity::module_base()+0x2a10150usize)as*mut u8,();
126(crate::app::procinst::ProcInst)::core::convert::Into::into(super_),(crate::app::unit::Unit)::core::convert::Into::into(unit))
127        }
128    }
129}
130
131#[cfg(feature = "app-debugshopmenu")]
132pub trait IDebugShopMenuMethods: IDebugShopMenu {
133    #[doc = "`.ctor()` overload"]
134    fn ctor(self) -> () {
135        unsafe {
136            let __receiver = <DebugShopMenu as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137            ::unity::il2cpp_call!((::unity::module_base()+0x2a103a0usize)as*mut u8,();
138(DebugShopMenu)__receiver)
139        }
140    }
141}
142
143#[cfg(feature = "app-debugshopmenu")]
144impl<__T: IDebugShopMenu> IDebugShopMenuMethods for __T {}
145
146#[cfg(feature = "app-debugshopmenu")]
147impl DebugShopMenu {
148    pub fn create_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
150    }
151
152    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
154    }
155}
156
157#[cfg(feature = "app-debugshopmenu")]
158impl DebugShopMenu {
159    #[doc = "`.ctor()` — no args"]
160    pub fn new() -> Self {
161        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
162            panic!(
163                "{}
164::{}
165 failed to instantiate",
166                ::core::stringify!(DebugShopMenu),
167                ::core::stringify!(new),
168            )
169        });
170        <Self as IDebugShopMenuMethods>::ctor(this);
171        this
172    }
173}
174
175#[cfg(feature = "app-debugshopmenu")]
176#[doc(hidden)]
177pub mod prelude {
178    pub use super::{
179        DebugShopMenu, DebugShopMenu_ShopCallItem, IDebugShopMenu, IDebugShopMenuMethods, IDebugShopMenu_ShopCallItem,
180        IDebugShopMenu_ShopCallItemMethods,
181    };
182    #[cfg(feature = "app-menuitem")]
183    pub use crate::app::menuitem::IMenuItemMethods;
184    #[cfg(feature = "app-stringitem")]
185    pub use crate::app::stringitem::IStringItemMethods;
186    #[cfg(feature = "system-object")]
187    pub use crate::system::object::IObjectMethods;
188    pub use crate::{
189        app::{menuitem::IMenuItem, stringitem::IStringItem},
190        system::object::IObject,
191    };
192}