/
PlatformType.cs
71 lines (61 loc) · 2.09 KB
/
PlatformType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright (c) Stride contributors (https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
using System;
namespace Stride.Core
{
/// <summary>
/// Describes the platform operating system.
/// </summary>
#if STRIDE_ASSEMBLY_PROCESSOR
// To avoid a CS1503 error when compiling projects that are using both the AssemblyProcessor
// and Stride.Core.
internal enum PlatformType
#else
[DataContract("PlatformType")]
public enum PlatformType
#endif
{
// ***************************************************************
// NOTE: This file is shared with the AssemblyProcessor.
// If this file is modified, the AssemblyProcessor has to be
// recompiled separately. See build\Stride-AssemblyProcessor.sln
// ***************************************************************
/// <summary>
/// This is shared across platforms
/// </summary>
Shared,
/// <summary>
/// The windows desktop OS.
/// </summary>
Windows,
/// <summary>
/// The android OS.
/// </summary>
Android,
#pragma warning disable SA1300 // Element must begin with upper-case letter
/// <summary>
/// The iOS.
/// </summary>
iOS,
#pragma warning restore SA1300 // Element must begin with upper-case letter
/// <summary>
/// The Universal Windows Platform (UWP).
/// </summary>
UWP,
/// <summary>
/// The Linux OS.
/// </summary>
Linux,
#pragma warning disable SA1300 // Element must begin with upper-case letter
/// <summary>
/// macOS
/// </summary>
macOS,
#pragma warning restore SA1300 // Element must begin with upper-case letter
/// <summary>
/// The Universal Windows Platform (UWP). Please use <see cref="UWP"/> intead.
/// </summary>
[Obsolete("Please use UWP instead")]
Windows10 = UWP,
}
}