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

            if (EncounterGmtId.Length != 0)
            {
                hash ^= EncounterGmtId.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (EncounterTicket.Length != 0)
            {
                hash ^= EncounterTicket.GetHashCode();
            }
            if (Source != 0)
            {
                hash ^= Source.GetHashCode();
            }
            if (ExpiryTimeMs != 0L)
            {
                hash ^= ExpiryTimeMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MobId.Length != 0)
            {
                hash ^= MobId.GetHashCode();
            }
            if (EncounterGmtId.Length != 0)
            {
                hash ^= EncounterGmtId.GetHashCode();
            }
            if (Hp != 0L)
            {
                hash ^= Hp.GetHashCode();
            }
            if (MaxHp != 0L)
            {
                hash ^= MaxHp.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (EncounterTicket.Length != 0)
            {
                hash ^= EncounterTicket.GetHashCode();
            }
            if (X != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X);
            }
            if (Y != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Y);
            }
            if (activeBuffList_ != null)
            {
                hash ^= ActiveBuffList.GetHashCode();
            }
            hash ^= rewards_.GetHashCode();
            if (TimeToSpawn != 0L)
            {
                hash ^= TimeToSpawn.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }