Added:
- Chat message cleaning to prevent HTML injection - Player hand size to game state - Deck automatically creates sets when it doesnt have any cards left
This commit is contained in:
@@ -33,10 +33,12 @@ public class PlayerDTO
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Id { get; set; }
|
||||
public int CardsLeft { get; set; }
|
||||
|
||||
public PlayerDTO(Player player)
|
||||
{
|
||||
Name = player.Connection.Name;
|
||||
Id = player.Connection.ConnectionId;
|
||||
CardsLeft = player.Hand.Count;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user