Esempio n. 1
0
        private Player getPlayer(Packet packet, Connection connection)
        {
            Player player;

            if (!playersById.TryGetValue(packet.PlayerId, out player))
            {
                player = new Player(packet.PlayerId, connection);
                playersById.TryAdd(packet.PlayerId, player);
            }

            return(player);
        }