1#[cfg(feature = "app-foodstuffdata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 app::{
10 bitfield32::{BitField32, IBitField32},
11 bitfieldcommon::{BitFieldCommon, IBitFieldCommon},
12 bitfieldtemplate32_1::{BitFieldTemplate32_1, IBitFieldTemplate32_1},
13 structbase::{IStructBase, StructBase},
14 structdata_1::{IStructData_1, StructData_1},
15 structtemplate_1::{IStructTemplate_1, StructTemplate_1},
16 },
17 system::{
18 object::{IObject, Object},
19 r#enum::{Enum, IEnum},
20 valuetype::{IValueType, ValueType},
21 },
22 };
23
24 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/foodstuffdata/FoodstuffData.md"))]
25 #[::unity::class(namespace = "App", name = "FoodstuffData")]
26 #[parent(crate::app::structdata_1::StructData_1<crate::app::foodstuffdata::FoodstuffData>)]
27 pub struct FoodstuffData {}
28
29 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/foodstuffdata/FoodstuffData_Flags.md"))]
30 #[repr(C)]
31 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
32 pub struct FoodstuffData_Flags {
33 pub value: i32,
34 }
35 impl ::unity::ClassIdentity for FoodstuffData_Flags {
36 const NAME: &'static str = "FoodstuffData.Flags";
37 const NAMESPACE: &'static str = "App";
38
39 fn class() -> ::unity::Class {
40 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
41 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
42 }
43 }
44 impl ::unity::IlType for FoodstuffData_Flags {
45 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
46 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
47 }
48 }
49 impl FoodstuffData_Flags {
50 pub fn is_category() -> Self {
51 Self { value: 1 }
52 }
53
54 pub fn add_to_anything() -> Self {
55 Self { value: 2 }
56 }
57
58 pub fn not_affect() -> Self {
59 Self { value: 4 }
60 }
61
62 pub fn raise_reliance() -> Self {
63 Self { value: 8 }
64 }
65 }
66
67 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/foodstuffdata/FoodstuffData_FlagField.md"))]
68 #[::unity::class(namespace = "App", name = "FoodstuffData.FlagField")]
69 #[parent(crate::app::bitfieldtemplate32_1::BitFieldTemplate32_1<crate::app::foodstuffdata::FoodstuffData_Flags>)]
70 pub struct FoodstuffData_FlagField {}
71}
72
73#[cfg(feature = "app-foodstuffdata-types")]
74pub use __types::*;
75
76#[cfg(feature = "app-foodstuffdata")]
77impl FoodstuffData {
78 #[doc = "`Load()` overload"]
79 pub fn load() -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x2610be0usize)as*mut u8,();
82 )
83 }
84 }
85
86 #[doc = "`GetCategoryFoodstuffs(::unity::Il2CppString)` overload"]
87 pub fn get_category_foodstuffs(
88 iid: impl ::core::convert::Into<::unity::Il2CppString>,
89 ) -> ::unity::Array<crate::app::foodstuffdata::FoodstuffData> {
90 unsafe {
91 ::unity::il2cpp_call!((::unity::module_base()+0x2611340usize)as*mut u8, ::unity::Array<crate::app::foodstuffdata::FoodstuffData> ;
92(::unity::Il2CppString)::core::convert::Into::into(iid))
93 }
94 }
95}
96
97#[cfg(feature = "app-foodstuffdata")]
98pub trait IFoodstuffDataMethods: IFoodstuffData {
99 #[doc = "`get_Iid()` overload"]
100 fn get_iid(self) -> ::unity::Il2CppString {
101 unsafe {
102 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x2610c90usize)as*mut u8, ::unity::Il2CppString;
104(FoodstuffData)__receiver)
105 }
106 }
107 #[doc = "`set_Iid(::unity::Il2CppString)` overload"]
108 fn set_iid(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
109 unsafe {
110 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x2610ca0usize)as*mut u8,();
112(FoodstuffData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
113 }
114 }
115 #[doc = "`get_Name()` overload"]
116 fn get_name(self) -> ::unity::Il2CppString {
117 unsafe {
118 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x2610cb0usize)as*mut u8, ::unity::Il2CppString;
120(FoodstuffData)__receiver)
121 }
122 }
123 #[doc = "`set_Name(::unity::Il2CppString)` overload"]
124 fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
125 unsafe {
126 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127 ::unity::il2cpp_call!((::unity::module_base()+0x2610cc0usize)as*mut u8,();
128(FoodstuffData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
129 }
130 }
131 #[doc = "`get_Flag()` overload"]
132 fn get_flag(self) -> crate::app::foodstuffdata::FoodstuffData_FlagField {
133 unsafe {
134 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135 ::unity::il2cpp_call!((::unity::module_base()+0x2610cd0usize)as*mut u8,crate::app::foodstuffdata::FoodstuffData_FlagField;
136(FoodstuffData)__receiver)
137 }
138 }
139 #[doc = "`set_Flag(crate::app::foodstuffdata::FoodstuffData_FlagField)` overload"]
140 fn set_flag(self, value: impl ::core::convert::Into<crate::app::foodstuffdata::FoodstuffData_FlagField>) -> () {
141 unsafe {
142 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143 ::unity::il2cpp_call!((::unity::module_base()+0x2610ce0usize)as*mut u8,();
144(FoodstuffData)__receiver,(crate::app::foodstuffdata::FoodstuffData_FlagField)::core::convert::Into::into(value))
145 }
146 }
147 #[doc = "`get_Category()` overload"]
148 fn get_category(self) -> ::unity::Il2CppString {
149 unsafe {
150 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
151 ::unity::il2cpp_call!((::unity::module_base()+0x2610cf0usize)as*mut u8, ::unity::Il2CppString;
152(FoodstuffData)__receiver)
153 }
154 }
155 #[doc = "`set_Category(::unity::Il2CppString)` overload"]
156 fn set_category(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
157 unsafe {
158 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 ::unity::il2cpp_call!((::unity::module_base()+0x2610d00usize)as*mut u8,();
160(FoodstuffData)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
161 }
162 }
163 #[doc = "`GetDebugName()` overload"]
164 fn get_debug_name(self) -> ::unity::Il2CppString {
165 unsafe {
166 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 {
168 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
169 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
170 panic!(
171 "unity: virtual slot {}
172 out of range (vtable len {}
173) on the runtime class behind {}
174 (method `{}
175`)",
176 8usize,
177 __vt.len(),
178 <FoodstuffData as ::unity::ClassIdentity>::NAME,
179 "GetDebugName",
180 )
181 });
182 let __inner: extern "C" fn(FoodstuffData, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
183 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
184 __inner(__receiver, __mi)
185 }
186 }
187 }
188 #[doc = "`IsCategory()` overload"]
189 fn is_category(self) -> bool {
190 unsafe {
191 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192 ::unity::il2cpp_call!((::unity::module_base()+0x2610d90usize)as*mut u8,bool;
193(FoodstuffData)__receiver)
194 }
195 }
196 #[doc = "`CanAddToAnything()` overload"]
197 fn can_add_to_anything(self) -> bool {
198 unsafe {
199 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 ::unity::il2cpp_call!((::unity::module_base()+0x2610df0usize)as*mut u8,bool;
201(FoodstuffData)__receiver)
202 }
203 }
204 #[doc = "`IsNotAffect()` overload"]
205 fn is_not_affect(self) -> bool {
206 unsafe {
207 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 ::unity::il2cpp_call!((::unity::module_base()+0x2610e50usize)as*mut u8,bool;
209(FoodstuffData)__receiver)
210 }
211 }
212 #[doc = "`IsRaiseReliance()` overload"]
213 fn is_raise_reliance(self) -> bool {
214 unsafe {
215 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x2610eb0usize)as*mut u8,bool;
217(FoodstuffData)__receiver)
218 }
219 }
220 #[doc = "`IsRare()` overload"]
221 fn is_rare(self) -> bool {
222 unsafe {
223 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x2610f10usize)as*mut u8,bool;
225(FoodstuffData)__receiver)
226 }
227 }
228 #[doc = "`GetIconName()` overload"]
229 fn get_icon_name(self) -> ::unity::Il2CppString {
230 unsafe {
231 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
232 ::unity::il2cpp_call!((::unity::module_base()+0x2610f80usize)as*mut u8, ::unity::Il2CppString;
233(FoodstuffData)__receiver)
234 }
235 }
236 #[doc = "`AddInventory()` overload"]
237 fn add_inventory(self) -> () {
238 unsafe {
239 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
240 ::unity::il2cpp_call!((::unity::module_base()+0x2611030usize)as*mut u8,();
241(FoodstuffData)__receiver)
242 }
243 }
244 #[doc = "`SubInventory()` overload"]
245 fn sub_inventory(self) -> () {
246 unsafe {
247 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 ::unity::il2cpp_call!((::unity::module_base()+0x26110c0usize)as*mut u8,();
249(FoodstuffData)__receiver)
250 }
251 }
252 #[doc = "`GetCountInventory()` overload"]
253 fn get_count_inventory(self) -> i32 {
254 unsafe {
255 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
256 ::unity::il2cpp_call!((::unity::module_base()+0x2611170usize)as*mut u8,i32;
257(FoodstuffData)__receiver)
258 }
259 }
260 #[doc = "`.ctor()` overload"]
261 fn ctor(self) -> () {
262 unsafe {
263 let __receiver = <FoodstuffData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264 ::unity::il2cpp_call!((::unity::module_base()+0x26115a0usize)as*mut u8,();
265(FoodstuffData)__receiver)
266 }
267 }
268}
269
270#[cfg(feature = "app-foodstuffdata")]
271impl<__T: IFoodstuffData> IFoodstuffDataMethods for __T {}
272
273#[cfg(feature = "app-foodstuffdata")]
274impl FoodstuffData {
275 pub fn load_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
277 }
278
279 pub fn get_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
281 }
282
283 pub fn set_iid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
285 }
286
287 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
289 }
290
291 pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
293 }
294
295 pub fn get_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
297 }
298
299 pub fn set_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
301 }
302
303 pub fn get_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
305 }
306
307 pub fn set_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
309 }
310
311 pub fn get_debug_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
313 }
314
315 pub fn is_category_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
317 }
318
319 pub fn can_add_to_anything_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
321 }
322
323 pub fn is_not_affect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
325 }
326
327 pub fn is_raise_reliance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
329 }
330
331 pub fn is_rare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
332 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
333 }
334
335 pub fn get_icon_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
336 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
337 }
338
339 pub fn add_inventory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
340 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
341 }
342
343 pub fn sub_inventory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
344 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
345 }
346
347 pub fn get_count_inventory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
349 }
350
351 pub fn get_category_foodstuffs_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
353 }
354
355 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
357 }
358}
359
360#[cfg(feature = "app-foodstuffdata")]
361impl FoodstuffData {
362 #[doc = "Direct (non-virtual) call to `FoodstuffData`'s own `GetDebugName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363 pub unsafe fn get_debug_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
364 let __mi = Self::get_debug_name_method_info();
365 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
366 __inner(this.into(), ::core::option::Option::None)
367 }
368}
369
370#[cfg(feature = "app-foodstuffdata")]
371impl FoodstuffData {
372 #[doc = "`.ctor()` — no args"]
373 pub fn new() -> Self {
374 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
375 panic!(
376 "{}
377::{}
378 failed to instantiate",
379 ::core::stringify!(FoodstuffData),
380 ::core::stringify!(new),
381 )
382 });
383 <Self as IFoodstuffDataMethods>::ctor(this);
384 this
385 }
386}
387
388#[cfg(feature = "app-foodstuffdata")]
389pub trait IFoodstuffData_FlagFieldMethods: IFoodstuffData_FlagField {
390 #[doc = "`.ctor(i32)` overload"]
391 fn ctor(self, f: impl ::core::convert::Into<i32>) -> () {
392 unsafe {
393 let __receiver =
394 <FoodstuffData_FlagField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395 ::unity::il2cpp_call!((::unity::module_base()+0x1e62df0usize)as*mut u8,();
396(FoodstuffData_FlagField)__receiver,(i32)::core::convert::Into::into(f))
397 }
398 }
399 #[doc = "`.ctor(crate::app::foodstuffdata::FoodstuffData_Flags)` overload"]
400 fn ctor_2(self, f: impl ::core::convert::Into<crate::app::foodstuffdata::FoodstuffData_Flags>) -> () {
401 unsafe {
402 let __receiver =
403 <FoodstuffData_FlagField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404 ::unity::il2cpp_call!((::unity::module_base()+0x1e62e50usize)as*mut u8,();
405(FoodstuffData_FlagField)__receiver,(crate::app::foodstuffdata::FoodstuffData_Flags)::core::convert::Into::into(f))
406 }
407 }
408 #[doc = "`ToInt(crate::app::foodstuffdata::FoodstuffData_Flags)` overload"]
409 fn to_int(self, value: impl ::core::convert::Into<crate::app::foodstuffdata::FoodstuffData_Flags>) -> i32 {
410 unsafe {
411 let __receiver =
412 <FoodstuffData_FlagField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413 {
414 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
415 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
416 panic!(
417 "unity: virtual slot {}
418 out of range (vtable len {}
419) on the runtime class behind {}
420 (method `{}
421`)",
422 5usize,
423 __vt.len(),
424 <FoodstuffData_FlagField as ::unity::ClassIdentity>::NAME,
425 "ToInt",
426 )
427 });
428 let __inner: extern "C" fn(FoodstuffData_FlagField, crate::app::foodstuffdata::FoodstuffData_Flags, ::unity::OptionalMethod) -> i32 =
429 ::core::mem::transmute(__vi.method_ptr);
430 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
431 __inner(__receiver, ::core::convert::Into::into(value), __mi)
432 }
433 }
434 }
435}
436
437#[cfg(feature = "app-foodstuffdata")]
438impl<__T: IFoodstuffData_FlagField> IFoodstuffData_FlagFieldMethods for __T {}
439
440#[cfg(feature = "app-foodstuffdata")]
441impl FoodstuffData_FlagField {
442 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
444 }
445
446 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
448 }
449
450 pub fn to_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
452 }
453}
454
455#[cfg(feature = "app-foodstuffdata")]
456impl FoodstuffData_FlagField {
457 #[doc = "Direct (non-virtual) call to `FoodstuffData_FlagField`'s own `ToInt`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
458 pub unsafe fn to_int(this: impl ::core::convert::Into<::unity::IlInstance>, value: crate::app::foodstuffdata::FoodstuffData_Flags) -> i32 {
459 let __mi = Self::to_int_method_info();
460 let __inner: extern "C" fn(::unity::IlInstance, crate::app::foodstuffdata::FoodstuffData_Flags, ::unity::OptionalMethod) -> i32 =
461 ::core::mem::transmute(__mi.method_ptr);
462 __inner(this.into(), value, ::core::option::Option::None)
463 }
464}
465
466#[cfg(feature = "app-foodstuffdata")]
467impl FoodstuffData_FlagField {
468 #[doc = "`.ctor(i32)` — overload selector"]
469 pub fn new(f: i32) -> Self {
470 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
471 panic!(
472 "{}
473::{}
474 failed to instantiate",
475 ::core::stringify!(FoodstuffData_FlagField),
476 ::core::stringify!(new),
477 )
478 });
479 <Self as IFoodstuffData_FlagFieldMethods>::ctor(this, f);
480 this
481 }
482
483 #[doc = "`.ctor(crate::app::foodstuffdata::FoodstuffData_Flags)` — overload selector"]
484 pub fn new_2(f: crate::app::foodstuffdata::FoodstuffData_Flags) -> Self {
485 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
486 panic!(
487 "{}
488::{}
489 failed to instantiate",
490 ::core::stringify!(FoodstuffData_FlagField),
491 ::core::stringify!(new_2),
492 )
493 });
494 <Self as IFoodstuffData_FlagFieldMethods>::ctor_2(this, f);
495 this
496 }
497}
498
499#[cfg(feature = "app-foodstuffdata")]
500#[doc(hidden)]
501pub mod prelude {
502 pub use super::{
503 FoodstuffData, FoodstuffData_FlagField, FoodstuffData_Flags, IFoodstuffData, IFoodstuffDataMethods, IFoodstuffData_FlagField,
504 IFoodstuffData_FlagFieldMethods,
505 };
506 #[cfg(feature = "app-bitfield32")]
507 pub use crate::app::bitfield32::IBitField32Methods;
508 #[cfg(feature = "app-bitfieldcommon")]
509 pub use crate::app::bitfieldcommon::IBitFieldCommonMethods;
510 #[cfg(feature = "app-bitfieldtemplate32_1")]
511 pub use crate::app::bitfieldtemplate32_1::IBitFieldTemplate32_1Methods;
512 #[cfg(feature = "app-structbase")]
513 pub use crate::app::structbase::IStructBaseMethods;
514 #[cfg(feature = "app-structdata_1")]
515 pub use crate::app::structdata_1::IStructData_1Methods;
516 #[cfg(feature = "app-structtemplate_1")]
517 pub use crate::app::structtemplate_1::IStructTemplate_1Methods;
518 #[cfg(feature = "system-object")]
519 pub use crate::system::object::IObjectMethods;
520 #[cfg(feature = "system-enum")]
521 pub use crate::system::r#enum::IEnumMethods;
522 #[cfg(feature = "system-valuetype")]
523 pub use crate::system::valuetype::IValueTypeMethods;
524 pub use crate::{
525 app::{
526 bitfield32::IBitField32, bitfieldcommon::IBitFieldCommon, bitfieldtemplate32_1::IBitFieldTemplate32_1, structbase::IStructBase,
527 structdata_1::IStructData_1, structtemplate_1::IStructTemplate_1,
528 },
529 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
530 };
531}