1#[cfg(feature = "app-cooking-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking/Cooking_Quality.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct Cooking_Quality {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for Cooking_Quality {
21 const NAME: &'static str = "Cooking.Quality";
22 const NAMESPACE: &'static str = "App";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for Cooking_Quality {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl Cooking_Quality {
35 pub fn special1() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn special2() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn special3() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn common() -> Self {
48 Self { value: 3 }
49 }
50
51 pub fn bad() -> Self {
52 Self { value: 4 }
53 }
54
55 pub fn num() -> Self {
56 Self { value: 5 }
57 }
58
59 pub fn none() -> Self {
60 Self { value: 6 }
61 }
62 }
63
64 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking/Cooking_ConversationType.md"))]
65 #[repr(C)]
66 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
67 pub struct Cooking_ConversationType {
68 pub value: i32,
69 }
70 impl ::unity::ClassIdentity for Cooking_ConversationType {
71 const NAME: &'static str = "Cooking.ConversationType";
72 const NAMESPACE: &'static str = "App";
73
74 fn class() -> ::unity::Class {
75 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
76 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
77 }
78 }
79 impl ::unity::IlType for Cooking_ConversationType {
80 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
81 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
82 }
83 }
84 impl Cooking_ConversationType {
85 pub fn about_delicious() -> Self {
86 Self { value: 0 }
87 }
88
89 pub fn monologue() -> Self {
90 Self { value: 1 }
91 }
92
93 pub fn dialogue() -> Self {
94 Self { value: 2 }
95 }
96
97 pub fn num() -> Self {
98 Self { value: 3 }
99 }
100 }
101
102 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking/Cooking.md"))]
103 #[::unity::class(namespace = "App", name = "Cooking")]
104 #[parent(crate::system::object::Object)]
105 pub struct Cooking {}
106
107 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking/Cooking_Probability.md"))]
108 #[::unity::class(namespace = "App", name = "Cooking.Probability")]
109 #[parent(crate::system::object::Object)]
110 pub struct Cooking_Probability {
111 #[static_field]
112 #[rename(name = "BaseProbability")]
113 pub base_probability: ::unity::Array<f32>,
114 #[static_field]
115 #[rename(name = "ProbabilityCorrections")]
116 pub probability_corrections: ::unity::Array<::unity::Array<f32>>,
117 #[static_field]
118 #[rename(name = "ProbabilityFromFoodstuff")]
119 pub probability_from_foodstuff: ::unity::Array<::unity::Array<f32>>,
120 }
121
122 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/cooking/Cooking_Order.md"))]
123 #[repr(C)]
124 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
125 pub struct Cooking_Order {
126 pub value: i32,
127 }
128 impl ::unity::ClassIdentity for Cooking_Order {
129 const NAME: &'static str = "Cooking.Order";
130 const NAMESPACE: &'static str = "App";
131
132 fn class() -> ::unity::Class {
133 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
134 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
135 }
136 }
137 impl ::unity::IlType for Cooking_Order {
138 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
139 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
140 }
141 }
142 impl Cooking_Order {
143 pub fn before() -> Self {
144 Self { value: 0 }
145 }
146
147 pub fn after() -> Self {
148 Self { value: 1 }
149 }
150 }
151}
152
153#[cfg(feature = "app-cooking-types")]
154pub use __types::*;
155
156#[cfg(feature = "app-cooking")]
157impl Cooking {
158 #[doc = "`Cook(crate::app::unit::Unit, crate::app::fooddata::FoodData, ::unity::Array<crate::app::foodstuffdata::FoodstuffData>)` overload"]
159 pub fn cook(
160 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
161 food_data: impl ::core::convert::Into<crate::app::fooddata::FoodData>,
162 foodstuffs: impl ::core::convert::Into<::unity::Array<crate::app::foodstuffdata::FoodstuffData>>,
163 ) -> crate::app::dish::Dish {
164 unsafe {
165 ::unity::il2cpp_call!((::unity::module_base()+0x25447b0usize)as*mut u8,crate::app::dish::Dish;
166(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::fooddata::FoodData)::core::convert::Into::into(food_data),(::unity::Array<crate::app::foodstuffdata::FoodstuffData>)::core::convert::Into::into(foodstuffs))
167 }
168 }
169
170 #[doc = "`GetDifficulty(crate::app::unit::Unit, crate::app::fooddata::FoodData)` overload"]
171 pub fn get_difficulty(
172 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
173 food_data: impl ::core::convert::Into<crate::app::fooddata::FoodData>,
174 ) -> crate::app::cookdata::CookData_Difficulty {
175 unsafe {
176 ::unity::il2cpp_call!((::unity::module_base()+0x25448c0usize)as*mut u8,crate::app::cookdata::CookData_Difficulty;
177(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::fooddata::FoodData)::core::convert::Into::into(food_data))
178 }
179 }
180
181 #[doc = "`DetermineQuality(crate::app::cookdata::CookData_Difficulty, ::unity::Array<crate::app::foodstuffdata::FoodstuffData>)` overload"]
182 pub fn determine_quality(
183 difficulty: impl ::core::convert::Into<crate::app::cookdata::CookData_Difficulty>,
184 foodstuffs: impl ::core::convert::Into<::unity::Array<crate::app::foodstuffdata::FoodstuffData>>,
185 ) -> crate::app::cooking::Cooking_Quality {
186 unsafe {
187 ::unity::il2cpp_call!((::unity::module_base()+0x2544960usize)as*mut u8,crate::app::cooking::Cooking_Quality;
188(crate::app::cookdata::CookData_Difficulty)::core::convert::Into::into(difficulty),(::unity::Array<crate::app::foodstuffdata::FoodstuffData>)::core::convert::Into::into(foodstuffs))
189 }
190 }
191
192 #[doc = "`DetermineTaste(crate::app::unit::Unit, crate::app::cooking::Cooking_Quality)` overload"]
193 pub fn determine_taste(
194 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
195 quality: impl ::core::convert::Into<crate::app::cooking::Cooking_Quality>,
196 ) -> crate::app::tastedata::TasteData {
197 unsafe {
198 ::unity::il2cpp_call!((::unity::module_base()+0x2544b30usize)as*mut u8,crate::app::tastedata::TasteData;
199(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::cooking::Cooking_Quality)::core::convert::Into::into(quality))
200 }
201 }
202
203 #[doc = "`TryGetDialogueMid(crate::app::unit::Unit, crate::app::unit::Unit, crate::app::cooking::Cooking_Order)` overload"]
204 pub fn try_get_dialogue_mid(
205 unit: impl ::core::convert::Into<crate::app::unit::Unit>,
206 to_unit: impl ::core::convert::Into<crate::app::unit::Unit>,
207 order: impl ::core::convert::Into<crate::app::cooking::Cooking_Order>,
208 ) -> ::unity::Il2CppString {
209 unsafe {
210 ::unity::il2cpp_call!((::unity::module_base()+0x2544f50usize)as*mut u8, ::unity::Il2CppString;
211(crate::app::unit::Unit)::core::convert::Into::into(unit),(crate::app::unit::Unit)::core::convert::Into::into(to_unit),(crate::app::cooking::Cooking_Order)::core::convert::Into::into(order))
212 }
213 }
214
215 #[doc = "`TryGetNameType(crate::app::unit::Unit, crate::app::unit::Unit, *mutcrate::app::nametypedata::NameTypeData_Type, *mut::unity::Il2CppString)` overload"]
216 pub fn try_get_name_type(
217 from: impl ::core::convert::Into<crate::app::unit::Unit>,
218 to: impl ::core::convert::Into<crate::app::unit::Unit>,
219 ) -> (bool, crate::app::nametypedata::NameTypeData_Type, ::unity::Il2CppString) {
220 unsafe {
221 let mut __out_0 = ::core::mem::MaybeUninit::<crate::app::nametypedata::NameTypeData_Type>::uninit();
222 let mut __out_1 = ::core::mem::MaybeUninit::<::unity::Il2CppString>::uninit();
223 let __ret = {
224 ::unity::il2cpp_call!((::unity::module_base()+0x25451b0usize)as*mut u8,bool;
225(crate::app::unit::Unit)::core::convert::Into::into(from),(crate::app::unit::Unit)::core::convert::Into::into(to),(*mut crate::app::nametypedata::NameTypeData_Type)__out_0.as_mut_ptr(),(*mut::unity::Il2CppString)__out_1.as_mut_ptr())
226 };
227 (__ret, __out_0.assume_init(), __out_1.assume_init())
228 }
229 }
230
231 #[doc = "`ThrowAwayBento(crate::app::procinst::ProcInst)` overload"]
232 pub fn throw_away_bento(super_: impl ::core::convert::Into<crate::app::procinst::ProcInst>) -> () {
233 unsafe {
234 ::unity::il2cpp_call!((::unity::module_base()+0x25452f0usize)as*mut u8,();
235(crate::app::procinst::ProcInst)::core::convert::Into::into(super_))
236 }
237 }
238}
239
240#[cfg(feature = "app-cooking")]
241pub trait ICookingMethods: ICooking {
242 #[doc = "`.ctor()` overload"]
243 fn ctor(self) -> () {
244 unsafe {
245 let __receiver = <Cooking as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x2545810usize)as*mut u8,();
247(Cooking)__receiver)
248 }
249 }
250}
251
252#[cfg(feature = "app-cooking")]
253impl<__T: ICooking> ICookingMethods for __T {}
254
255#[cfg(feature = "app-cooking")]
256impl Cooking {
257 pub fn cook_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
259 }
260
261 pub fn get_difficulty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
263 }
264
265 pub fn determine_quality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
267 }
268
269 pub fn determine_taste_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
271 }
272
273 pub fn try_get_dialogue_mid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
275 }
276
277 pub fn try_get_name_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
279 }
280
281 pub fn throw_away_bento_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
283 }
284
285 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
287 }
288}
289
290#[cfg(feature = "app-cooking")]
291impl Cooking {
292 #[doc = "`.ctor()` — no args"]
293 pub fn new() -> Self {
294 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
295 panic!(
296 "{}
297::{}
298 failed to instantiate",
299 ::core::stringify!(Cooking),
300 ::core::stringify!(new),
301 )
302 });
303 <Self as ICookingMethods>::ctor(this);
304 this
305 }
306}
307
308#[cfg(feature = "app-cooking")]
309impl Cooking_Probability {
310 #[doc = "`GetProbabilities(crate::app::cookdata::CookData_Difficulty, ::unity::Array<crate::app::foodstuffdata::FoodstuffData>)` overload"]
311 pub fn get_probabilities(
312 difficulty: impl ::core::convert::Into<crate::app::cookdata::CookData_Difficulty>,
313 foodstuffs: impl ::core::convert::Into<::unity::Array<crate::app::foodstuffdata::FoodstuffData>>,
314 ) -> crate::system::collections::generic::list_1::List_1<f32> {
315 unsafe {
316 ::unity::il2cpp_call!((::unity::module_base()+0x19ccdd0usize)as*mut u8,crate::system::collections::generic::list_1::List_1<f32> ;
317(crate::app::cookdata::CookData_Difficulty)::core::convert::Into::into(difficulty),(::unity::Array<crate::app::foodstuffdata::FoodstuffData>)::core::convert::Into::into(foodstuffs))
318 }
319 }
320
321 #[doc = "`.cctor()` overload"]
322 pub fn cctor() -> () {
323 unsafe {
324 ::unity::il2cpp_call!((::unity::module_base()+0x19ccfc0usize)as*mut u8,();
325 )
326 }
327 }
328}
329
330#[cfg(feature = "app-cooking")]
331pub trait ICooking_ProbabilityMethods: ICooking_Probability {
332 #[doc = "`.ctor()` overload"]
333 fn ctor(self) -> () {
334 unsafe {
335 let __receiver = <Cooking_Probability as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 ::unity::il2cpp_call!((::unity::module_base()+0x19ccfb0usize)as*mut u8,();
337(Cooking_Probability)__receiver)
338 }
339 }
340}
341
342#[cfg(feature = "app-cooking")]
343impl<__T: ICooking_Probability> ICooking_ProbabilityMethods for __T {}
344
345#[cfg(feature = "app-cooking")]
346impl Cooking_Probability {
347 pub fn get_probabilities_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
349 }
350
351 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
353 }
354
355 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
357 }
358}
359
360#[cfg(feature = "app-cooking")]
361impl Cooking_Probability {
362 #[doc = "`.ctor()` — no args"]
363 pub fn new() -> Self {
364 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
365 panic!(
366 "{}
367::{}
368 failed to instantiate",
369 ::core::stringify!(Cooking_Probability),
370 ::core::stringify!(new),
371 )
372 });
373 <Self as ICooking_ProbabilityMethods>::ctor(this);
374 this
375 }
376}
377
378#[cfg(feature = "app-cooking")]
379#[doc(hidden)]
380pub mod prelude {
381 pub use super::{
382 Cooking, Cooking_ConversationType, Cooking_Order, Cooking_Probability, Cooking_Quality, ICooking, ICookingMethods, ICooking_Probability,
383 ICooking_ProbabilityMethods,
384 };
385 #[cfg(feature = "system-object")]
386 pub use crate::system::object::IObjectMethods;
387 #[cfg(feature = "system-enum")]
388 pub use crate::system::r#enum::IEnumMethods;
389 #[cfg(feature = "system-valuetype")]
390 pub use crate::system::valuetype::IValueTypeMethods;
391 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
392}