Skip to main content

engage/generated/app/cooking_menu/
dishselectmenucontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-cooking_menu-dishselectmenucontent-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/cooking_menu/dishselectmenucontent/DishSelectMenuContent.md"))]
20    #[::unity::class(namespace = "App.CookingMenu", name = "DishSelectMenuContent")]
21    #[parent(crate::app::basicmenucontent::BasicMenuContent)]
22    pub struct DishSelectMenuContent {
23        #[offset(232)]
24        #[rename(name = "m_winSubAnimatorList")]
25        pub m_win_sub_animator_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::animator::Animator>,
26        #[offset(240)]
27        #[rename(name = "m_CategoryContent")]
28        pub m_category_content: crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent,
29        #[offset(248)]
30        #[rename(name = "m_FoodInfoContent")]
31        pub m_food_info_content: crate::app::cooking_menu::dishselectfoodinfocontent::DishSelectFoodInfoContent,
32        #[offset(256)]
33        #[rename(name = "m_BasicEffectText")]
34        pub m_basic_effect_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
35        #[offset(264)]
36        #[rename(name = "m_CanAddFoodText")]
37        pub m_can_add_food_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
38        #[offset(272)]
39        #[rename(name = "m_FavoriteText")]
40        pub m_favorite_text: crate::tm_pro::textmeshprougui::TextMeshProUGUI,
41        #[offset(280)]
42        #[rename(name = "m_FavoriteLikeText")]
43        pub m_favorite_like_text: crate::system::collections::generic::list_1::List_1<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
44        #[offset(288)]
45        #[rename(name = "m_FavoriteNormalText")]
46        pub m_favorite_normal_text: crate::system::collections::generic::list_1::List_1<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
47        #[offset(296)]
48        #[rename(name = "m_FavoriteDislikeText")]
49        pub m_favorite_dislike_text: crate::system::collections::generic::list_1::List_1<crate::tm_pro::textmeshprougui::TextMeshProUGUI>,
50    }
51}
52
53#[cfg(feature = "app-cooking_menu-dishselectmenucontent-types")]
54pub use __types::*;
55
56#[cfg(feature = "app-cooking_menu-dishselectmenucontent")]
57pub trait IDishSelectMenuContentMethods: IDishSelectMenuContent {
58    #[doc = "`Awake()` overload"]
59    fn awake(self) -> () {
60        unsafe {
61            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62            {
63                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
65                    panic!(
66                        "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71                        30usize,
72                        __vt.len(),
73                        <DishSelectMenuContent as ::unity::ClassIdentity>::NAME,
74                        "Awake",
75                    )
76                });
77                let __inner: extern "C" fn(DishSelectMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
78                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
79                __inner(__receiver, __mi)
80            }
81        }
82    }
83    #[doc = "`SetMessage()` overload"]
84    fn set_message(self) -> () {
85        unsafe {
86            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x1cf92b0usize)as*mut u8,();
88(DishSelectMenuContent)__receiver)
89        }
90    }
91    #[doc = "`AfterBuild()` overload"]
92    fn after_build(self) -> () {
93        unsafe {
94            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            {
96                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
97                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
98                    panic!(
99                        "unity: virtual slot {}
100 out of range (vtable len {}
101) on the runtime class behind {}
102 (method `{}
103`)",
104                        27usize,
105                        __vt.len(),
106                        <DishSelectMenuContent as ::unity::ClassIdentity>::NAME,
107                        "AfterBuild",
108                    )
109                });
110                let __inner: extern "C" fn(DishSelectMenuContent, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, __mi)
113            }
114        }
115    }
116    #[doc = "`CalcCursorMovedPosY(i32)` overload"]
117    fn calc_cursor_moved_pos_y(self, menu_item_index: impl ::core::convert::Into<i32>) -> f32 {
118        unsafe {
119            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120            {
121                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
122                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
123                    panic!(
124                        "unity: virtual slot {}
125 out of range (vtable len {}
126) on the runtime class behind {}
127 (method `{}
128`)",
129                        10usize,
130                        __vt.len(),
131                        <DishSelectMenuContent as ::unity::ClassIdentity>::NAME,
132                        "CalcCursorMovedPosY",
133                    )
134                });
135                let __inner: extern "C" fn(DishSelectMenuContent, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
136                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
137                __inner(__receiver, ::core::convert::Into::into(menu_item_index), __mi)
138            }
139        }
140    }
141    #[doc = "`KeyLeft(bool)` overload"]
142    fn key_left(self, is_trigger: impl ::core::convert::Into<bool>) -> bool {
143        unsafe {
144            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            ::unity::il2cpp_call!((::unity::module_base()+0x1cf82a0usize)as*mut u8,bool;
146(DishSelectMenuContent)__receiver,(bool)::core::convert::Into::into(is_trigger))
147        }
148    }
149    #[doc = "`KeyRight(bool)` overload"]
150    fn key_right(self, is_trigger: impl ::core::convert::Into<bool>) -> bool {
151        unsafe {
152            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x1cf85a0usize)as*mut u8,bool;
154(DishSelectMenuContent)__receiver,(bool)::core::convert::Into::into(is_trigger))
155        }
156    }
157    #[doc = "`get_FoodInfo()` overload"]
158    fn get_food_info(self) -> crate::app::cooking_menu::dishselectfoodinfocontent::DishSelectFoodInfoContent {
159        unsafe {
160            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x1cf9a70usize)as*mut u8,crate::app::cooking_menu::dishselectfoodinfocontent::DishSelectFoodInfoContent;
162(DishSelectMenuContent)__receiver)
163        }
164    }
165    #[doc = "`.ctor()` overload"]
166    fn ctor(self) -> () {
167        unsafe {
168            let __receiver = <DishSelectMenuContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
169            ::unity::il2cpp_call!((::unity::module_base()+0x1cf9a80usize)as*mut u8,();
170(DishSelectMenuContent)__receiver)
171        }
172    }
173}
174
175#[cfg(feature = "app-cooking_menu-dishselectmenucontent")]
176impl<__T: IDishSelectMenuContent> IDishSelectMenuContentMethods for __T {}
177
178#[cfg(feature = "app-cooking_menu-dishselectmenucontent")]
179impl DishSelectMenuContent {
180    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
182    }
183
184    pub fn set_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
186    }
187
188    pub fn after_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
190    }
191
192    pub fn calc_cursor_moved_pos_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
194    }
195
196    pub fn key_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
198    }
199
200    pub fn key_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
202    }
203
204    pub fn get_food_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
206    }
207
208    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
210    }
211}
212
213#[cfg(feature = "app-cooking_menu-dishselectmenucontent")]
214impl DishSelectMenuContent {
215    #[doc = "Direct (non-virtual) call to `DishSelectMenuContent`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
216    pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
217        let __mi = Self::awake_method_info();
218        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
219        __inner(this.into(), ::core::option::Option::None)
220    }
221
222    #[doc = "Direct (non-virtual) call to `DishSelectMenuContent`'s own `AfterBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223    pub unsafe fn after_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
224        let __mi = Self::after_build_method_info();
225        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
226        __inner(this.into(), ::core::option::Option::None)
227    }
228
229    #[doc = "Direct (non-virtual) call to `DishSelectMenuContent`'s own `CalcCursorMovedPosY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
230    pub unsafe fn calc_cursor_moved_pos_y(this: impl ::core::convert::Into<::unity::IlInstance>, menu_item_index: i32) -> f32 {
231        let __mi = Self::calc_cursor_moved_pos_y_method_info();
232        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
233        __inner(this.into(), menu_item_index, ::core::option::Option::None)
234    }
235}
236
237#[cfg(feature = "app-cooking_menu-dishselectmenucontent")]
238impl DishSelectMenuContent {
239    #[doc = "`.ctor()` — no args"]
240    pub fn new() -> Self {
241        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
242            panic!(
243                "{}
244::{}
245 failed to instantiate",
246                ::core::stringify!(DishSelectMenuContent),
247                ::core::stringify!(new),
248            )
249        });
250        <Self as IDishSelectMenuContentMethods>::ctor(this);
251        this
252    }
253}
254
255#[cfg(feature = "app-cooking_menu-dishselectmenucontent")]
256#[doc(hidden)]
257pub mod prelude {
258    pub use super::{DishSelectMenuContent, IDishSelectMenuContent, IDishSelectMenuContentMethods};
259    #[cfg(feature = "app-basicmenucontent")]
260    pub use crate::app::basicmenucontent::IBasicMenuContentMethods;
261    #[cfg(feature = "system-object")]
262    pub use crate::system::object::IObjectMethods;
263    #[cfg(feature = "unity_engine-behaviour")]
264    pub use crate::unity_engine::behaviour::IBehaviourMethods;
265    #[cfg(feature = "unity_engine-component")]
266    pub use crate::unity_engine::component::IComponentMethods;
267    #[cfg(feature = "unity_engine-monobehaviour")]
268    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
269    #[cfg(feature = "unity_engine-object_2")]
270    pub use crate::unity_engine::object_2::IObject_2Methods;
271    pub use crate::{
272        app::basicmenucontent::IBasicMenuContent,
273        system::object::IObject,
274        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
275    };
276}