Skip to main content

engage/generated/app/
materiallistmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-materiallistmenucontent-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::basicmenucontent::{BasicMenuContent, IBasicMenuContent},
10        system::{
11            object::{IObject, Object},
12            r#enum::{Enum, IEnum},
13            valuetype::{IValueType, ValueType},
14        },
15        unity_engine::{
16            behaviour::{Behaviour, IBehaviour},
17            component::{Component, IComponent},
18            monobehaviour::{IMonoBehaviour, MonoBehaviour},
19            object_2::{IObject_2, Object_2},
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/materiallistmenucontent/MaterialListMenuContent_CategoryType.md"))]
24    #[repr(C)]
25    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26    pub struct MaterialListMenuContent_CategoryType {
27        pub value: i32,
28    }
29    impl ::unity::ClassIdentity for MaterialListMenuContent_CategoryType {
30        const NAME: &'static str = "MaterialListMenuContent.CategoryType";
31        const NAMESPACE: &'static str = "App";
32
33        fn class() -> ::unity::Class {
34            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36        }
37    }
38    impl ::unity::IlType for MaterialListMenuContent_CategoryType {
39        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41        }
42    }
43    impl MaterialListMenuContent_CategoryType {
44        pub fn all() -> Self {
45            Self { value: 0 }
46        }
47
48        pub fn gift() -> Self {
49            Self { value: 1 }
50        }
51
52        pub fn food() -> Self {
53            Self { value: 2 }
54        }
55
56        pub fn material() -> Self {
57            Self { value: 3 }
58        }
59
60        pub fn other() -> Self {
61            Self { value: 4 }
62        }
63
64        pub fn count() -> Self {
65            Self { value: 5 }
66        }
67
68        pub fn begin() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn end() -> Self {
73            Self { value: 4 }
74        }
75    }
76
77    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/materiallistmenucontent/MaterialListMenuContent.md"))]
78    #[::unity::class(namespace = "App", name = "MaterialListMenuContent")]
79    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
80    pub struct MaterialListMenuContent {
81        #[static_field]
82        #[rename(name = "PrefabPath")]
83        pub prefab_path: ::unity::Il2CppString,
84        #[offset(240)]
85        #[rename(name = "m_ItemHelpText")]
86        pub m_item_help_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
87        #[offset(248)]
88        #[rename(name = "m_CategoryIconList")]
89        pub m_category_icon_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::image::Image>,
90    }
91}
92
93#[cfg(feature = "app-materiallistmenucontent-types")]
94pub use __types::*;
95
96#[cfg(feature = "app-materiallistmenucontent")]
97impl MaterialListMenuContent {
98    #[doc = "`LoadPrefabAsync()` overload"]
99    pub fn load_prefab_async() -> () {
100        unsafe {
101            ::unity::il2cpp_call!((::unity::module_base()+0x25c8e10usize)as*mut u8,();
102            )
103        }
104    }
105
106    #[doc = "`IsLoadingPrefab()` overload"]
107    pub fn is_loading_prefab() -> bool {
108        unsafe {
109            ::unity::il2cpp_call!((::unity::module_base()+0x25c8eb0usize)as*mut u8,bool;
110            )
111        }
112    }
113
114    #[doc = "`UnloadPrefab()` overload"]
115    pub fn unload_prefab() -> () {
116        unsafe {
117            ::unity::il2cpp_call!((::unity::module_base()+0x25c8f30usize)as*mut u8,();
118            )
119        }
120    }
121
122    #[doc = "`Create()` overload"]
123    pub fn create() -> crate::app::materiallistmenucontent::MaterialListMenuContent {
124        unsafe {
125            ::unity::il2cpp_call!((::unity::module_base()+0x25c7af0usize)as*mut u8,crate::app::materiallistmenucontent::MaterialListMenuContent;
126            )
127        }
128    }
129}
130
131#[cfg(feature = "app-materiallistmenucontent")]
132pub trait IMaterialListMenuContentMethods: IMaterialListMenuContent {
133    #[doc = "`get_Category()` overload"]
134    fn get_category(self) -> crate::app::materiallistmenucontent::MaterialListMenuContent_CategoryType {
135        unsafe {
136            let __receiver =
137                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x25c8df0usize)as*mut u8,crate::app::materiallistmenucontent::MaterialListMenuContent_CategoryType;
139(MaterialListMenuContent)__receiver)
140        }
141    }
142    #[doc = "`set_Category(crate::app::materiallistmenucontent::MaterialListMenuContent_CategoryType)` overload"]
143    fn set_category(self, value: impl ::core::convert::Into<crate::app::materiallistmenucontent::MaterialListMenuContent_CategoryType>) -> () {
144        unsafe {
145            let __receiver =
146                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x25c8e00usize)as*mut u8,();
148(MaterialListMenuContent)__receiver,(crate::app::materiallistmenucontent::MaterialListMenuContent_CategoryType)::core::convert::Into::into(value))
149        }
150    }
151    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
152    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
153        unsafe {
154            let __receiver =
155                <MaterialListMenuContent 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(10usize).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                        10usize,
166                        __vt.len(),
167                        <MaterialListMenuContent as ::unity::ClassIdentity>::NAME,
168                        "CalcCursorMovedPosY",
169                    )
170                });
171                let __inner: extern "C" fn(MaterialListMenuContent, i32, ::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, ::core::convert::Into::into(menu_item_index), __mi)
174            }
175        }
176    }
177    #[doc = "`InitCategory()` overload"]
178    fn init_category(self) -> () {
179        unsafe {
180            let __receiver =
181                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x25c7ba0usize)as*mut u8,();
183(MaterialListMenuContent)__receiver)
184        }
185    }
186    #[doc = "`LeftCategory(bool)` overload"]
187    fn left_category(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
188        unsafe {
189            let __receiver =
190                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191            ::unity::il2cpp_call!((::unity::module_base()+0x25c8450usize)as*mut u8,();
192(MaterialListMenuContent)__receiver,(bool)::core::convert::Into::into(is_trigger))
193        }
194    }
195    #[doc = "`RightCategory(bool)` overload"]
196    fn right_category(self, is_trigger: impl ::core::convert::Into<bool>) -> () {
197        unsafe {
198            let __receiver =
199                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            ::unity::il2cpp_call!((::unity::module_base()+0x25c8a80usize)as*mut u8,();
201(MaterialListMenuContent)__receiver,(bool)::core::convert::Into::into(is_trigger))
202        }
203    }
204    #[doc = "`SetItemHelpText(::unity::Il2CppString)` overload"]
205    fn set_item_help_text(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
206        unsafe {
207            let __receiver =
208                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x25c8d70usize)as*mut u8,();
210(MaterialListMenuContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
211        }
212    }
213    #[doc = "`.ctor()` overload"]
214    fn ctor(self) -> () {
215        unsafe {
216            let __receiver =
217                <MaterialListMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x25c9070usize)as*mut u8,();
219(MaterialListMenuContent)__receiver)
220        }
221    }
222}
223
224#[cfg(feature = "app-materiallistmenucontent")]
225impl<__T: IMaterialListMenuContent> IMaterialListMenuContentMethods for __T {}
226
227#[cfg(feature = "app-materiallistmenucontent")]
228impl MaterialListMenuContent {
229    pub fn get_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
231    }
232
233    pub fn set_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
235    }
236
237    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
239    }
240
241    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
243    }
244
245    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
247    }
248
249    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
251    }
252
253    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
255    }
256
257    pub fn init_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
259    }
260
261    pub fn left_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
263    }
264
265    pub fn right_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
267    }
268
269    pub fn set_item_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
271    }
272
273    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
275    }
276}
277
278#[cfg(feature = "app-materiallistmenucontent")]
279impl MaterialListMenuContent {
280    #[doc = "Direct (non-virtual) call to `MaterialListMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
282        let __mi = Self::calc_cursor_moved_pos_y_method_info();
283        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
284        __inner(this.into(), menu_item_index, ::core::option::Option::None)
285    }
286}
287
288#[cfg(feature = "app-materiallistmenucontent")]
289impl MaterialListMenuContent {
290    #[doc = "`.ctor()` — no args"]
291    pub fn new() -> Self {
292        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
293            panic!(
294                "{}
295::{}
296 failed to instantiate",
297                ::core::stringify!(MaterialListMenuContent),
298                ::core::stringify!(new),
299            )
300        });
301        <Self as IMaterialListMenuContentMethods>::ctor(this);
302        this
303    }
304}
305
306#[cfg(feature = "app-materiallistmenucontent")]
307#[doc(hidden)]
308pub mod prelude {
309    pub use super::{IMaterialListMenuContent, IMaterialListMenuContentMethods, MaterialListMenuContent, MaterialListMenuContent_CategoryType};
310    #[cfg(feature = "app-basicmenucontent")]
311    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
312    #[cfg(feature = "system-object")]
313    pub use crate::system::object::IObjectMethods;
314    #[cfg(feature = "system-enum")]
315    pub use crate::system::r#enum::IEnumMethods;
316    #[cfg(feature = "system-valuetype")]
317    pub use crate::system::valuetype::IValueTypeMethods;
318    #[cfg(feature = "unity_engine-behaviour")]
319    pub use crate::unity_engine::behaviour::IBehaviourMethods;
320    #[cfg(feature = "unity_engine-component")]
321    pub use crate::unity_engine::component::IComponentMethods;
322    #[cfg(feature = "unity_engine-monobehaviour")]
323    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
324    #[cfg(feature = "unity_engine-object_2")]
325    pub use crate::unity_engine::object_2::IObject_2Methods;
326    pub use crate::{
327        app::basicmenucontent::IBasicMenuContent,
328        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
329        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
330    };
331}