]> git.deb.at Git - rhonda/impostor.git/commitdiff
Make MapId internal
authorAlexejheroYTB <alexejhero@gmail.com>
Sun, 15 Nov 2020 00:09:58 +0000 (02:09 +0200)
committerAlexejheroYTB <alexejhero@gmail.com>
Sun, 15 Nov 2020 00:09:58 +0000 (02:09 +0200)
src/Impostor.Api/Innersloth/GameOptionsData.cs
src/Impostor.Api/Innersloth/MapId.cs [deleted file]

index 95ef288ebd26f34701b063639f1b28c8941721f7..7be6735efe68135da3597c364cccc0602e6e03a0 100644 (file)
@@ -27,17 +27,17 @@ namespace Impostor.Api.Innersloth
         public GameKeywords Keywords { get; set; }
 
         /// <summary>
-        /// Gets or sets the MapId selected for this lobby as per values in <see cref="Innersloth.MapId"/>.
+        /// Gets or sets the MapId selected for this lobby
         /// </summary>
         /// <remarks>
         /// Skeld = 0, MiraHQ = 1, Polus = 2.
         /// </remarks>
-        public byte MapId { get; set; }
+        internal byte MapId { get; set; }
         
         /// <summary>
         /// Gets or sets the map selected for this lobby
         /// </summary>
-        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 (file)
index 711a886..0000000
+++ /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