public EncounterDeck Copy() { EncounterDeck encounterDeck = new EncounterDeck() { ID = this.fID, Name = this.fName, Level = this.fLevel }; foreach (EncounterCard fCard in this.fCards) { encounterDeck.Cards.Add(fCard.Copy()); } return(encounterDeck); }
/// <summary> /// Creates a copy of the deck. /// </summary> /// <returns>Returns the copy.</returns> public EncounterDeck Copy() { EncounterDeck deck = new EncounterDeck(); deck.ID = fID; deck.Name = fName; deck.Level = fLevel; foreach (EncounterCard card in fCards) { deck.Cards.Add(card.Copy()); } return(deck); }