mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user