Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (ItemCaptureMult != 0D)
            {
                hash ^= ItemCaptureMult.GetHashCode();
            }
            if (ItemFleeMult != 0D)
            {
                hash ^= ItemFleeMult.GetHashCode();
            }
            if (StopMovement != false)
            {
                hash ^= StopMovement.GetHashCode();
            }
            if (StopAttack != false)
            {
                hash ^= StopAttack.GetHashCode();
            }
            if (TargetMax != false)
            {
                hash ^= TargetMax.GetHashCode();
            }
            if (TargetSlow != false)
            {
                hash ^= TargetSlow.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (ItemCaptureMult != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ItemCaptureMult);
            }
            if (ItemFleeMult != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ItemFleeMult);
            }
            if (StopMovement != false)
            {
                hash ^= StopMovement.GetHashCode();
            }
            if (StopAttack != false)
            {
                hash ^= StopAttack.GetHashCode();
            }
            if (TargetMax != false)
            {
                hash ^= TargetMax.GetHashCode();
            }
            if (TargetSlow != false)
            {
                hash ^= TargetSlow.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }