Remove a jvydenism

This commit is contained in:
Jet the Hawk 2023-01-22 20:34:47 -05:00
commit 4f2bc83d4e

View file

@ -19,8 +19,10 @@ public class Room
this.roomId = value; this.roomId = value;
} }
} }
[RedisIdField] [RedisIdField]
public string RedisId { get; set; } public string RedisId { get; set; }
[Indexed] [Indexed]
@ -43,16 +45,14 @@ public class Room
public bool IsLookingForPlayers => this.State == RoomState.PlayingLevel || this.State == RoomState.DivingInWaiting; public bool IsLookingForPlayers => this.State == RoomState.PlayingLevel || this.State == RoomState.DivingInWaiting;
[JsonIgnore] [JsonIgnore]
public int HostId { public int HostId
get { {
try get
{ {
if (this.PlayerIds.Count > 0)
return this.PlayerIds[0]; return this.PlayerIds[0];
}
catch return -1;
{
return -1;
}
} }
} }