1#[cfg(feature = "app-cookdata-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/cookdata/CookData.md"))]
22 #[::unity::class(namespace = "App", name = "CookData")]
23 #[parent(crate::app::structdata_1::StructData_1<crate::app::cookdata::CookData>)]
24 pub struct CookData {
25 #[offset(136)]
26 #[rename(name = "MaskColor100")]
27 pub mask_color100: crate::unity_engine::color::Color,
28 #[offset(152)]
29 #[rename(name = "MaskColor075")]
30 pub mask_color075: crate::unity_engine::color::Color,
31 }
32
33 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cookdata/CookData_Difficulty.md"))]
34 #[repr(C)]
35 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
36 pub struct CookData_Difficulty {
37 pub value: i32,
38 }
39 impl ::unity::ClassIdentity for CookData_Difficulty {
40 const NAME: &'static str = "CookData.Difficulty";
41 const NAMESPACE: &'static str = "App";
42
43 fn class() -> ::unity::Class {
44 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
45 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
46 }
47 }
48 impl ::unity::IlType for CookData_Difficulty {
49 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
50 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
51 }
52 }
53 impl CookData_Difficulty {
54 pub fn very_good() -> Self {
55 Self { value: 0 }
56 }
57
58 pub fn good() -> Self {
59 Self { value: 1 }
60 }
61
62 pub fn have_cooked() -> Self {
63 Self { value: 2 }
64 }
65
66 pub fn challenging() -> Self {
67 Self { value: 3 }
68 }
69
70 pub fn normal() -> Self {
71 Self { value: 4 }
72 }
73
74 pub fn num() -> Self {
75 Self { value: 5 }
76 }
77 }
78}
79
80#[cfg(feature = "app-cookdata-types")]
81pub use __types::*;
82
83#[cfg(feature = "app-cookdata")]
84impl CookData {
85 #[doc = "`Load()` overload"]
86 pub fn load() -> () {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x2543ca0usize)as*mut u8,();
89 )
90 }
91 }
92
93 #[doc = "`GetDifficultyName(crate::app::cookdata::CookData_Difficulty)` overload"]
94 pub fn get_difficulty_name(difficulty: impl ::core::convert::Into<crate::app::cookdata::CookData_Difficulty>) -> ::unity::Il2CppString {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x2544060usize)as*mut u8, ::unity::Il2CppString;
97(crate::app::cookdata::CookData_Difficulty)::core::convert::Into::into(difficulty))
98 }
99 }
100}
101
102#[cfg(feature = "app-cookdata")]
103pub trait ICookDataMethods: ICookData {
104 #[doc = "`get_Pid()` overload"]
105 fn get_pid(self) -> ::unity::Il2CppString {
106 unsafe {
107 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2543d50usize)as*mut u8, ::unity::Il2CppString;
109(CookData)__receiver)
110 }
111 }
112 #[doc = "`set_Pid(::unity::Il2CppString)` overload"]
113 fn set_pid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
114 unsafe {
115 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2543d60usize)as*mut u8,();
117(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
118 }
119 }
120 #[doc = "`get_Taste1()` overload"]
121 fn get_taste1(self) -> ::unity::Il2CppString {
122 unsafe {
123 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x2543d70usize)as*mut u8, ::unity::Il2CppString;
125(CookData)__receiver)
126 }
127 }
128 #[doc = "`set_Taste1(::unity::Il2CppString)` overload"]
129 fn set_taste1(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
130 unsafe {
131 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2543d80usize)as*mut u8,();
133(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
134 }
135 }
136 #[doc = "`get_Taste2()` overload"]
137 fn get_taste2(self) -> ::unity::Il2CppString {
138 unsafe {
139 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x2543d90usize)as*mut u8, ::unity::Il2CppString;
141(CookData)__receiver)
142 }
143 }
144 #[doc = "`set_Taste2(::unity::Il2CppString)` overload"]
145 fn set_taste2(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
146 unsafe {
147 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x2543da0usize)as*mut u8,();
149(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
150 }
151 }
152 #[doc = "`get_Taste3()` overload"]
153 fn get_taste3(self) -> ::unity::Il2CppString {
154 unsafe {
155 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x2543db0usize)as*mut u8, ::unity::Il2CppString;
157(CookData)__receiver)
158 }
159 }
160 #[doc = "`set_Taste3(::unity::Il2CppString)` overload"]
161 fn set_taste3(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
162 unsafe {
163 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x2543dc0usize)as*mut u8,();
165(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
166 }
167 }
168 #[doc = "`get_VeryGoodFood()` overload"]
169 fn get_very_good_food(self) -> ::unity::Array<::unity::Il2CppString> {
170 unsafe {
171 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x2543dd0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
173(CookData)__receiver)
174 }
175 }
176 #[doc = "`set_VeryGoodFood(::unity::Array<::unity::Il2CppString>)` overload"]
177 fn set_very_good_food(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
178 unsafe {
179 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x2543de0usize)as*mut u8,();
181(CookData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
182 }
183 }
184 #[doc = "`get_GoodFood()` overload"]
185 fn get_good_food(self) -> ::unity::Array<::unity::Il2CppString> {
186 unsafe {
187 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x2543df0usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
189(CookData)__receiver)
190 }
191 }
192 #[doc = "`set_GoodFood(::unity::Array<::unity::Il2CppString>)` overload"]
193 fn set_good_food(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
194 unsafe {
195 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x2543e00usize)as*mut u8,();
197(CookData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
198 }
199 }
200 #[doc = "`get_HaveCookedFood()` overload"]
201 fn get_have_cooked_food(self) -> ::unity::Array<::unity::Il2CppString> {
202 unsafe {
203 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x2543e10usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
205(CookData)__receiver)
206 }
207 }
208 #[doc = "`set_HaveCookedFood(::unity::Array<::unity::Il2CppString>)` overload"]
209 fn set_have_cooked_food(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
210 unsafe {
211 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x2543e20usize)as*mut u8,();
213(CookData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
214 }
215 }
216 #[doc = "`get_ChallengingFood()` overload"]
217 fn get_challenging_food(self) -> ::unity::Array<::unity::Il2CppString> {
218 unsafe {
219 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 ::unity::il2cpp_call!((::unity::module_base()+0x2543e30usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
221(CookData)__receiver)
222 }
223 }
224 #[doc = "`set_ChallengingFood(::unity::Array<::unity::Il2CppString>)` overload"]
225 fn set_challenging_food(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
226 unsafe {
227 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x2543e40usize)as*mut u8,();
229(CookData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
230 }
231 }
232 #[doc = "`get_LikeFood()` overload"]
233 fn get_like_food(self) -> ::unity::Array<::unity::Il2CppString> {
234 unsafe {
235 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 ::unity::il2cpp_call!((::unity::module_base()+0x2543e50usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
237(CookData)__receiver)
238 }
239 }
240 #[doc = "`set_LikeFood(::unity::Array<::unity::Il2CppString>)` overload"]
241 fn set_like_food(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
242 unsafe {
243 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 ::unity::il2cpp_call!((::unity::module_base()+0x2543e60usize)as*mut u8,();
245(CookData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
246 }
247 }
248 #[doc = "`get_DislikeFood()` overload"]
249 fn get_dislike_food(self) -> ::unity::Array<::unity::Il2CppString> {
250 unsafe {
251 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x2543e70usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
253(CookData)__receiver)
254 }
255 }
256 #[doc = "`set_DislikeFood(::unity::Array<::unity::Il2CppString>)` overload"]
257 fn set_dislike_food(self, value: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> () {
258 unsafe {
259 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x2543e80usize)as*mut u8,();
261(CookData)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(value))
262 }
263 }
264 #[doc = "`get_BentoIid()` overload"]
265 fn get_bento_iid(self) -> ::unity::Il2CppString {
266 unsafe {
267 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x2543e90usize)as*mut u8, ::unity::Il2CppString;
269(CookData)__receiver)
270 }
271 }
272 #[doc = "`set_BentoIid(::unity::Il2CppString)` overload"]
273 fn set_bento_iid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
274 unsafe {
275 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x2543ea0usize)as*mut u8,();
277(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
278 }
279 }
280 #[doc = "`get_MaskColor100R()` overload"]
281 fn get_mask_color100_r(self) -> u8 {
282 unsafe {
283 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x2543eb0usize)as*mut u8,u8;
285(CookData)__receiver)
286 }
287 }
288 #[doc = "`set_MaskColor100R(u8)` overload"]
289 fn set_mask_color100_r(self, value: impl ::core::convert::Into<u8>) -> () {
290 unsafe {
291 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292 ::unity::il2cpp_call!((::unity::module_base()+0x2543ec0usize)as*mut u8,();
293(CookData)__receiver,(u8)::core::convert::Into::into(value))
294 }
295 }
296 #[doc = "`get_MaskColor100G()` overload"]
297 fn get_mask_color100_g(self) -> u8 {
298 unsafe {
299 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x2543ed0usize)as*mut u8,u8;
301(CookData)__receiver)
302 }
303 }
304 #[doc = "`set_MaskColor100G(u8)` overload"]
305 fn set_mask_color100_g(self, value: impl ::core::convert::Into<u8>) -> () {
306 unsafe {
307 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x2543ee0usize)as*mut u8,();
309(CookData)__receiver,(u8)::core::convert::Into::into(value))
310 }
311 }
312 #[doc = "`get_MaskColor100B()` overload"]
313 fn get_mask_color100_b(self) -> u8 {
314 unsafe {
315 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x2543ef0usize)as*mut u8,u8;
317(CookData)__receiver)
318 }
319 }
320 #[doc = "`set_MaskColor100B(u8)` overload"]
321 fn set_mask_color100_b(self, value: impl ::core::convert::Into<u8>) -> () {
322 unsafe {
323 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x2543f00usize)as*mut u8,();
325(CookData)__receiver,(u8)::core::convert::Into::into(value))
326 }
327 }
328 #[doc = "`get_MaskColor075R()` overload"]
329 fn get_mask_color075_r(self) -> u8 {
330 unsafe {
331 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 ::unity::il2cpp_call!((::unity::module_base()+0x2543f10usize)as*mut u8,u8;
333(CookData)__receiver)
334 }
335 }
336 #[doc = "`set_MaskColor075R(u8)` overload"]
337 fn set_mask_color075_r(self, value: impl ::core::convert::Into<u8>) -> () {
338 unsafe {
339 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340 ::unity::il2cpp_call!((::unity::module_base()+0x2543f20usize)as*mut u8,();
341(CookData)__receiver,(u8)::core::convert::Into::into(value))
342 }
343 }
344 #[doc = "`get_MaskColor075G()` overload"]
345 fn get_mask_color075_g(self) -> u8 {
346 unsafe {
347 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348 ::unity::il2cpp_call!((::unity::module_base()+0x2543f30usize)as*mut u8,u8;
349(CookData)__receiver)
350 }
351 }
352 #[doc = "`set_MaskColor075G(u8)` overload"]
353 fn set_mask_color075_g(self, value: impl ::core::convert::Into<u8>) -> () {
354 unsafe {
355 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356 ::unity::il2cpp_call!((::unity::module_base()+0x2543f40usize)as*mut u8,();
357(CookData)__receiver,(u8)::core::convert::Into::into(value))
358 }
359 }
360 #[doc = "`get_MaskColor075B()` overload"]
361 fn get_mask_color075_b(self) -> u8 {
362 unsafe {
363 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364 ::unity::il2cpp_call!((::unity::module_base()+0x2543f50usize)as*mut u8,u8;
365(CookData)__receiver)
366 }
367 }
368 #[doc = "`set_MaskColor075B(u8)` overload"]
369 fn set_mask_color075_b(self, value: impl ::core::convert::Into<u8>) -> () {
370 unsafe {
371 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372 ::unity::il2cpp_call!((::unity::module_base()+0x2543f60usize)as*mut u8,();
373(CookData)__receiver,(u8)::core::convert::Into::into(value))
374 }
375 }
376 #[doc = "`get_SeEvent()` overload"]
377 fn get_se_event(self) -> ::unity::Il2CppString {
378 unsafe {
379 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380 ::unity::il2cpp_call!((::unity::module_base()+0x2543f70usize)as*mut u8, ::unity::Il2CppString;
381(CookData)__receiver)
382 }
383 }
384 #[doc = "`set_SeEvent(::unity::Il2CppString)` overload"]
385 fn set_se_event(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
386 unsafe {
387 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388 ::unity::il2cpp_call!((::unity::module_base()+0x2543f80usize)as*mut u8,();
389(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
390 }
391 }
392 #[doc = "`OnBuild()` overload"]
393 fn on_build(self) -> () {
394 unsafe {
395 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396 {
397 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
398 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
399 panic!(
400 "unity: virtual slot {}
401 out of range (vtable len {}
402) on the runtime class behind {}
403 (method `{}
404`)",
405 4usize,
406 __vt.len(),
407 <CookData as ::unity::ClassIdentity>::NAME,
408 "OnBuild",
409 )
410 });
411 let __inner: extern "C" fn(CookData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
412 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
413 __inner(__receiver, __mi)
414 }
415 }
416 }
417 #[doc = "`GetDebugName()` overload"]
418 fn get_debug_name(self) -> ::unity::Il2CppString {
419 unsafe {
420 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
421 {
422 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
423 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
424 panic!(
425 "unity: virtual slot {}
426 out of range (vtable len {}
427) on the runtime class behind {}
428 (method `{}
429`)",
430 8usize,
431 __vt.len(),
432 <CookData as ::unity::ClassIdentity>::NAME,
433 "GetDebugName",
434 )
435 });
436 let __inner: extern "C" fn(CookData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
437 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
438 __inner(__receiver, __mi)
439 }
440 }
441 }
442 #[doc = "`GetDifficulty(::unity::Il2CppString)` overload"]
443 fn get_difficulty(self, fid: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::app::cookdata::CookData_Difficulty {
444 unsafe {
445 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
446 ::unity::il2cpp_call!((::unity::module_base()+0x2544200usize)as*mut u8,crate::app::cookdata::CookData_Difficulty;
447(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(fid))
448 }
449 }
450 #[doc = "`IsLike(crate::app::fooddata::FoodData)` overload"]
451 fn is_like(self, food: impl ::core::convert::Into<crate::app::fooddata::FoodData>) -> bool {
452 unsafe {
453 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
454 ::unity::il2cpp_call!((::unity::module_base()+0x25442f0usize)as*mut u8,bool;
455(CookData)__receiver,(crate::app::fooddata::FoodData)::core::convert::Into::into(food))
456 }
457 }
458 #[doc = "`IsLike(::unity::Il2CppString)` overload"]
459 fn is_like_2(self, fid: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
460 unsafe {
461 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
462 ::unity::il2cpp_call!((::unity::module_base()+0x2544370usize)as*mut u8,bool;
463(CookData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(fid))
464 }
465 }
466 #[doc = "`IsDislike(crate::app::fooddata::FoodData)` overload"]
467 fn is_dislike(self, food: impl ::core::convert::Into<crate::app::fooddata::FoodData>) -> bool {
468 unsafe {
469 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
470 ::unity::il2cpp_call!((::unity::module_base()+0x25443f0usize)as*mut u8,bool;
471(CookData)__receiver,(crate::app::fooddata::FoodData)::core::convert::Into::into(food))
472 }
473 }
474 #[doc = "`GetLike(crate::app::fooddata::FoodData)` overload"]
475 fn get_like(self, food: impl ::core::convert::Into<crate::app::fooddata::FoodData>) -> i32 {
476 unsafe {
477 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
478 ::unity::il2cpp_call!((::unity::module_base()+0x2544470usize)as*mut u8,i32;
479(CookData)__receiver,(crate::app::fooddata::FoodData)::core::convert::Into::into(food))
480 }
481 }
482 #[doc = "`GetLikeString(crate::app::fooddata::FoodData)` overload"]
483 fn get_like_string(self, food: impl ::core::convert::Into<crate::app::fooddata::FoodData>) -> ::unity::Il2CppString {
484 unsafe {
485 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
486 ::unity::il2cpp_call!((::unity::module_base()+0x2544560usize)as*mut u8, ::unity::Il2CppString;
487(CookData)__receiver,(crate::app::fooddata::FoodData)::core::convert::Into::into(food))
488 }
489 }
490 #[doc = "`.ctor()` overload"]
491 fn ctor(self) -> () {
492 unsafe {
493 let __receiver = <CookData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
494 ::unity::il2cpp_call!((::unity::module_base()+0x2544730usize)as*mut u8,();
495(CookData)__receiver)
496 }
497 }
498}
499
500#[cfg(feature = "app-cookdata")]
501impl<__T: ICookData> ICookDataMethods for __T {}
502
503#[cfg(feature = "app-cookdata")]
504impl CookData {
505 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
506 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
507 }
508
509 pub fn get_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
510 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
511 }
512
513 pub fn set_pid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
514 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
515 }
516
517 pub fn get_taste1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
518 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
519 }
520
521 pub fn set_taste1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
522 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
523 }
524
525 pub fn get_taste2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
526 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
527 }
528
529 pub fn set_taste2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
530 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
531 }
532
533 pub fn get_taste3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
534 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
535 }
536
537 pub fn set_taste3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
538 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
539 }
540
541 pub fn get_very_good_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
542 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
543 }
544
545 pub fn set_very_good_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
546 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
547 }
548
549 pub fn get_good_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
550 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
551 }
552
553 pub fn set_good_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
554 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
555 }
556
557 pub fn get_have_cooked_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
558 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
559 }
560
561 pub fn set_have_cooked_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
562 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
563 }
564
565 pub fn get_challenging_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
566 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
567 }
568
569 pub fn set_challenging_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
570 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
571 }
572
573 pub fn get_like_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
574 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
575 }
576
577 pub fn set_like_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
578 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
579 }
580
581 pub fn get_dislike_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
582 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
583 }
584
585 pub fn set_dislike_food_method_info() -> &'static ::unity::il2cpp::MethodInfo {
586 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
587 }
588
589 pub fn get_bento_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
590 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
591 }
592
593 pub fn set_bento_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
594 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
595 }
596
597 pub fn get_mask_color100_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
599 }
600
601 pub fn set_mask_color100_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
603 }
604
605 pub fn get_mask_color100_g_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
607 }
608
609 pub fn set_mask_color100_g_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
611 }
612
613 pub fn get_mask_color100_b_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
615 }
616
617 pub fn set_mask_color100_b_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
619 }
620
621 pub fn get_mask_color075_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
623 }
624
625 pub fn set_mask_color075_r_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
627 }
628
629 pub fn get_mask_color075_g_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
631 }
632
633 pub fn set_mask_color075_g_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
635 }
636
637 pub fn get_mask_color075_b_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
639 }
640
641 pub fn set_mask_color075_b_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
643 }
644
645 pub fn get_se_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
647 }
648
649 pub fn set_se_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
651 }
652
653 pub fn on_build_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
655 }
656
657 pub fn get_difficulty_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
659 }
660
661 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
662 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
663 }
664
665 pub fn get_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
666 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
667 }
668
669 pub fn is_like_method_info() -> &'static ::unity::il2cpp::MethodInfo {
670 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
671 }
672
673 pub fn is_like_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
674 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
675 }
676
677 pub fn is_dislike_method_info() -> &'static ::unity::il2cpp::MethodInfo {
678 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
679 }
680
681 pub fn get_like_method_info() -> &'static ::unity::il2cpp::MethodInfo {
682 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
683 }
684
685 pub fn get_like_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
686 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
687 }
688
689 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
690 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
691 }
692}
693
694#[cfg(feature = "app-cookdata")]
695impl CookData {
696 #[doc = "Direct (non-virtual) call to `CookData`'s own `OnBuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
697 pub unsafe fn on_build(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
698 let __mi = Self::on_build_method_info();
699 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
700 __inner(this.into(), ::core::option::Option::None)
701 }
702
703 #[doc = "Direct (non-virtual) call to `CookData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
704 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
705 let __mi = Self::get_debug_name_method_info();
706 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
707 __inner(this.into(), ::core::option::Option::None)
708 }
709}
710
711#[cfg(feature = "app-cookdata")]
712impl CookData {
713 #[doc = "`.ctor()` — no args"]
714 pub fn new() -> Self {
715 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
716 panic!(
717 "{}
718::{}
719 failed to instantiate",
720 ::core::stringify!(CookData),
721 ::core::stringify!(new),
722 )
723 });
724 <Self as ICookDataMethods>::ctor(this);
725 this
726 }
727}
728
729#[cfg(feature = "app-cookdata")]
730#[doc(hidden)]
731pub mod prelude {
732 pub use super::{CookData, CookData_Difficulty, ICookData, ICookDataMethods};
733 #[cfg(feature = "app-structbase")]
734 pub use crate::app::structbase::IStructBaseMethods;
735 #[cfg(feature = "app-structdata_1")]
736 pub use crate::app::structdata_1::IStructData_1Methods;
737 #[cfg(feature = "app-structtemplate_1")]
738 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
739 #[cfg(feature = "system-object")]
740 pub use crate::system::object::IObjectMethods;
741 #[cfg(feature = "system-enum")]
742 pub use crate::system::r#enum::IEnumMethods;
743 #[cfg(feature = "system-valuetype")]
744 pub use crate::system::valuetype::IValueTypeMethods;
745 pub use crate::{
746 app::{structbase::IStructBase, structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1},
747 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
748 };
749}