Example #1
0
        public override int GetHashCode()
        {
            if (IsEmpty)
            {
                return(0);
            }

            return(State.GetHashCode()
                   ^ PosX.GetHashCode() ^ PosY.GetHashCode()
                   ^ Width.GetHashCode() ^ Height.GetHashCode());
        }
Example #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (PosX != 0F)
        {
            hash ^= PosX.GetHashCode();
        }
        if (PosY != 0F)
        {
            hash ^= PosY.GetHashCode();
        }
        if (PosZ != 0F)
        {
            hash ^= PosZ.GetHashCode();
        }
        if (RotX != 0F)
        {
            hash ^= RotX.GetHashCode();
        }
        if (RotY != 0F)
        {
            hash ^= RotY.GetHashCode();
        }
        if (RotZ != 0F)
        {
            hash ^= RotZ.GetHashCode();
        }
        if (Hp != 0)
        {
            hash ^= Hp.GetHashCode();
        }
        if (BossHp != 0)
        {
            hash ^= BossHp.GetHashCode();
        }
        if (Target != 0)
        {
            hash ^= Target.GetHashCode();
        }
        return(hash);
    }
Example #3
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (PosX != 0F)
        {
            hash ^= PosX.GetHashCode();
        }
        if (PosY != 0F)
        {
            hash ^= PosY.GetHashCode();
        }
        if (PosZ != 0F)
        {
            hash ^= PosZ.GetHashCode();
        }
        if (RotX != 0F)
        {
            hash ^= RotX.GetHashCode();
        }
        if (RotY != 0F)
        {
            hash ^= RotY.GetHashCode();
        }
        if (RotZ != 0F)
        {
            hash ^= RotZ.GetHashCode();
        }
        if (Hp != 0)
        {
            hash ^= Hp.GetHashCode();
        }
        if (IsHit != false)
        {
            hash ^= IsHit.GetHashCode();
        }
        return(hash);
    }
Example #4
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (PosX != null)
         {
             hashCode = hashCode * 59 + PosX.GetHashCode();
         }
         if (PosY != null)
         {
             hashCode = hashCode * 59 + PosY.GetHashCode();
         }
         if (ItemId != null)
         {
             hashCode = hashCode * 59 + ItemId.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #5
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Proto != 0)
        {
            hash ^= Proto.GetHashCode();
        }
        if (PosX != 0)
        {
            hash ^= PosX.GetHashCode();
        }
        if (PosY != 0)
        {
            hash ^= PosY.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
        public override int GetHashCode()
        {
            int hash = 1;

            if (RoomPlaycountIndex != 0)
            {
                hash ^= RoomPlaycountIndex.GetHashCode();
            }
            if (PayMethodIndex != 0)
            {
                hash ^= PayMethodIndex.GetHashCode();
            }
            if (PosX != 0D)
            {
                hash ^= PosX.GetHashCode();
            }
            if (PosY != 0D)
            {
                hash ^= PosY.GetHashCode();
            }
            return(hash);
        }
Example #7
0
 public override int GetHashCode()
 {
     return(PosX.GetHashCode() ^ PosY.GetHashCode());
 }