diff --git a/src/Impostor.Api/Innersloth/GameOptionsData.cs b/src/Impostor.Api/Innersloth/GameOptionsData.cs index 95ef288e..7be6735e 100644 --- a/src/Impostor.Api/Innersloth/GameOptionsData.cs +++ b/src/Impostor.Api/Innersloth/GameOptionsData.cs @@ -27,17 +27,17 @@ namespace Impostor.Api.Innersloth public GameKeywords Keywords { get; set; } /// - /// Gets or sets the MapId selected for this lobby as per values in . + /// Gets or sets the MapId selected for this lobby /// /// /// Skeld = 0, MiraHQ = 1, Polus = 2. /// - public byte MapId { get; set; } + internal byte MapId { get; set; } /// /// Gets or sets the map selected for this lobby /// - public MapTypes Map + public MapTypes Map { get => (MapTypes)MapId; set => MapId = (byte)value; diff --git a/src/Impostor.Api/Innersloth/MapId.cs b/src/Impostor.Api/Innersloth/MapId.cs deleted file mode 100644 index 711a8862..00000000 --- a/src/Impostor.Api/Innersloth/MapId.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace Impostor.Api.Innersloth -{ - [Obsolete("Use Map property instead of MapId, and compare with MapTypes enum.")] - public static class MapId - { - public const int Skeld = 0; - public const int MiraHQ = 1; - public const int Polus = 2; - } -} \ No newline at end of file