Exemplo n.º 1
0
        public static void EditDeck(string oldName, string newName, Card heroCard)
        {
            Deck deckToEdit = CurrentDecks.First(x => x.Name == oldName);

            deckToEdit.Name      = newName;
            deckToEdit.HeroDbfId = heroCard.DbfId;
        }
Exemplo n.º 2
0
 public static void DeleteDeck(string deckName)
 {
     CurrentDecks.Remove(CurrentDecks.First(x => x.Name == deckName));
 }