コード例 #1
0
        public object Clone()
        {
            var criteria = new DropCriteria();

            criteria.MinLevel          = MinLevel;
            criteria.MaxLevel          = MaxLevel;
            criteria.ProbabilityWeight = ProbabilityWeight;
            return(criteria);
        }
コード例 #2
0
        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);
        }