Exemple #1
0
        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);
        }
Exemple #2
0
        /// <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);
        }