Skip to main content

engage/generated/app/
mascotfoodselectcontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-mascotfoodselectcontent-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/mascotfoodselectcontent/MascotFoodSelectContent.md"))]
20    #[::unity::class(namespace = "App", name = "MascotFoodSelectContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct MascotFoodSelectContent {
23        #[static_field]
24        #[rename(name = "PrefabPath")]
25        pub prefab_path: ::unity::Il2CppString,
26        #[static_field]
27        #[rename(name = "UIName")]
28        pub ui_name: ::unity::Il2CppString,
29        #[offset(232)]
30        #[rename(name = "m_Food")]
31        pub m_food: crate::unity_engine::gameobject::GameObject,
32        #[offset(240)]
33        #[rename(name = "m_FoodCount")]
34        pub m_food_count: crate::unity_engine::gameobject::GameObject,
35        #[offset(248)]
36        #[rename(name = "m_FoodHelp")]
37        pub m_food_help: crate::unity_engine::gameobject::GameObject,
38        #[offset(256)]
39        #[rename(name = "m_HelpRoot")]
40        pub m_help_root: crate::unity_engine::gameobject::GameObject,
41    }
42}
43
44#[cfg(feature = "app-mascotfoodselectcontent-types")]
45pub use __types::*;
46
47#[cfg(feature = "app-mascotfoodselectcontent")]
48impl MascotFoodSelectContent {
49    #[doc = "`LoadPrefabAsync()` overload"]
50    pub fn load_prefab_async() -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x20372e0usize)as*mut u8,();
53            )
54        }
55    }
56
57    #[doc = "`IsLoadingPrefab()` overload"]
58    pub fn is_loading_prefab() -> bool {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2037380usize)as*mut u8,bool;
61            )
62        }
63    }
64
65    #[doc = "`UnloadPrefab()` overload"]
66    pub fn unload_prefab() -> () {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x2037400usize)as*mut u8,();
69            )
70        }
71    }
72
73    #[doc = "`Create()` overload"]
74    pub fn create() -> crate::app::mascotfoodselectcontent::MascotFoodSelectContent {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x2037480usize)as*mut u8,crate::app::mascotfoodselectcontent::MascotFoodSelectContent;
77            )
78        }
79    }
80
81    #[doc = "`Destroy()` overload"]
82    pub fn destroy() -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x2037550usize)as*mut u8,();
85            )
86        }
87    }
88}
89
90#[cfg(feature = "app-mascotfoodselectcontent")]
91pub trait IMascotFoodSelectContentMethods: IMascotFoodSelectContent {
92    #[doc = "`SetHelpText(::unity::Il2CppString)` overload"]
93    fn set_help_text(self, help: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
94        unsafe {
95            let __receiver =
96                <MascotFoodSelectContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x20375e0usize)as*mut u8,();
98(MascotFoodSelectContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(help))
99        }
100    }
101    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
102    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
103        unsafe {
104            let __receiver =
105                <MascotFoodSelectContent 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                        <MascotFoodSelectContent as ::unity::ClassIdentity>::NAME,
118                        "CalcCursorMovedPosY",
119                    )
120                });
121                let __inner: extern "C" fn(MascotFoodSelectContent, 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 = "`GetMenuItemContentMax()` overload"]
128    fn get_menu_item_content_max(self) -> i32 {
129        unsafe {
130            let __receiver =
131                <MascotFoodSelectContent 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(4usize).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                        4usize,
142                        __vt.len(),
143                        <MascotFoodSelectContent as ::unity::ClassIdentity>::NAME,
144                        "GetMenuItemContentMax",
145                    )
146                });
147                let __inner: extern "C" fn(MascotFoodSelectContent, ::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 = "`CalcW()` overload"]
154    fn calc_w(self) -> f32 {
155        unsafe {
156            let __receiver =
157                <MascotFoodSelectContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            {
159                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
160                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
161                    panic!(
162                        "unity: virtual slot {}
163 out of range (vtable len {}
164) on the runtime class behind {}
165 (method `{}
166`)",
167                        21usize,
168                        __vt.len(),
169                        <MascotFoodSelectContent as ::unity::ClassIdentity>::NAME,
170                        "CalcW",
171                    )
172                });
173                let __inner: extern "C" fn(MascotFoodSelectContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
174                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
175                __inner(__receiver, __mi)
176            }
177        }
178    }
179    #[doc = "`CalcH()` overload"]
180    fn calc_h(self) -> f32 {
181        unsafe {
182            let __receiver =
183                <MascotFoodSelectContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            {
185                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
186                let __vi = *__vt.get(22usize).unwrap_or_else(|| {
187                    panic!(
188                        "unity: virtual slot {}
189 out of range (vtable len {}
190) on the runtime class behind {}
191 (method `{}
192`)",
193                        22usize,
194                        __vt.len(),
195                        <MascotFoodSelectContent as ::unity::ClassIdentity>::NAME,
196                        "CalcH",
197                    )
198                });
199                let __inner: extern "C" fn(MascotFoodSelectContent, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
200                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
201                __inner(__receiver, __mi)
202            }
203        }
204    }
205    #[doc = "`Awake()` overload"]
206    fn awake(self) -> () {
207        unsafe {
208            let __receiver =
209                <MascotFoodSelectContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            {
211                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
212                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
213                    panic!(
214                        "unity: virtual slot {}
215 out of range (vtable len {}
216) on the runtime class behind {}
217 (method `{}
218`)",
219                        30usize,
220                        __vt.len(),
221                        <MascotFoodSelectContent as ::unity::ClassIdentity>::NAME,
222                        "Awake",
223                    )
224                });
225                let __inner: extern "C" fn(MascotFoodSelectContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
226                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
227                __inner(__receiver, __mi)
228            }
229        }
230    }
231    #[doc = "`.ctor()` overload"]
232    fn ctor(self) -> () {
233        unsafe {
234            let __receiver =
235                <MascotFoodSelectContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236            ::unity::il2cpp_call!((::unity::module_base()+0x2037af0usize)as*mut u8,();
237(MascotFoodSelectContent)__receiver)
238        }
239    }
240}
241
242#[cfg(feature = "app-mascotfoodselectcontent")]
243impl<__T: IMascotFoodSelectContent> IMascotFoodSelectContentMethods for __T {}
244
245#[cfg(feature = "app-mascotfoodselectcontent")]
246impl MascotFoodSelectContent {
247    pub fn load_prefab_async_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
249    }
250
251    pub fn is_loading_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
253    }
254
255    pub fn unload_prefab_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
257    }
258
259    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
261    }
262
263    pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
265    }
266
267    pub fn set_help_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
269    }
270
271    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
273    }
274
275    pub fn get_menu_item_content_max_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
277    }
278
279    pub fn calc_w_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
281    }
282
283    pub fn calc_h_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
285    }
286
287    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
289    }
290
291    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
293    }
294}
295
296#[cfg(feature = "app-mascotfoodselectcontent")]
297impl MascotFoodSelectContent {
298    #[doc = "Direct (non-virtual) call to `MascotFoodSelectContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
300        let __mi = Self::calc_cursor_moved_pos_y_method_info();
301        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
302        __inner(this.into(), menu_item_index, ::core::option::Option::None)
303    }
304
305    #[doc = "Direct (non-virtual) call to `MascotFoodSelectContent`'s own `GetMenuItemContentMax`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
306    pub unsafe fn get_menu_item_content_max(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
307        let __mi = Self::get_menu_item_content_max_method_info();
308        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
309        __inner(this.into(), ::core::option::Option::None)
310    }
311
312    #[doc = "Direct (non-virtual) call to `MascotFoodSelectContent`'s own `CalcW`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
313    pub unsafe fn calc_w(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
314        let __mi = Self::calc_w_method_info();
315        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
316        __inner(this.into(), ::core::option::Option::None)
317    }
318
319    #[doc = "Direct (non-virtual) call to `MascotFoodSelectContent`'s own `CalcH`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
320    pub unsafe fn calc_h(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
321        let __mi = Self::calc_h_method_info();
322        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
323        __inner(this.into(), ::core::option::Option::None)
324    }
325
326    #[doc = "Direct (non-virtual) call to `MascotFoodSelectContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
327    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
328        let __mi = Self::awake_method_info();
329        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
330        __inner(this.into(), ::core::option::Option::None)
331    }
332}
333
334#[cfg(feature = "app-mascotfoodselectcontent")]
335impl MascotFoodSelectContent {
336    #[doc = "`.ctor()` — no args"]
337    pub fn new() -> Self {
338        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
339            panic!(
340                "{}
341::{}
342 failed to instantiate",
343                ::core::stringify!(MascotFoodSelectContent),
344                ::core::stringify!(new),
345            )
346        });
347        <Self as IMascotFoodSelectContentMethods>::ctor(this);
348        this
349    }
350}
351
352#[cfg(feature = "app-mascotfoodselectcontent")]
353#[doc(hidden)]
354pub mod prelude {
355    pub use super::{IMascotFoodSelectContent, IMascotFoodSelectContentMethods, MascotFoodSelectContent};
356    #[cfg(feature = "app-basicmenucontent")]
357    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
358    #[cfg(feature = "system-object")]
359    pub use crate::system::object::IObjectMethods;
360    #[cfg(feature = "unity_engine-behaviour")]
361    pub use crate::unity_engine::behaviour::IBehaviourMethods;
362    #[cfg(feature = "unity_engine-component")]
363    pub use crate::unity_engine::component::IComponentMethods;
364    #[cfg(feature = "unity_engine-monobehaviour")]
365    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
366    #[cfg(feature = "unity_engine-object_2")]
367    pub use crate::unity_engine::object_2::IObject_2Methods;
368    pub use crate::{
369        app::basicmenucontent::IBasicMenuContent,
370        system::object::IObject,
371        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
372    };
373}