|
1 | 1 | // @generated by il2cpp-bindgen — do not edit by hand. |
2 | 2 |
|
3 | | -use crate::app::structbase::IStructBase; |
4 | | -use crate::app::structbase::StructBase; |
5 | | -use crate::app::structdata_1::IStructData_1; |
6 | | -use crate::app::structdata_1::StructData_1; |
7 | | -use crate::app::structtemplate_1::IStructTemplate_1; |
8 | | -use crate::app::structtemplate_1::StructTemplate_1; |
9 | | -use crate::system::object::IObject; |
10 | | -use crate::system::object::Object; |
11 | | -use crate::system::r#enum::Enum; |
12 | | -use crate::system::r#enum::IEnum; |
13 | | -use crate::system::valuetype::IValueType; |
14 | | -use crate::system::valuetype::ValueType; |
15 | | -use ::unity2::prelude::*; |
16 | | - |
17 | | -#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Kinds.md"))] |
18 | | -#[repr(C)] |
19 | | -#[derive( |
20 | | - ::core::clone::Clone, |
21 | | - ::core::marker::Copy, |
22 | | - ::core::fmt::Debug, |
23 | | - ::core::cmp::PartialEq, |
24 | | - ::core::cmp::Eq, |
25 | | -)] |
26 | | -pub struct AccessoryData_Kinds { |
27 | | - pub value: i32, |
28 | | -} |
| 3 | +#[cfg(feature = "app-accessorydata-types")] |
| 4 | +mod __types { |
| 5 | + use super::*; |
| 6 | + |
| 7 | + use crate::app::structbase::{IStructBase, StructBase}; |
| 8 | + use crate::app::structdata_1::{IStructData_1, StructData_1}; |
| 9 | + use crate::app::structtemplate_1::{IStructTemplate_1, StructTemplate_1}; |
| 10 | + use crate::system::object::{IObject, Object}; |
| 11 | + use crate::system::r#enum::{Enum, IEnum}; |
| 12 | + use crate::system::valuetype::{IValueType, ValueType}; |
| 13 | + use ::unity2::prelude::*; |
| 14 | + |
| 15 | + #[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Kinds.md"))] |
| 16 | + #[repr(C)] |
| 17 | + #[derive( |
| 18 | + ::core::clone::Clone, |
| 19 | + ::core::marker::Copy, |
| 20 | + ::core::fmt::Debug, |
| 21 | + ::core::cmp::PartialEq, |
| 22 | + ::core::cmp::Eq, |
| 23 | + )] |
| 24 | + pub struct AccessoryData_Kinds { |
| 25 | + pub value: i32, |
| 26 | + } |
29 | 27 |
|
30 | | -impl ::unity2::ClassIdentity for AccessoryData_Kinds { |
31 | | - const NAMESPACE: &'static str = "App"; |
| 28 | + impl ::unity2::ClassIdentity for AccessoryData_Kinds { |
| 29 | + const NAMESPACE: &'static str = "App"; |
32 | 30 |
|
33 | | - const NAME: &'static str = "AccessoryData.Kinds"; |
| 31 | + const NAME: &'static str = "AccessoryData.Kinds"; |
34 | 32 |
|
35 | | - fn class() -> ::unity2::Class { |
36 | | - static CACHE: ::std::sync::OnceLock<::unity2::Class> = ::std::sync::OnceLock::new(); |
| 33 | + fn class() -> ::unity2::Class { |
| 34 | + static CACHE: ::std::sync::OnceLock<::unity2::Class> = ::std::sync::OnceLock::new(); |
37 | 35 |
|
38 | | - *CACHE.get_or_init(|| ::unity2::Class::lookup(Self::NAMESPACE, Self::NAME)) |
| 36 | + *CACHE.get_or_init(|| ::unity2::Class::lookup(Self::NAMESPACE, Self::NAME)) |
| 37 | + } |
39 | 38 | } |
40 | | -} |
41 | 39 |
|
42 | | -impl ::unity2::IlType for AccessoryData_Kinds { |
43 | | - fn il_type() -> &'static ::unity2::il2cpp::Il2CppType { |
44 | | - &<Self as ::unity2::ClassIdentity>::class() |
45 | | - .raw() |
46 | | - ._1 |
47 | | - .byval_arg |
| 40 | + impl ::unity2::IlType for AccessoryData_Kinds { |
| 41 | + fn il_type() -> &'static ::unity2::il2cpp::Il2CppType { |
| 42 | + &<Self as ::unity2::ClassIdentity>::class() |
| 43 | + .raw() |
| 44 | + ._1 |
| 45 | + .byval_arg |
| 46 | + } |
48 | 47 | } |
49 | | -} |
50 | 48 |
|
51 | | -impl AccessoryData_Kinds { |
52 | | - pub fn body() -> Self { |
53 | | - Self { value: 0 } |
| 49 | + impl AccessoryData_Kinds { |
| 50 | + pub fn body() -> Self { |
| 51 | + Self { value: 0 } |
| 52 | + } |
| 53 | + |
| 54 | + pub fn head() -> Self { |
| 55 | + Self { value: 1 } |
| 56 | + } |
| 57 | + |
| 58 | + pub fn face() -> Self { |
| 59 | + Self { value: 2 } |
| 60 | + } |
| 61 | + |
| 62 | + pub fn back() -> Self { |
| 63 | + Self { value: 3 } |
| 64 | + } |
| 65 | + |
| 66 | + pub fn num() -> Self { |
| 67 | + Self { value: 4 } |
| 68 | + } |
54 | 69 | } |
55 | 70 |
|
56 | | - pub fn head() -> Self { |
57 | | - Self { value: 1 } |
| 71 | + # [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydata/AccessoryData.md"))] |
| 72 | + #[::unity2::class(namespace = "App", name = "AccessoryData")] |
| 73 | + # [parent (crate :: app :: structdata_1 :: StructData_1 < crate :: app :: accessorydata :: AccessoryData >)] |
| 74 | + pub struct AccessoryData { |
| 75 | + #[rename(name = "FlagName")] |
| 76 | + pub flag_name: ::unity2::Il2CppString, |
58 | 77 | } |
59 | 78 |
|
60 | | - pub fn face() -> Self { |
61 | | - Self { value: 2 } |
| 79 | + #[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Masks.md"))] |
| 80 | + #[repr(C)] |
| 81 | + #[derive( |
| 82 | + ::core::clone::Clone, |
| 83 | + ::core::marker::Copy, |
| 84 | + ::core::fmt::Debug, |
| 85 | + ::core::cmp::PartialEq, |
| 86 | + ::core::cmp::Eq, |
| 87 | + )] |
| 88 | + pub struct AccessoryData_Masks { |
| 89 | + pub value: i32, |
62 | 90 | } |
63 | 91 |
|
64 | | - pub fn back() -> Self { |
65 | | - Self { value: 3 } |
| 92 | + impl ::unity2::ClassIdentity for AccessoryData_Masks { |
| 93 | + const NAMESPACE: &'static str = "App"; |
| 94 | + |
| 95 | + const NAME: &'static str = "AccessoryData.Masks"; |
| 96 | + |
| 97 | + fn class() -> ::unity2::Class { |
| 98 | + static CACHE: ::std::sync::OnceLock<::unity2::Class> = ::std::sync::OnceLock::new(); |
| 99 | + |
| 100 | + *CACHE.get_or_init(|| ::unity2::Class::lookup(Self::NAMESPACE, Self::NAME)) |
| 101 | + } |
66 | 102 | } |
67 | 103 |
|
68 | | - pub fn num() -> Self { |
69 | | - Self { value: 4 } |
| 104 | + impl ::unity2::IlType for AccessoryData_Masks { |
| 105 | + fn il_type() -> &'static ::unity2::il2cpp::Il2CppType { |
| 106 | + &<Self as ::unity2::ClassIdentity>::class() |
| 107 | + .raw() |
| 108 | + ._1 |
| 109 | + .byval_arg |
| 110 | + } |
70 | 111 | } |
71 | | -} |
72 | 112 |
|
73 | | -# [doc = include_str ! (concat ! (env ! ("CARGO_MANIFEST_DIR") , "/" , "docs/app/accessorydata/AccessoryData.md"))] |
74 | | -#[::unity2::class(namespace = "App", name = "AccessoryData")] |
75 | | -# [parent (crate :: app :: structdata_1 :: StructData_1 < crate :: app :: accessorydata :: AccessoryData >)] |
76 | | -pub struct AccessoryData { |
77 | | - #[rename(name = "FlagName")] |
78 | | - pub flag_name: ::unity2::Il2CppString, |
| 113 | + impl AccessoryData_Masks { |
| 114 | + pub fn body() -> Self { |
| 115 | + Self { value: 1 } |
| 116 | + } |
| 117 | + |
| 118 | + pub fn head() -> Self { |
| 119 | + Self { value: 2 } |
| 120 | + } |
| 121 | + |
| 122 | + pub fn face() -> Self { |
| 123 | + Self { value: 4 } |
| 124 | + } |
| 125 | + |
| 126 | + pub fn back() -> Self { |
| 127 | + Self { value: 8 } |
| 128 | + } |
| 129 | + } |
79 | 130 | } |
80 | 131 |
|
| 132 | +#[cfg(feature = "app-accessorydata-types")] |
| 133 | +pub use __types::*; |
| 134 | + |
81 | 135 | #[cfg(feature = "app-accessorydata")] |
82 | 136 | #[::unity2::methods] |
83 | 137 | impl AccessoryData { |
@@ -311,55 +365,3 @@ impl AccessoryData { |
311 | 365 | this |
312 | 366 | } |
313 | 367 | } |
314 | | - |
315 | | -#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/", "docs/app/accessorydata/AccessoryData_Masks.md"))] |
316 | | -#[repr(C)] |
317 | | -#[derive( |
318 | | - ::core::clone::Clone, |
319 | | - ::core::marker::Copy, |
320 | | - ::core::fmt::Debug, |
321 | | - ::core::cmp::PartialEq, |
322 | | - ::core::cmp::Eq, |
323 | | -)] |
324 | | -pub struct AccessoryData_Masks { |
325 | | - pub value: i32, |
326 | | -} |
327 | | - |
328 | | -impl ::unity2::ClassIdentity for AccessoryData_Masks { |
329 | | - const NAMESPACE: &'static str = "App"; |
330 | | - |
331 | | - const NAME: &'static str = "AccessoryData.Masks"; |
332 | | - |
333 | | - fn class() -> ::unity2::Class { |
334 | | - static CACHE: ::std::sync::OnceLock<::unity2::Class> = ::std::sync::OnceLock::new(); |
335 | | - |
336 | | - *CACHE.get_or_init(|| ::unity2::Class::lookup(Self::NAMESPACE, Self::NAME)) |
337 | | - } |
338 | | -} |
339 | | - |
340 | | -impl ::unity2::IlType for AccessoryData_Masks { |
341 | | - fn il_type() -> &'static ::unity2::il2cpp::Il2CppType { |
342 | | - &<Self as ::unity2::ClassIdentity>::class() |
343 | | - .raw() |
344 | | - ._1 |
345 | | - .byval_arg |
346 | | - } |
347 | | -} |
348 | | - |
349 | | -impl AccessoryData_Masks { |
350 | | - pub fn body() -> Self { |
351 | | - Self { value: 1 } |
352 | | - } |
353 | | - |
354 | | - pub fn head() -> Self { |
355 | | - Self { value: 2 } |
356 | | - } |
357 | | - |
358 | | - pub fn face() -> Self { |
359 | | - Self { value: 4 } |
360 | | - } |
361 | | - |
362 | | - pub fn back() -> Self { |
363 | | - Self { value: 8 } |
364 | | - } |
365 | | -} |
|
0 commit comments