93 lines
No EOL
2.5 KiB
C#
93 lines
No EOL
2.5 KiB
C#
namespace Packager.Parameters
|
|
{
|
|
/// <summary>
|
|
/// Enum values of the platforms are same as the platform values in the enum Platform of Teabox.
|
|
/// </summary>
|
|
public enum Platform
|
|
{
|
|
/// <summary>
|
|
/// Cafe, is the code name for Wiiu
|
|
/// </summary>
|
|
Wiiu,
|
|
|
|
/// <summary>
|
|
/// Orbis is the code name for Ps4
|
|
/// </summary>
|
|
Orbis,
|
|
|
|
Ps3,
|
|
|
|
/// <summary>
|
|
/// Durango is the code name for XOne
|
|
/// </summary>
|
|
Durango,
|
|
|
|
X360,
|
|
|
|
Wii,
|
|
|
|
/// <summary>
|
|
/// Pc and Win32 are considered as the same platforms by the game tool
|
|
/// </summary>
|
|
Pc,
|
|
|
|
/// <summary>
|
|
/// Nx is the codename for Switch
|
|
/// </summary>
|
|
Nx,
|
|
|
|
/// <summary>
|
|
/// GGP is the codename for Stadia
|
|
/// </summary>
|
|
GGP,
|
|
|
|
/// <summary>
|
|
/// Prospero is the codename for PS5
|
|
/// </summary>
|
|
Prospero,
|
|
|
|
/// <summary>
|
|
/// Scarlett is the codename for X1 series X
|
|
/// </summary>
|
|
Scarlett
|
|
|
|
}
|
|
|
|
public static class PlatformExtensions
|
|
{
|
|
public static bool IsOldGenPlatform(this Platform platform)
|
|
{
|
|
return platform == Platform.Ps3 || platform == Platform.X360 || platform == Platform.Wii;
|
|
}
|
|
|
|
public static bool IsNextGenPlatform(this Platform platform)
|
|
{
|
|
return platform == Platform.Orbis || platform == Platform.Durango || platform == Platform.Wiiu || platform == Platform.Nx;
|
|
}
|
|
|
|
public static bool IsX1OrPs4(this Platform platform)
|
|
{
|
|
return platform == Platform.Durango || platform == Platform.Orbis;
|
|
}
|
|
|
|
public static bool IsXSXOrPs5(this Platform platform)
|
|
{
|
|
return platform == Platform.Scarlett || platform == Platform.Prospero;
|
|
}
|
|
|
|
public static bool IsPs3WiiWin32WiiU(this Platform platform)
|
|
{
|
|
return platform == Platform.Ps3 || platform == Platform.Wii|| platform == Platform.Wiiu || platform == Platform.Pc;
|
|
}
|
|
|
|
public static bool IsX360Ps3WiiWin32(this Platform platform)
|
|
{
|
|
return platform == Platform.X360 || platform == Platform.Ps3 || platform == Platform.Wii || platform == Platform.Pc;
|
|
}
|
|
|
|
public static bool IsPs3X360Pc(this Platform platform)
|
|
{
|
|
return platform == Platform.Ps3 || platform == Platform.X360 || platform == Platform.Pc;
|
|
}
|
|
}
|
|
} |