Skip to main content

engage/generated/app/
fooddata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-fooddata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::{
10            structbase::{IStructBase, StructBase},
11            structdata_1::{IStructData_1, StructData_1},
12            structtemplate_1::{IStructTemplate_1, StructTemplate_1},
13        },
14        system::{
15            object::{IObject, Object},
16            r#enum::{Enum, IEnum},
17            valuetype::{IValueType, ValueType},
18        },
19    };
20
21    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fooddata/FoodData_FoodCountry.md"))]
22    #[repr(C)]
23    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
24    pub struct FoodData_FoodCountry {
25        pub value: i32,
26    }
27    impl ::unity::ClassIdentity for FoodData_FoodCountry {
28        const NAME: &'static str = "FoodData.FoodCountry";
29        const NAMESPACE: &'static str = "App";
30
31        fn class() -> ::unity::Class {
32            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34        }
35    }
36    impl ::unity::IlType for FoodData_FoodCountry {
37        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39        }
40    }
41    impl FoodData_FoodCountry {
42        pub fn filene() -> Self {
43            Self { value: 0 }
44        }
45
46        pub fn brodia() -> Self {
47            Self { value: 1 }
48        }
49
50        pub fn solum() -> Self {
51            Self { value: 2 }
52        }
53
54        pub fn ircion() -> Self {
55            Self { value: 3 }
56        }
57
58        pub fn lithos() -> Self {
59            Self { value: 4 }
60        }
61
62        pub fn other() -> Self {
63            Self { value: 5 }
64        }
65    }
66
67    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/fooddata/FoodData.md"))]
68    #[::unity::class(namespace = "App", name = "FoodData")]
69    #[parent(crate::app::structdata_1::StructData_1<crate::app::fooddata::FoodData>)]
70    pub struct FoodData {}
71}
72
73#[cfg(feature = "app-fooddata-types")]
74pub use __types::*;
75
76#[cfg(feature = "app-fooddata")]
77impl FoodData {
78    #[doc = "`Load()` overload"]
79    pub fn load() -> () {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x2610830usize)as*mut u8,();
82            )
83        }
84    }
85}
86
87#[cfg(feature = "app-fooddata")]
88pub trait IFoodDataMethods: IFoodData {
89    #[doc = "`.ctor()` overload"]
90    fn ctor(self) -> () {
91        unsafe {
92            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            ::unity::il2cpp_call!((::unity::module_base()+0x2610770usize)as*mut u8,();
94(FoodData)__receiver)
95        }
96    }
97    #[doc = "`get_Fid()` overload"]
98    fn get_fid(self) -> ::unity::Il2CppString {
99        unsafe {
100            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            ::unity::il2cpp_call!((::unity::module_base()+0x26108e0usize)as*mut u8, ::unity::Il2CppString;
102(FoodData)__receiver)
103        }
104    }
105    #[doc = "`set_Fid(::unity::Il2CppString)` overload"]
106    fn set_fid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
107        unsafe {
108            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            ::unity::il2cpp_call!((::unity::module_base()+0x26108f0usize)as*mut u8,();
110(FoodData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
111        }
112    }
113    #[doc = "`get_Name()` overload"]
114    fn get_name(self) -> ::unity::Il2CppString {
115        unsafe {
116            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            ::unity::il2cpp_call!((::unity::module_base()+0x2610900usize)as*mut u8, ::unity::Il2CppString;
118(FoodData)__receiver)
119        }
120    }
121    #[doc = "`set_Name(::unity::Il2CppString)` overload"]
122    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
123        unsafe {
124            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125            ::unity::il2cpp_call!((::unity::module_base()+0x2610910usize)as*mut u8,();
126(FoodData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
127        }
128    }
129    #[doc = "`get_Message()` overload"]
130    fn get_message(self) -> ::unity::Il2CppString {
131        unsafe {
132            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            ::unity::il2cpp_call!((::unity::module_base()+0x2610920usize)as*mut u8, ::unity::Il2CppString;
134(FoodData)__receiver)
135        }
136    }
137    #[doc = "`set_Message(::unity::Il2CppString)` overload"]
138    fn set_message(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
139        unsafe {
140            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141            ::unity::il2cpp_call!((::unity::module_base()+0x2610930usize)as*mut u8,();
142(FoodData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
143        }
144    }
145    #[doc = "`get_Enhance()` overload"]
146    fn get_enhance(self) -> crate::app::capabilitysbyte::CapabilitySbyte {
147        unsafe {
148            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
149            ::unity::il2cpp_call!((::unity::module_base()+0x2610940usize)as*mut u8,crate::app::capabilitysbyte::CapabilitySbyte;
150(FoodData)__receiver)
151        }
152    }
153    #[doc = "`set_Enhance(crate::app::capabilitysbyte::CapabilitySbyte)` overload"]
154    fn set_enhance(self, value: impl ::core::convert::Into<crate::app::capabilitysbyte::CapabilitySbyte>) -> () {
155        unsafe {
156            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            ::unity::il2cpp_call!((::unity::module_base()+0x2610950usize)as*mut u8,();
158(FoodData)__receiver,(crate::app::capabilitysbyte::CapabilitySbyte)::core::convert::Into::into(value))
159        }
160    }
161    #[doc = "`get_Foodstuffs()` overload"]
162    fn get_foodstuffs(self) -> ::unity::Array<::unity::Il2CppString> {
163        unsafe {
164            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            ::unity::il2cpp_call!((::unity::module_base()+0x2610960usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
166(FoodData)__receiver)
167        }
168    }
169    #[doc = "`set_Foodstuffs(::unity::Array<::unity::Il2CppString>)` overload"]
170    fn set_foodstuffs(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
171        unsafe {
172            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173            ::unity::il2cpp_call!((::unity::module_base()+0x2610970usize)as*mut u8,();
174(FoodData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
175        }
176    }
177    #[doc = "`get_Country()` overload"]
178    fn get_country(self) -> crate::app::persondata::PersonData_Country {
179        unsafe {
180            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            ::unity::il2cpp_call!((::unity::module_base()+0x2610980usize)as*mut u8,crate::app::persondata::PersonData_Country;
182(FoodData)__receiver)
183        }
184    }
185    #[doc = "`set_Country(crate::app::persondata::PersonData_Country)` overload"]
186    fn set_country(self, value: impl ::core::convert::Into<crate::app::persondata::PersonData_Country>) -> () {
187        unsafe {
188            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            ::unity::il2cpp_call!((::unity::module_base()+0x2610990usize)as*mut u8,();
190(FoodData)__receiver,(crate::app::persondata::PersonData_Country)::core::convert::Into::into(value))
191        }
192    }
193    #[doc = "`get_PrefabName()` overload"]
194    fn get_prefab_name(self) -> ::unity::Il2CppString {
195        unsafe {
196            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x26109a0usize)as*mut u8, ::unity::Il2CppString;
198(FoodData)__receiver)
199        }
200    }
201    #[doc = "`set_PrefabName(::unity::Il2CppString)` overload"]
202    fn set_prefab_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
203        unsafe {
204            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x26109b0usize)as*mut u8,();
206(FoodData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
207        }
208    }
209    #[doc = "`get_SeEvent()` overload"]
210    fn get_se_event(self) -> ::unity::Il2CppString {
211        unsafe {
212            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x26109c0usize)as*mut u8, ::unity::Il2CppString;
214(FoodData)__receiver)
215        }
216    }
217    #[doc = "`set_SeEvent(::unity::Il2CppString)` overload"]
218    fn set_se_event(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
219        unsafe {
220            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x26109d0usize)as*mut u8,();
222(FoodData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
223        }
224    }
225    #[doc = "`GetDebugName()` overload"]
226    fn get_debug_name(self) -> ::unity::Il2CppString {
227        unsafe {
228            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            {
230                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
231                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
232                    panic!(
233                        "unity: virtual slot {}
234 out of range (vtable len {}
235) on the runtime class behind {}
236 (method `{}
237`)",
238                        8usize,
239                        __vt.len(),
240                        <FoodData as ::unity::ClassIdentity>::NAME,
241                        "GetDebugName",
242                    )
243                });
244                let __inner: extern "C" fn(FoodData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
245                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
246                __inner(__receiver, __mi)
247            }
248        }
249    }
250    #[doc = "`GetDifficulty(::unity::Il2CppString)` overload"]
251    fn get_difficulty(self, pid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::cookdata::CookData_Difficulty {
252        unsafe {
253            let __receiver = <FoodData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254            ::unity::il2cpp_call!((::unity::module_base()+0x2610b50usize)as*mut u8,crate::app::cookdata::CookData_Difficulty;
255(FoodData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(pid))
256        }
257    }
258}
259
260#[cfg(feature = "app-fooddata")]
261impl<__T: IFoodData> IFoodDataMethods for __T {}
262
263#[cfg(feature = "app-fooddata")]
264impl FoodData {
265    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
267    }
268
269    pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
271    }
272
273    pub fn get_fid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
275    }
276
277    pub fn set_fid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
279    }
280
281    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
283    }
284
285    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
287    }
288
289    pub fn get_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
291    }
292
293    pub fn set_message_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
295    }
296
297    pub fn get_enhance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
299    }
300
301    pub fn set_enhance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
303    }
304
305    pub fn get_foodstuffs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
307    }
308
309    pub fn set_foodstuffs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
311    }
312
313    pub fn get_country_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
315    }
316
317    pub fn set_country_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
319    }
320
321    pub fn get_prefab_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
323    }
324
325    pub fn set_prefab_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
327    }
328
329    pub fn get_se_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
331    }
332
333    pub fn set_se_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
335    }
336
337    pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
339    }
340
341    pub fn get_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
343    }
344}
345
346#[cfg(feature = "app-fooddata")]
347impl FoodData {
348    #[doc = "Direct (non-virtual) call to `FoodData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
349    pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
350        let __mi = Self::get_debug_name_method_info();
351        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
352        __inner(this.into(), ::core::option::Option::None)
353    }
354}
355
356#[cfg(feature = "app-fooddata")]
357impl FoodData {
358    #[doc = "`.ctor()` — no args"]
359    pub fn new() -> Self {
360        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
361            panic!(
362                "{}
363::{}
364 failed to instantiate",
365                ::core::stringify!(FoodData),
366                ::core::stringify!(new),
367            )
368        });
369        <Self as IFoodDataMethods>::ctor(this);
370        this
371    }
372}
373
374#[cfg(feature = "app-fooddata")]
375#[doc(hidden)]
376pub mod prelude {
377    pub use super::{FoodData, FoodData_FoodCountry, IFoodData, IFoodDataMethods};
378    #[cfg(feature = "app-structbase")]
379    pub use crate::app::structbase::IStructBaseMethods;
380    #[cfg(feature = "app-structdata_1")]
381    pub use crate::app::structdata_1::IStructData_1Methods;
382    #[cfg(feature = "app-structtemplate_1")]
383    pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
384    #[cfg(feature = "system-object")]
385    pub use crate::system::object::IObjectMethods;
386    #[cfg(feature = "system-enum")]
387    pub use crate::system::r#enum::IEnumMethods;
388    #[cfg(feature = "system-valuetype")]
389    pub use crate::system::valuetype::IValueTypeMethods;
390    pub use crate::{
391        app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
392        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
393    };
394}