コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemEffect != 0)
            {
                hash ^= ItemEffect.GetHashCode();
            }
            if (CaptureMulti != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CaptureMulti);
            }
            if (CaptureMultiEffect != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CaptureMultiEffect);
            }
            if (ItemEffectMod != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ItemEffectMod);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ItemEffect != 0)
            {
                hash ^= ItemEffect.GetHashCode();
            }
            if (CaptureMulti != 0F)
            {
                hash ^= CaptureMulti.GetHashCode();
            }
            if (CaptureMultiEffect != 0F)
            {
                hash ^= CaptureMultiEffect.GetHashCode();
            }
            if (ItemEffectMod != 0F)
            {
                hash ^= ItemEffectMod.GetHashCode();
            }
            return(hash);
        }