Descent.Model.Player.Figure.HeroStuff.Equipment.Clone C# (CSharp) Method

Clone() public method

Returns a clone of the equipment. The data, and the index will be the same, but the pointer to the object itself will be different
public Clone ( ) : Equipment
return Equipment
        public Equipment Clone()
        {
            return new Equipment(
                id,
                name,
                type,
                attackType,
                rarity,
                buyPrice,
                surgeAbilities.Select(e => e).ToList(),
                hands,
                abilities.Select(e => e).ToList(),
                dice.Select(d => d).ToList());
        }