using System.Collections.Generic; using UnityEngine; namespace Continentis.MainGame.Equipment { public class AttributeSubmodule : SubmoduleBase { public Dictionary numericChange; public Dictionary percentageChangeOfAccumulation; public Dictionary percentageChangeOfMultiplication; public AttributeSubmodule(EquipmentBase equipment, Dictionary numericChange, Dictionary percentageChangeOfAccumulation, Dictionary percentageChangeOfMultiplication) : base(equipment) { this.numericChange = numericChange ?? new Dictionary(); this.percentageChangeOfAccumulation = percentageChangeOfAccumulation ?? new Dictionary(); this.percentageChangeOfMultiplication = percentageChangeOfMultiplication ?? new Dictionary(); } public List GetModifiedAttributeNames() { HashSet attributeNames = new HashSet(); foreach (var key in numericChange.Keys) { attributeNames.Add(key); } foreach (var key in percentageChangeOfAccumulation.Keys) { attributeNames.Add(key); } foreach (var key in percentageChangeOfMultiplication.Keys) { attributeNames.Add(key); } return new List(attributeNames); } } }