Ejemplo n.º 1
0
        public void AddPlayer(Player player)
        {
            Player currentPlayer = playerStorage.GetPlayerByName(player.Name);

            if (currentPlayer != null)
            {
                throw new Exception("Такой игрок уже есть");
            }
            playerStorage.AddPlayer(player);
        }