engage/generated/app/cooking_menu/
dishselectmenucategorycontent.rs1#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
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/cooking_menu/dishselectmenucategorycontent/DishSelectMenuCategoryContent_CategoryObject.md"))]
23 #[::unity::class(namespace = "App.CookingMenu", name = "DishSelectMenuCategoryContent.CategoryObject")]
24 #[parent(crate::system::object::Object)]
25 pub struct DishSelectMenuCategoryContent_CategoryObject {
26 #[offset(16)]
27 #[rename(name = "m_Object")]
28 pub m_object: crate::unity_engine::gameobject::GameObject,
29 #[offset(24)]
30 #[rename(name = "m_Category")]
31 pub m_category: crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_Category,
32 }
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking_menu/dishselectmenucategorycontent/DishSelectMenuCategoryContent_Category.md"))]
35 #[repr(C)]
36 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
37 pub struct DishSelectMenuCategoryContent_Category {
38 pub value: i32,
39 }
40 impl ::unity::ClassIdentity for DishSelectMenuCategoryContent_Category {
41 const NAME: &'static str = "DishSelectMenuCategoryContent.Category";
42 const NAMESPACE: &'static str = "App.CookingMenu";
43
44 fn class() -> ::unity::Class {
45 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
46 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
47 }
48 }
49 impl ::unity::IlType for DishSelectMenuCategoryContent_Category {
50 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
51 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
52 }
53 }
54 impl DishSelectMenuCategoryContent_Category {
55 pub fn おすすめ() -> Self {
56 Self { value: 0 }
57 }
58
59 pub fn リトス() -> Self {
60 Self { value: 1 }
61 }
62
63 pub fn フィレネ() -> Self {
64 Self { value: 2 }
65 }
66
67 pub fn ブロディア() -> Self {
68 Self { value: 3 }
69 }
70
71 pub fn イルシオン() -> Self {
72 Self { value: 4 }
73 }
74
75 pub fn ソルム() -> Self {
76 Self { value: 5 }
77 }
78
79 pub fn その他() -> Self {
80 Self { value: 6 }
81 }
82 }
83
84 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking_menu/dishselectmenucategorycontent/DishSelectMenuCategoryContent.md"))]
85 #[::unity::class(namespace = "App.CookingMenu", name = "DishSelectMenuCategoryContent")]
86 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
87 pub struct DishSelectMenuCategoryContent {
88 #[offset(24)]
89 #[rename(name = "m_CategoryList")]
90 pub m_category_list: crate::system::collections::generic::list_1::List_1<
91 crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_CategoryObject,
92 >,
93 #[static_field]
94 #[rename(name = "s_EnableCategoryList")]
95 pub s_enable_category_list: crate::system::collections::generic::list_1::List_1<
96 crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_CategoryObject,
97 >,
98 #[static_field]
99 #[rename(name = "s_Index")]
100 pub s_index: i32,
101 #[static_field]
102 #[rename(name = "s_OldIndex")]
103 pub s_old_index: i32,
104 }
105}
106
107#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent-types")]
108pub use __types::*;
109
110#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
111pub trait IDishSelectMenuCategoryContent_CategoryObjectMethods: IDishSelectMenuCategoryContent_CategoryObject {
112 #[doc = "`.ctor()` overload"]
113 fn ctor(self) -> () {
114 unsafe {
115 let __receiver = <DishSelectMenuCategoryContent_CategoryObject as ::unity::FromIlInstance>::from_il_instance(
116 <Self as ::unity::SystemObject>::as_instance(self),
117 );
118 ::unity::il2cpp_call!((::unity::module_base()+0x1bd3c10usize)as*mut u8,();
119(DishSelectMenuCategoryContent_CategoryObject)__receiver)
120 }
121 }
122}
123
124#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
125impl<__T: IDishSelectMenuCategoryContent_CategoryObject> IDishSelectMenuCategoryContent_CategoryObjectMethods for __T {}
126
127#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
128impl DishSelectMenuCategoryContent_CategoryObject {
129 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
131 }
132}
133
134#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
135impl DishSelectMenuCategoryContent_CategoryObject {
136 #[doc = "`.ctor()` — no args"]
137 pub fn new() -> Self {
138 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
139 panic!(
140 "{}
141::{}
142 failed to instantiate",
143 ::core::stringify!(DishSelectMenuCategoryContent_CategoryObject),
144 ::core::stringify!(new),
145 )
146 });
147 <Self as IDishSelectMenuCategoryContent_CategoryObjectMethods>::ctor(this);
148 this
149 }
150}
151
152#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
153impl DishSelectMenuCategoryContent {
154 #[doc = "`Initialize()` overload"]
155 pub fn initialize() -> () {
156 unsafe {
157 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8a80usize)as*mut u8,();
158 )
159 }
160 }
161
162 #[doc = "`GetCountry(crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_Category)` overload"]
163 pub fn get_country(
164 category: impl ::core::convert::Into<crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_Category>,
165 ) -> crate::app::persondata::PersonData_Country {
166 unsafe {
167 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8ea0usize)as*mut u8,crate::app::persondata::PersonData_Country;
168(crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_Category)::core::convert::Into::into(category))
169 }
170 }
171
172 #[doc = "`IsSetup()` overload"]
173 pub fn is_setup() -> bool {
174 unsafe {
175 ::unity::il2cpp_call!((::unity::module_base()+0x1cf9030usize)as*mut u8,bool;
176 )
177 }
178 }
179
180 #[doc = "`IsRecommended()` overload"]
181 pub fn is_recommended() -> bool {
182 unsafe {
183 ::unity::il2cpp_call!((::unity::module_base()+0x1cf9090usize)as*mut u8,bool;
184 )
185 }
186 }
187
188 #[doc = "`IsInitRecommended()` overload"]
189 pub fn is_init_recommended() -> bool {
190 unsafe {
191 ::unity::il2cpp_call!((::unity::module_base()+0x1cf7d70usize)as*mut u8,bool;
192 )
193 }
194 }
195
196 #[doc = "`GetCountry()` overload"]
197 pub fn get_country_2() -> crate::app::persondata::PersonData_Country {
198 unsafe {
199 ::unity::il2cpp_call!((::unity::module_base()+0x1cf9120usize)as*mut u8,crate::app::persondata::PersonData_Country;
200 )
201 }
202 }
203
204 #[doc = "`GetIndex()` overload"]
205 pub fn get_index() -> i32 {
206 unsafe {
207 ::unity::il2cpp_call!((::unity::module_base()+0x1cf91d0usize)as*mut u8,i32;
208 )
209 }
210 }
211
212 #[doc = "`GetOldIndex()` overload"]
213 pub fn get_old_index() -> i32 {
214 unsafe {
215 ::unity::il2cpp_call!((::unity::module_base()+0x1cf9220usize)as*mut u8,i32;
216 )
217 }
218 }
219}
220
221#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
222pub trait IDishSelectMenuCategoryContentMethods: IDishSelectMenuCategoryContent {
223 #[doc = "`Awake()` overload"]
224 fn awake(self) -> () {
225 unsafe {
226 let __receiver =
227 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x1cf87f0usize)as*mut u8,();
229(DishSelectMenuCategoryContent)__receiver)
230 }
231 }
232 #[doc = "`Next(bool)` overload"]
233 fn next(self, is_trigger: impl ::core::convert::Into<bool>) -> bool {
234 unsafe {
235 let __receiver =
236 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8ae0usize)as*mut u8,bool;
238(DishSelectMenuCategoryContent)__receiver,(bool)::core::convert::Into::into(is_trigger))
239 }
240 }
241 #[doc = "`Prev(bool)` overload"]
242 fn prev(self, is_trigger: impl ::core::convert::Into<bool>) -> bool {
243 unsafe {
244 let __receiver =
245 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8c90usize)as*mut u8,bool;
247(DishSelectMenuCategoryContent)__receiver,(bool)::core::convert::Into::into(is_trigger))
248 }
249 }
250 #[doc = "`InitObject()` overload"]
251 fn init_object(self) -> () {
252 unsafe {
253 let __receiver =
254 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8850usize)as*mut u8,();
256(DishSelectMenuCategoryContent)__receiver)
257 }
258 }
259 #[doc = "`CheckEnable(crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_CategoryObject)` overload"]
260 fn check_enable(
261 self,
262 category: impl ::core::convert::Into<crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_CategoryObject>,
263 ) -> bool {
264 unsafe {
265 let __receiver =
266 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8d50usize)as*mut u8,bool;
268(DishSelectMenuCategoryContent)__receiver,(crate::app::cooking_menu::dishselectmenucategorycontent::DishSelectMenuCategoryContent_CategoryObject)::core::convert::Into::into(category))
269 }
270 }
271 #[doc = "`SetActive(crate::unity_engine::gameobject::GameObject, bool)` overload"]
272 fn set_active(
273 self,
274 game_object: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
275 value: impl ::core::convert::Into<bool>,
276 ) -> () {
277 unsafe {
278 let __receiver =
279 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
280 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8ed0usize)as*mut u8,();
281(DishSelectMenuCategoryContent)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(game_object),(bool)::core::convert::Into::into(value))
282 }
283 }
284 #[doc = "`UpdateIndex()` overload"]
285 fn update_index(self) -> () {
286 unsafe {
287 let __receiver =
288 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 ::unity::il2cpp_call!((::unity::module_base()+0x1cf8bb0usize)as*mut u8,();
290(DishSelectMenuCategoryContent)__receiver)
291 }
292 }
293 #[doc = "`.ctor()` overload"]
294 fn ctor(self) -> () {
295 unsafe {
296 let __receiver =
297 <DishSelectMenuCategoryContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298 ::unity::il2cpp_call!((::unity::module_base()+0x1cf9270usize)as*mut u8,();
299(DishSelectMenuCategoryContent)__receiver)
300 }
301 }
302}
303
304#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
305impl<__T: IDishSelectMenuCategoryContent> IDishSelectMenuCategoryContentMethods for __T {}
306
307#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
308impl DishSelectMenuCategoryContent {
309 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
311 }
312
313 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
315 }
316
317 pub fn next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
319 }
320
321 pub fn prev_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
323 }
324
325 pub fn init_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
327 }
328
329 pub fn check_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
331 }
332
333 pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
335 }
336
337 pub fn get_country_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
339 }
340
341 pub fn update_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
343 }
344
345 pub fn is_setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
347 }
348
349 pub fn is_recommended_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
351 }
352
353 pub fn is_init_recommended_method_info() -> &'static ::unity::il2cpp::MethodInfo {
354 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
355 }
356
357 pub fn get_country_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
358 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
359 }
360
361 pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
362 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
363 }
364
365 pub fn get_old_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
366 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
367 }
368
369 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
370 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
371 }
372}
373
374#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
375impl DishSelectMenuCategoryContent {
376 #[doc = "`.ctor()` — no args"]
377 pub fn new() -> Self {
378 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
379 panic!(
380 "{}
381::{}
382 failed to instantiate",
383 ::core::stringify!(DishSelectMenuCategoryContent),
384 ::core::stringify!(new),
385 )
386 });
387 <Self as IDishSelectMenuCategoryContentMethods>::ctor(this);
388 this
389 }
390}
391
392#[cfg(feature = "app-cooking_menu-dishselectmenucategorycontent")]
393#[doc(hidden)]
394pub mod prelude {
395 pub use super::{
396 DishSelectMenuCategoryContent, DishSelectMenuCategoryContent_Category, DishSelectMenuCategoryContent_CategoryObject,
397 IDishSelectMenuCategoryContent, IDishSelectMenuCategoryContentMethods, IDishSelectMenuCategoryContent_CategoryObject,
398 IDishSelectMenuCategoryContent_CategoryObjectMethods,
399 };
400 #[cfg(feature = "system-object")]
401 pub use crate::system::object::IObjectMethods;
402 #[cfg(feature = "system-enum")]
403 pub use crate::system::r#enum::IEnumMethods;
404 #[cfg(feature = "system-valuetype")]
405 pub use crate::system::valuetype::IValueTypeMethods;
406 #[cfg(feature = "unity_engine-behaviour")]
407 pub use crate::unity_engine::behaviour::IBehaviourMethods;
408 #[cfg(feature = "unity_engine-component")]
409 pub use crate::unity_engine::component::IComponentMethods;
410 #[cfg(feature = "unity_engine-monobehaviour")]
411 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
412 #[cfg(feature = "unity_engine-object_2")]
413 pub use crate::unity_engine::object_2::IObject_2Methods;
414 pub use crate::{
415 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
416 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
417 };
418}