Esempio n. 1
0
        public EncounterTemplate Copy()
        {
            EncounterTemplate encounterTemplate = new EncounterTemplate()
            {
                Difficulty = this.fDifficulty
            };

            foreach (EncounterTemplateSlot fSlot in this.fSlots)
            {
                encounterTemplate.Slots.Add(fSlot.Copy());
            }
            return(encounterTemplate);
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a copy of the template.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public EncounterTemplate Copy()
        {
            EncounterTemplate et = new EncounterTemplate();

            et.Difficulty = fDifficulty;

            foreach (EncounterTemplateSlot slot in fSlots)
            {
                et.Slots.Add(slot.Copy());
            }

            return(et);
        }