Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (MissPercent != 0D)
            {
                hash ^= MissPercent.GetHashCode();
            }
            if (CapturedPokemonId != 0UL)
            {
                hash ^= CapturedPokemonId.GetHashCode();
            }
            if (captureAward_ != null)
            {
                hash ^= CaptureAward.GetHashCode();
            }
            if (CaptureReason != 0)
            {
                hash ^= CaptureReason.GetHashCode();
            }
            if (DisplayPokedexId != 0)
            {
                hash ^= DisplayPokedexId.GetHashCode();
            }
            if (ThrowsRemaining != 0)
            {
                hash ^= ThrowsRemaining.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (MissPercent != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MissPercent);
            }
            if (CapturedPokemonId != 0UL)
            {
                hash ^= CapturedPokemonId.GetHashCode();
            }
            if (captureAward_ != null)
            {
                hash ^= CaptureAward.GetHashCode();
            }
            if (CaptureReason != 0)
            {
                hash ^= CaptureReason.GetHashCode();
            }
            if (DisplayPokedexId != 0)
            {
                hash ^= DisplayPokedexId.GetHashCode();
            }
            if (ThrowsRemaining != 0)
            {
                hash ^= ThrowsRemaining.GetHashCode();
            }
            if (pokemonDisplay_ != null)
            {
                hash ^= PokemonDisplay.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }