示例#1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Coord.GetHashCode();
         hashCode = (hashCode * 397) ^ Radius;
         hashCode = (hashCode * 397) ^ Effect.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ Coord.GetHashCode();
         hashCode = (hashCode * 397) ^ Hp;
         hashCode = (hashCode * 397) ^ Ap;
         hashCode = (hashCode * 397) ^ Buff.GetHashCode();
         return(hashCode);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = OrigCoord.GetHashCode();
         hashCode = (hashCode * 397) ^ MaxHp;
         hashCode = (hashCode * 397) ^ MaxAp;
         hashCode = (hashCode * 397) ^ Iniciative;
         foreach (var ability in Abilities)
         {
             hashCode = (hashCode * 397) ^ ability.GetHashCode();
         }
         hashCode = (hashCode * 397) ^ (int)Team;
         return(hashCode);
     }
 }