public SkillType[] GetChanges(PlayerSkill other) { if (other == default(PlayerSkill)) { return(new SkillType[0]); } var result = new List <SkillType>(); for (int i = 0; i < points.Length; ++i) { if (points[i] != other.points[i]) { result.Add((SkillType)i); } } return(result.ToArray()); }
public bool Equals(PlayerSkill other) { return(this == other); }