Skip to main content

engage/generated/app/
itemlistdialogcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-itemlistdialogcontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            basicdialogcontent::{BasicDialogContent, IBasicDialogContent},
11            basicmenucontent::{BasicMenuContent, IBasicMenuContent},
12        },
13        system::object::{IObject, Object},
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/itemlistdialogcontent/ItemListDialogContent.md"))]
23    #[::unity::class(namespace = "App", name = "ItemListDialogContent")]
24    #[parent(crate::app::basicdialogcontent::BasicDialogContent)]
25    pub struct ItemListDialogContent {
26        #[static_field]
27        #[rename(name = "PrefabPath")]
28        pub prefab_path: ::unity::Il2CppString,
29        #[offset(264)]
30        #[rename(name = "m_objItemList")]
31        pub m_obj_item_list: crate::unity_engine::gameobject::GameObject,
32        #[offset(272)]
33        #[rename(name = "m_moneyItem")]
34        pub m_money_item: crate::unity_engine::gameobject::GameObject,
35    }
36}
37
38#[cfg(feature = "app-itemlistdialogcontent-types")]
39pub use __types::*;
40
41#[cfg(feature = "app-itemlistdialogcontent")]
42impl ItemListDialogContent {
43    #[doc = "`LoadPrefabAsync()` overload"]
44    pub fn load_prefab_async() -> () {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x203fcb0usize)as*mut u8,();
47            )
48        }
49    }
50
51    #[doc = "`Create()` overload"]
52    pub fn create() -> crate::app::itemlistdialogcontent::ItemListDialogContent {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x203fd50usize)as*mut u8,crate::app::itemlistdialogcontent::ItemListDialogContent;
55            )
56        }
57    }
58
59    #[doc = "`.cctor()` overload"]
60    pub fn cctor() -> () {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x2040a70usize)as*mut u8,();
63            )
64        }
65    }
66}
67
68#[cfg(feature = "app-itemlistdialogcontent")]
69pub trait IItemListDialogContentMethods: IItemListDialogContent {
70    #[doc = "`HideMenuList()` overload"]
71    fn hide_menu_list(self) -> () {
72        unsafe {
73            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x203fe40usize)as*mut u8,();
75(ItemListDialogContent)__receiver)
76        }
77    }
78    #[doc = "`InitObjReference()` overload"]
79    fn init_obj_reference(self) -> () {
80        unsafe {
81            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            {
83                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
84                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
85                    panic!(
86                        "unity: virtual slot {}
87 out of range (vtable len {}
88) on the runtime class behind {}
89 (method `{}
90`)",
91                        13usize,
92                        __vt.len(),
93                        <ItemListDialogContent as ::unity::ClassIdentity>::NAME,
94                        "InitObjReference",
95                    )
96                });
97                let __inner: extern "C" fn(ItemListDialogContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
98                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
99                __inner(__receiver, __mi)
100            }
101        }
102    }
103    #[doc = "`BuildMenuItemContent()` overload"]
104    fn build_menu_item_content(self) -> () {
105        unsafe {
106            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            {
108                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
109                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
110                    panic!(
111                        "unity: virtual slot {}
112 out of range (vtable len {}
113) on the runtime class behind {}
114 (method `{}
115`)",
116                        18usize,
117                        __vt.len(),
118                        <ItemListDialogContent as ::unity::ClassIdentity>::NAME,
119                        "BuildMenuItemContent",
120                    )
121                });
122                let __inner: extern "C" fn(ItemListDialogContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
123                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
124                __inner(__receiver, __mi)
125            }
126        }
127    }
128    #[doc = "`GetItemListCount()` overload"]
129    fn get_item_list_count(self) -> i32 {
130        unsafe {
131            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132            {
133                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134                let __vi = *__vt.get(34usize).unwrap_or_else(|| {
135                    panic!(
136                        "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141                        34usize,
142                        __vt.len(),
143                        <ItemListDialogContent as ::unity::ClassIdentity>::NAME,
144                        "GetItemListCount",
145                    )
146                });
147                let __inner: extern "C" fn(ItemListDialogContent, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
148                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
149                __inner(__receiver, __mi)
150            }
151        }
152    }
153    #[doc = "`CalcCursorMovedPosX(i32)` overload"]
154    fn calc_cursor_moved_pos_x(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
155        unsafe {
156            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            {
158                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
159                let __vi = *__vt.get(9usize).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                        9usize,
167                        __vt.len(),
168                        <ItemListDialogContent as ::unity::ClassIdentity>::NAME,
169                        "CalcCursorMovedPosX",
170                    )
171                });
172                let __inner: extern "C" fn(ItemListDialogContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
173                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
174                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
175            }
176        }
177    }
178    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
179    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
180        unsafe {
181            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            {
183                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
184                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
185                    panic!(
186                        "unity: virtual slot {}
187 out of range (vtable len {}
188) on the runtime class behind {}
189 (method `{}
190`)",
191                        10usize,
192                        __vt.len(),
193                        <ItemListDialogContent as ::unity::ClassIdentity>::NAME,
194                        "CalcCursorMovedPosY",
195                    )
196                });
197                let __inner: extern "C" fn(ItemListDialogContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
198                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
199                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
200            }
201        }
202    }
203    #[doc = "`.ctor()` overload"]
204    fn ctor(self) -> () {
205        unsafe {
206            let __receiver = <ItemListDialogContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x2040a00usize)as*mut u8,();
208(ItemListDialogContent)__receiver)
209        }
210    }
211}
212
213#[cfg(feature = "app-itemlistdialogcontent")]
214impl<__T: IItemListDialogContent> IItemListDialogContentMethods for __T {}
215
216#[cfg(feature = "app-itemlistdialogcontent")]
217impl ItemListDialogContent {
218    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
220    }
221
222    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
224    }
225
226    pub fn hide_menu_list_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
228    }
229
230    pub fn init_obj_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
232    }
233
234    pub fn build_menu_item_content_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
236    }
237
238    pub fn get_item_list_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
240    }
241
242    pub fn calc_cursor_moved_pos_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
244    }
245
246    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
248    }
249
250    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
252    }
253
254    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
256    }
257}
258
259#[cfg(feature = "app-itemlistdialogcontent")]
260impl ItemListDialogContent {
261    #[doc = "Direct (non-virtual) call to `ItemListDialogContent`'s own `InitObjReference`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
262    pub unsafe fn init_obj_reference(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
263        let __mi = Self::init_obj_reference_method_info();
264        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), ::core::option::Option::None)
266    }
267
268    #[doc = "Direct (non-virtual) call to `ItemListDialogContent`'s own `BuildMenuItemContent`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269    pub unsafe fn build_menu_item_content(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
270        let __mi = Self::build_menu_item_content_method_info();
271        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
272        __inner(this.into(), ::core::option::Option::None)
273    }
274
275    #[doc = "Direct (non-virtual) call to `ItemListDialogContent`'s own `GetItemListCount`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
276    pub unsafe fn get_item_list_count(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
277        let __mi = Self::get_item_list_count_method_info();
278        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
279        __inner(this.into(), ::core::option::Option::None)
280    }
281
282    #[doc = "Direct (non-virtual) call to `ItemListDialogContent`'s own `CalcCursorMovedPosX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
283    pub unsafe fn calc_cursor_moved_pos_x(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
284        let __mi = Self::calc_cursor_moved_pos_x_method_info();
285        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
286        __inner(this.into(), menu_item_index, ::core::option::Option::None)
287    }
288
289    #[doc = "Direct (non-virtual) call to `ItemListDialogContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
290    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
291        let __mi = Self::calc_cursor_moved_pos_y_method_info();
292        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
293        __inner(this.into(), menu_item_index, ::core::option::Option::None)
294    }
295}
296
297#[cfg(feature = "app-itemlistdialogcontent")]
298impl ItemListDialogContent {
299    #[doc = "`.ctor()` — no args"]
300    pub fn new() -> Self {
301        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
302            panic!(
303                "{}
304::{}
305 failed to instantiate",
306                ::core::stringify!(ItemListDialogContent),
307                ::core::stringify!(new),
308            )
309        });
310        <Self as IItemListDialogContentMethods>::ctor(this);
311        this
312    }
313}
314
315#[cfg(feature = "app-itemlistdialogcontent")]
316#[doc(hidden)]
317pub mod prelude {
318    pub use super::{IItemListDialogContent, IItemListDialogContentMethods, ItemListDialogContent};
319    #[cfg(feature = "app-basicdialogcontent")]
320    pub use crate::app::basicdialogcontent::IBasicDialogContentMethods;
321    #[cfg(feature = "app-basicmenucontent")]
322    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
323    #[cfg(feature = "system-object")]
324    pub use crate::system::object::IObjectMethods;
325    #[cfg(feature = "unity_engine-behaviour")]
326    pub use crate::unity_engine::behaviour::IBehaviourMethods;
327    #[cfg(feature = "unity_engine-component")]
328    pub use crate::unity_engine::component::IComponentMethods;
329    #[cfg(feature = "unity_engine-monobehaviour")]
330    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
331    #[cfg(feature = "unity_engine-object_2")]
332    pub use crate::unity_engine::object_2::IObject_2Methods;
333    pub use crate::{
334        app::{basicdialogcontent::IBasicDialogContent, basicmenucontent::IBasicMenuContent},
335        system::object::IObject,
336        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
337    };
338}