mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 15:09:26 -07:00
32 lines
752 B
C#
32 lines
752 B
C#
using RadicadeServer.RecNet.Enums.Players;
|
|
|
|
namespace RadicadeServer.Extensions
|
|
{
|
|
public static class EnumExtension
|
|
{
|
|
public static DeviceClass GetDeviceClass(this Platforms platform)
|
|
{
|
|
switch (platform)
|
|
{
|
|
case Platforms.All:
|
|
return DeviceClass.Unknown;
|
|
case Platforms.Steam:
|
|
return DeviceClass.Screen;
|
|
case Platforms.PlayStation:
|
|
return DeviceClass.Screen;
|
|
case Platforms.HeadlessBot:
|
|
return DeviceClass.Unknown;
|
|
case Platforms.GooglePlay:
|
|
return DeviceClass.Screen;
|
|
case Platforms.IOS:
|
|
return DeviceClass.Screen;
|
|
case Platforms.Xbox:
|
|
return DeviceClass.Screen;
|
|
case Platforms.Oculus:
|
|
return DeviceClass.VRLow;
|
|
}
|
|
return DeviceClass.Unknown;
|
|
}
|
|
}
|
|
}
|