Radicade Public Code

This commit is contained in:
JogmansonReal
2026-10-16 23:33:13 -07:00
commit 55175acdf6
832 changed files with 363261 additions and 0 deletions
+31
View File
@@ -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;
}
}
}