コード例 #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;
        }
コード例 #2
0
 public static void DeleteDeck(string deckName)
 {
     CurrentDecks.Remove(CurrentDecks.First(x => x.Name == deckName));
 }