Example #1
0
        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;
        }