public object Clone() { var criteria = new DropCriteria(); criteria.MinLevel = MinLevel; criteria.MaxLevel = MaxLevel; criteria.ProbabilityWeight = ProbabilityWeight; return(criteria); }
public HeroItem Clone() { HeroItem item = new HeroItem(); item.Name = Name; item.Title = (Description)Title.Clone(); item.Description = (Description)Description.Clone(); item.IconPath = IconPath; item.DropCriteria = (DropCriteria)DropCriteria?.Clone(); item.AttackType = AttackType; item.WeaponType = WeaponType; item.Category = Category; item.SkillIDs = SkillIDs?.Clone(); item.Descriptors = Descriptors?.Clone(); return(item); }