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

            if (MapAbilityGmtId.Length != 0)
            {
                hash ^= MapAbilityGmtId.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.PlayerNickname)
            {
                hash ^= PlayerNickname.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.MapCoordinate)
            {
                hash ^= MapCoordinate.GetHashCode();
            }
            if (targetCase_ == TargetOneofCase.MobId)
            {
                hash ^= MobId.GetHashCode();
            }
            hash ^= (int)targetCase_;
            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);
        }