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

            if (EncounterId.Length != 0)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (AttemptNumber != 0)
            {
                hash ^= AttemptNumber.GetHashCode();
            }
            if (PlayerLevel != 0)
            {
                hash ^= PlayerLevel.GetHashCode();
            }
            if (EncounterProtoId.Length != 0)
            {
                hash ^= EncounterProtoId.GetHashCode();
            }
            if (SpellPattern.Length != 0)
            {
                hash ^= SpellPattern.GetHashCode();
            }
            if (ArMode != 0)
            {
                hash ^= ArMode.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (EncounterId.Length != 0)
            {
                hash ^= EncounterId.GetHashCode();
            }
            if (AttemptNumber != 0)
            {
                hash ^= AttemptNumber.GetHashCode();
            }
            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (FailReason != 0)
            {
                hash ^= FailReason.GetHashCode();
            }
            if (CastTime != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CastTime);
            }
            if (FailedCheckpointNumber != 0)
            {
                hash ^= FailedCheckpointNumber.GetHashCode();
            }
            if (AverageDrawingError != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AverageDrawingError);
            }
            if (MedianDrawingError != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MedianDrawingError);
            }
            if (FinalSpellbarScore != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FinalSpellbarScore);
            }
            if (EncounterProtoId.Length != 0)
            {
                hash ^= EncounterProtoId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }