public Attribute(StatsEnums.Attribute attribute, StatsEnums.AttrType type) { this.attribute = attribute; this.type = type; FillSkillList(); }
public List <Skill> GetByAttribute(StatsEnums.Attribute attribute) { List <Skill> list = new List <Skill> (); foreach (StatsEnums.Skill type in System.Enum.GetValues(typeof(StatsEnums.Skill))) { if (attribute == skills [type].Attribute) { list.Add(skills[type]); } } return(list); }
public Skill(int value, StatsEnums.Attribute attribute) { this.value = value; this.attribute = attribute; }