engage/generated/system/reflection/
typeattributes.rs1#[cfg(feature = "system-reflection-typeattributes-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/system/reflection/typeattributes/TypeAttributes.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct TypeAttributes {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for TypeAttributes {
21 const NAME: &'static str = "TypeAttributes";
22 const NAMESPACE: &'static str = "System.Reflection";
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 TypeAttributes {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl TypeAttributes {
35 pub fn visibility_mask() -> Self {
36 Self { value: 7 }
37 }
38
39 pub fn not_public() -> Self {
40 Self { value: 0 }
41 }
42
43 pub fn public() -> Self {
44 Self { value: 1 }
45 }
46
47 pub fn nested_public() -> Self {
48 Self { value: 2 }
49 }
50
51 pub fn nested_private() -> Self {
52 Self { value: 3 }
53 }
54
55 pub fn nested_family() -> Self {
56 Self { value: 4 }
57 }
58
59 pub fn nested_assembly() -> Self {
60 Self { value: 5 }
61 }
62
63 pub fn nested_fam_and_assem() -> Self {
64 Self { value: 6 }
65 }
66
67 pub fn nested_fam_or_assem() -> Self {
68 Self { value: 7 }
69 }
70
71 pub fn layout_mask() -> Self {
72 Self { value: 24 }
73 }
74
75 pub fn auto_layout() -> Self {
76 Self { value: 0 }
77 }
78
79 pub fn sequential_layout() -> Self {
80 Self { value: 8 }
81 }
82
83 pub fn explicit_layout() -> Self {
84 Self { value: 16 }
85 }
86
87 pub fn class_semantics_mask() -> Self {
88 Self { value: 32 }
89 }
90
91 pub fn class() -> Self {
92 Self { value: 0 }
93 }
94
95 pub fn interface() -> Self {
96 Self { value: 32 }
97 }
98
99 pub fn r#abstract() -> Self {
100 Self { value: 128 }
101 }
102
103 pub fn sealed() -> Self {
104 Self { value: 256 }
105 }
106
107 pub fn special_name() -> Self {
108 Self { value: 1024 }
109 }
110
111 pub fn import() -> Self {
112 Self { value: 4096 }
113 }
114
115 pub fn serializable() -> Self {
116 Self { value: 8192 }
117 }
118
119 pub fn windows_runtime() -> Self {
120 Self { value: 16384 }
121 }
122
123 pub fn string_format_mask() -> Self {
124 Self { value: 196608 }
125 }
126
127 pub fn ansi_class() -> Self {
128 Self { value: 0 }
129 }
130
131 pub fn unicode_class() -> Self {
132 Self { value: 65536 }
133 }
134
135 pub fn auto_class() -> Self {
136 Self { value: 131072 }
137 }
138
139 pub fn custom_format_class() -> Self {
140 Self { value: 196608 }
141 }
142
143 pub fn custom_format_mask() -> Self {
144 Self { value: 12582912 }
145 }
146
147 pub fn before_field_init() -> Self {
148 Self { value: 1048576 }
149 }
150
151 pub fn reserved_mask() -> Self {
152 Self { value: 264192 }
153 }
154
155 pub fn rt_special_name() -> Self {
156 Self { value: 2048 }
157 }
158
159 pub fn has_security() -> Self {
160 Self { value: 262144 }
161 }
162 }
163}
164
165#[cfg(feature = "system-reflection-typeattributes-types")]
166pub use __types::*;
167
168#[cfg(feature = "system-reflection-typeattributes")]
169#[doc(hidden)]
170pub mod prelude {
171 pub use super::TypeAttributes;
172 #[cfg(feature = "system-object")]
173 pub use crate::system::object::IObjectMethods;
174 #[cfg(feature = "system-enum")]
175 pub use crate::system::r#enum::IEnumMethods;
176 #[cfg(feature = "system-valuetype")]
177 pub use crate::system::valuetype::IValueTypeMethods;
178 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
179}