mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Make MapId internal
This commit is contained in:
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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user