2012-08-14 07:42:00 +00:00
|
|
|
|
#region Using Statements
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
// This file is part of the ANX.Framework created by the
|
|
|
|
|
// "ANX.Framework developer group" and released under the Ms-PL license.
|
|
|
|
|
// For details see: http://anxframework.codeplex.com/license
|
|
|
|
|
|
|
|
|
|
namespace ANX.Framework.Content.Pipeline
|
|
|
|
|
{
|
2012-08-22 10:34:39 +00:00
|
|
|
|
public enum TargetPlatform : byte
|
2012-08-14 07:42:00 +00:00
|
|
|
|
{
|
2012-08-24 20:25:16 +00:00
|
|
|
|
Windows = (byte)'w',
|
|
|
|
|
WindowsPhone = (byte)'m',
|
|
|
|
|
XBox360 = (byte)'x',
|
|
|
|
|
|
|
|
|
|
// ANX-Extensions
|
|
|
|
|
Android = (byte)'a',
|
|
|
|
|
IOS = (byte)'i',
|
|
|
|
|
Linux = (byte)'l',
|
|
|
|
|
MacOs = (byte)'o',
|
|
|
|
|
PsVita = (byte)'p',
|
|
|
|
|
WindowsMetro = (byte)'8',
|
|
|
|
|
|
2012-08-14 07:42:00 +00:00
|
|
|
|
}
|
2015-04-26 19:47:26 +02:00
|
|
|
|
|
|
|
|
|
public static class TargetPlatformExtension
|
|
|
|
|
{
|
|
|
|
|
public static string ToDisplayName(this TargetPlatform targetPlatform)
|
|
|
|
|
{
|
|
|
|
|
switch (targetPlatform)
|
|
|
|
|
{
|
|
|
|
|
case TargetPlatform.IOS:
|
|
|
|
|
return "iOS";
|
|
|
|
|
case TargetPlatform.MacOs:
|
|
|
|
|
return "Mac OS";
|
|
|
|
|
case TargetPlatform.PsVita:
|
|
|
|
|
return "PS Vita";
|
|
|
|
|
case TargetPlatform.WindowsMetro:
|
|
|
|
|
return "Windows Metro";
|
|
|
|
|
case TargetPlatform.WindowsPhone:
|
|
|
|
|
return "Windows Phone";
|
|
|
|
|
case TargetPlatform.XBox360:
|
|
|
|
|
return "XBox 360";
|
|
|
|
|
default:
|
|
|
|
|
return targetPlatform.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-08-14 07:42:00 +00:00
|
|
|
|
}
|