engage/generated/unity_engine/
runtimeplatform.rs1#[cfg(feature = "unity_engine-runtimeplatform-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/unity_engine/runtimeplatform/RuntimePlatform.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct RuntimePlatform {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for RuntimePlatform {
21 const NAME: &'static str = "RuntimePlatform";
22 const NAMESPACE: &'static str = "UnityEngine";
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 RuntimePlatform {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl RuntimePlatform {
35 pub fn osx_editor() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn osx_player() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn windows_player() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn osx_web_player() -> Self {
48 Self { value: 3 }
49 }
50
51 pub fn osx_dashboard_player() -> Self {
52 Self { value: 4 }
53 }
54
55 pub fn windows_web_player() -> Self {
56 Self { value: 5 }
57 }
58
59 pub fn windows_editor() -> Self {
60 Self { value: 7 }
61 }
62
63 pub fn i_phone_player() -> Self {
64 Self { value: 8 }
65 }
66
67 pub fn xbox360() -> Self {
68 Self { value: 10 }
69 }
70
71 pub fn ps3() -> Self {
72 Self { value: 9 }
73 }
74
75 pub fn android() -> Self {
76 Self { value: 11 }
77 }
78
79 pub fn na_cl() -> Self {
80 Self { value: 12 }
81 }
82
83 pub fn flash_player() -> Self {
84 Self { value: 15 }
85 }
86
87 pub fn linux_player() -> Self {
88 Self { value: 13 }
89 }
90
91 pub fn linux_editor() -> Self {
92 Self { value: 16 }
93 }
94
95 pub fn web_gl_player() -> Self {
96 Self { value: 17 }
97 }
98
99 pub fn metro_player_x86() -> Self {
100 Self { value: 18 }
101 }
102
103 pub fn wsa_player_x86() -> Self {
104 Self { value: 18 }
105 }
106
107 pub fn metro_player_x64() -> Self {
108 Self { value: 19 }
109 }
110
111 pub fn wsa_player_x64() -> Self {
112 Self { value: 19 }
113 }
114
115 pub fn metro_player_arm() -> Self {
116 Self { value: 20 }
117 }
118
119 pub fn wsa_player_arm() -> Self {
120 Self { value: 20 }
121 }
122
123 pub fn wp8_player() -> Self {
124 Self { value: 21 }
125 }
126
127 pub fn black_berry_player() -> Self {
128 Self { value: 22 }
129 }
130
131 pub fn tizen_player() -> Self {
132 Self { value: 23 }
133 }
134
135 pub fn psp2() -> Self {
136 Self { value: 24 }
137 }
138
139 pub fn ps4() -> Self {
140 Self { value: 25 }
141 }
142
143 pub fn psm() -> Self {
144 Self { value: 26 }
145 }
146
147 pub fn xbox_one() -> Self {
148 Self { value: 27 }
149 }
150
151 pub fn samsung_tv_player() -> Self {
152 Self { value: 28 }
153 }
154
155 pub fn wii_u() -> Self {
156 Self { value: 30 }
157 }
158
159 pub fn tv_os() -> Self {
160 Self { value: 31 }
161 }
162
163 pub fn switch() -> Self {
164 Self { value: 32 }
165 }
166
167 pub fn lumin() -> Self {
168 Self { value: 33 }
169 }
170
171 pub fn stadia() -> Self {
172 Self { value: 34 }
173 }
174
175 pub fn cloud_rendering() -> Self {
176 Self { value: 35 }
177 }
178
179 pub fn game_core_scarlett() -> Self {
180 Self { value: 36 }
181 }
182
183 pub fn game_core_xbox_series() -> Self {
184 Self { value: 36 }
185 }
186
187 pub fn game_core_xbox_one() -> Self {
188 Self { value: 37 }
189 }
190
191 pub fn ps5() -> Self {
192 Self { value: 38 }
193 }
194 }
195}
196
197#[cfg(feature = "unity_engine-runtimeplatform-types")]
198pub use __types::*;
199
200#[cfg(feature = "unity_engine-runtimeplatform")]
201#[doc(hidden)]
202pub mod prelude {
203 pub use super::RuntimePlatform;
204 #[cfg(feature = "system-object")]
205 pub use crate::system::object::IObjectMethods;
206 #[cfg(feature = "system-enum")]
207 pub use crate::system::r#enum::IEnumMethods;
208 #[cfg(feature = "system-valuetype")]
209 pub use crate::system::valuetype::IValueTypeMethods;
210 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
211}