Make MapId internal

This commit is contained in:
AlexejheroYTB committed 2020-11-15 02:09:58 +02:00
1 parent cef3605c56
commit d6c5f1bdd4
2 files changed
+3 -15

No files matched your search

@@ -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;
-12
View File
@@ -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;
}
}