public PlayerGame(TcpClient client) { this.Client = client; State = new GameState(); Stream = client.GetStream(); var hello = (ClientHello)Network.ReceivePacket(Stream); IsRed = hello.ColorIsRed; Name = hello.PlayerName; StateInActUpdated = false; }
public PlayerGame(TcpClient client) { this.Client = client; State = new GameState(); Stream = client.GetStream(); var hello = (ClientHello)Network.ReceivePacket(Stream); IsRed = hello.ColorIsRed; Name = hello.PlayerName; StateInActUpdated = false; }