From d6c5f1bdd44fd4fa86b19036c866fcfbcabf3e9e Mon Sep 17 00:00:00 2001 From: AlexejheroYTB Date: Sun, 15 Nov 2020 02:09:58 +0200 Subject: [PATCH] Make MapId internal --- src/Impostor.Api/Innersloth/GameOptionsData.cs | 6 +++--- src/Impostor.Api/Innersloth/MapId.cs | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 src/Impostor.Api/Innersloth/MapId.cs diff --git a/src/Impostor.Api/Innersloth/GameOptionsData.cs b/src/Impostor.Api/Innersloth/GameOptionsData.cs index 95ef288..7be6735 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 711a886..0000000 --- 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 -- 2.39.5