Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public bool Equals(PlayerSkill other)
 {
     return(this == other);
 }