public VoidStorageItem(ulong id, uint entry, ObjectGuid creator, uint randomBonusListId, uint fixedScalingLevel, uint artifactKnowledgeLevel, ItemContext context, List <uint> bonuses) { ItemId = id; ItemEntry = entry; CreatorGuid = creator; RandomBonusListId = randomBonusListId; FixedScalingLevel = fixedScalingLevel; ArtifactKnowledgeLevel = artifactKnowledgeLevel; Context = context; foreach (var value in bonuses) { BonusListIDs.Add(value); } }
public VoidStorageItem(ulong id, uint entry, ObjectGuid creator, ItemRandomEnchantmentId randomPropertyId, uint suffixFactor, uint upgradeId, uint fixedScalingLevel, uint artifactKnowledgeLevel, byte context, ICollection <uint> bonuses) { ItemId = id; ItemEntry = entry; CreatorGuid = creator; ItemRandomPropertyId = randomPropertyId; ItemSuffixFactor = suffixFactor; ItemUpgradeId = upgradeId; FixedScalingLevel = fixedScalingLevel; ArtifactKnowledgeLevel = artifactKnowledgeLevel; Context = context; foreach (var value in bonuses) { BonusListIDs.Add(value); } }
public override int GetHashCode() { return(Context.GetHashCode() ^ BonusListIDs.GetHashCode()); }