Skip to main content

engage/generated/app/
shoptopmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-shoptopmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/shoptopmenucontent/ShopTopMenuContent.md"))]
20    #[::unity::class(namespace = "App", name = "ShopTopMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct ShopTopMenuContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26    }
27}
28
29#[cfg(feature = "app-shoptopmenucontent-types")]
30pub use __types::*;
31
32#[cfg(feature = "app-shoptopmenucontent")]
33impl ShopTopMenuContent {
34    #[doc = "`LoadPrefabAsync()` overload"]
35    pub fn load_prefab_async() -> () {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x21baf40usize)as*mut u8,();
38            )
39        }
40    }
41
42    #[doc = "`IsLoadingPrefab()` overload"]
43    pub fn is_loading_prefab() -> bool {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x21bafe0usize)as*mut u8,bool;
46            )
47        }
48    }
49
50    #[doc = "`UnloadPrefab()` overload"]
51    pub fn unload_prefab() -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x21bb060usize)as*mut u8,();
54            )
55        }
56    }
57
58    #[doc = "`Create()` overload"]
59    pub fn create() -> crate::app::shoptopmenucontent::ShopTopMenuContent {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x21bb0e0usize)as*mut u8,crate::app::shoptopmenucontent::ShopTopMenuContent;
62            )
63        }
64    }
65
66    #[doc = "`Destroy(crate::app::shoptopmenucontent::ShopTopMenuContent)` overload"]
67    pub fn destroy(shop_title_bar: impl ::core::convert::Into<crate::app::shoptopmenucontent::ShopTopMenuContent>) -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x21bb280usize)as*mut u8,();
70(crate::app::shoptopmenucontent::ShopTopMenuContent)::core::convert::Into::into(shop_title_bar))
71        }
72    }
73}
74
75#[cfg(feature = "app-shoptopmenucontent")]
76pub trait IShopTopMenuContentMethods: IShopTopMenuContent {
77    #[doc = "`GetMenuItemContentMax()` overload"]
78    fn get_menu_item_content_max(self) -> i32 {
79        unsafe {
80            let __receiver = <ShopTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            {
82                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
83                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
84                    panic!(
85                        "unity: virtual slot {}
86 out of range (vtable len {}
87) on the runtime class behind {}
88 (method `{}
89`)",
90                        4usize,
91                        __vt.len(),
92                        <ShopTopMenuContent as ::unity::ClassIdentity>::NAME,
93                        "GetMenuItemContentMax",
94                    )
95                });
96                let __inner: extern "C" fn(ShopTopMenuContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
97                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
98                __inner(__receiver, __mi)
99            }
100        }
101    }
102    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
103    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
104        unsafe {
105            let __receiver = <ShopTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            {
107                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
109                    panic!(
110                        "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115                        10usize,
116                        __vt.len(),
117                        <ShopTopMenuContent as ::unity::ClassIdentity>::NAME,
118                        "CalcCursorMovedPosY",
119                    )
120                });
121                let __inner: extern "C" fn(ShopTopMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
122                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
124            }
125        }
126    }
127    #[doc = "`CalcW()` overload"]
128    fn calc_w(self) -> f32 {
129        unsafe {
130            let __receiver = <ShopTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            {
132                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
133                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
134                    panic!(
135                        "unity: virtual slot {}
136 out of range (vtable len {}
137) on the runtime class behind {}
138 (method `{}
139`)",
140                        21usize,
141                        __vt.len(),
142                        <ShopTopMenuContent as ::unity::ClassIdentity>::NAME,
143                        "CalcW",
144                    )
145                });
146                let __inner: extern "C" fn(ShopTopMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
147                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
148                __inner(__receiver, __mi)
149            }
150        }
151    }
152    #[doc = "`CalcH()` overload"]
153    fn calc_h(self) -> f32 {
154        unsafe {
155            let __receiver = <ShopTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            {
157                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
158                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
159                    panic!(
160                        "unity: virtual slot {}
161 out of range (vtable len {}
162) on the runtime class behind {}
163 (method `{}
164`)",
165                        22usize,
166                        __vt.len(),
167                        <ShopTopMenuContent as ::unity::ClassIdentity>::NAME,
168                        "CalcH",
169                    )
170                });
171                let __inner: extern "C" fn(ShopTopMenuContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
172                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
173                __inner(__receiver, __mi)
174            }
175        }
176    }
177    #[doc = "`.ctor()` overload"]
178    fn ctor(self) -> () {
179        unsafe {
180            let __receiver = <ShopTopMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            ::unity::il2cpp_call!((::unity::module_base()+0x21bb6a0usize)as*mut u8,();
182(ShopTopMenuContent)__receiver)
183        }
184    }
185}
186
187#[cfg(feature = "app-shoptopmenucontent")]
188impl<__T: IShopTopMenuContent> IShopTopMenuContentMethods for __T {}
189
190#[cfg(feature = "app-shoptopmenucontent")]
191impl ShopTopMenuContent {
192    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
194    }
195
196    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
198    }
199
200    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
202    }
203
204    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
206    }
207
208    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
210    }
211
212    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
214    }
215
216    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
218    }
219
220    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
222    }
223
224    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
226    }
227
228    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
230    }
231}
232
233#[cfg(feature = "app-shoptopmenucontent")]
234impl ShopTopMenuContent {
235    #[doc = "Direct (non-virtual) call to `ShopTopMenuContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
237        let __mi = Self::get_menu_item_content_max_method_info();
238        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
239        __inner(this.into(), ::core::option::Option::None)
240    }
241
242    #[doc = "Direct (non-virtual) call to `ShopTopMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
243    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
244        let __mi = Self::calc_cursor_moved_pos_y_method_info();
245        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
246        __inner(this.into(), menu_item_index, ::core::option::Option::None)
247    }
248
249    #[doc = "Direct (non-virtual) call to `ShopTopMenuContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
250    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
251        let __mi = Self::calc_w_method_info();
252        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
253        __inner(this.into(), ::core::option::Option::None)
254    }
255
256    #[doc = "Direct (non-virtual) call to `ShopTopMenuContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
258        let __mi = Self::calc_h_method_info();
259        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
260        __inner(this.into(), ::core::option::Option::None)
261    }
262}
263
264#[cfg(feature = "app-shoptopmenucontent")]
265impl ShopTopMenuContent {
266    #[doc = "`.ctor()` — no args"]
267    pub fn new() -> Self {
268        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
269            panic!(
270                "{}
271::{}
272 failed to instantiate",
273                ::core::stringify!(ShopTopMenuContent),
274                ::core::stringify!(new),
275            )
276        });
277        <Self as IShopTopMenuContentMethods>::ctor(this);
278        this
279    }
280}
281
282#[cfg(feature = "app-shoptopmenucontent")]
283#[doc(hidden)]
284pub mod prelude {
285    pub use super::{IShopTopMenuContent, IShopTopMenuContentMethods, ShopTopMenuContent};
286    #[cfg(feature = "app-basicmenucontent")]
287    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
288    #[cfg(feature = "system-object")]
289    pub use crate::system::object::IObjectMethods;
290    #[cfg(feature = "unity_engine-behaviour")]
291    pub use crate::unity_engine::behaviour::IBehaviourMethods;
292    #[cfg(feature = "unity_engine-component")]
293    pub use crate::unity_engine::component::IComponentMethods;
294    #[cfg(feature = "unity_engine-monobehaviour")]
295    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
296    #[cfg(feature = "unity_engine-object_2")]
297    pub use crate::unity_engine::object_2::IObject_2Methods;
298    pub use crate::{
299        app::basicmenucontent::IBasicMenuContent,
300        system::object::IObject,
301        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
302    };
303}