refactor and chat base
This commit is contained in:
@@ -11,7 +11,7 @@ public class GameState
|
||||
public GameState(Game game, string playerId)
|
||||
{
|
||||
var p = game.GetPlayer(playerId);
|
||||
PlayerName = p.Name;
|
||||
PlayerName = p.Connection.ConnectionId;
|
||||
foreach (var card in p.Hand)
|
||||
{
|
||||
Hand.Add(card.ToString());
|
||||
@@ -19,10 +19,10 @@ public class GameState
|
||||
|
||||
foreach (var player in game.Players)
|
||||
{
|
||||
Players.Add(player.Name);
|
||||
Players.Add(p.Connection.ConnectionId);
|
||||
}
|
||||
|
||||
CurrentCard = game.CurrentCard.ToString();
|
||||
CurrentPlayer = game.CurrentPlayer.Name;
|
||||
CurrentPlayer = game.CurrentPlayer.Connection.ConnectionId;;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user