From: AlexejheroYTB Date: Sun, 15 Nov 2020 00:09:58 +0000 (+0200) Subject: Make MapId internal X-Git-Tag: v1.2.2~19^2 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=d6c5f1bdd44fd4fa86b19036c866fcfbcabf3e9e;p=rhonda%2Fimpostor.git Make MapId internal --- 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