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

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (CombatPoints != 0)
            {
                hash ^= CombatPoints.GetHashCode();
            }
            if (PokemonDataId != 0UL)
            {
                hash ^= PokemonDataId.GetHashCode();
            }
            if (pokemonDisplay_ != null)
            {
                hash ^= PokemonDisplay.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (PokedexNumber != 0)
            {
                hash ^= PokedexNumber.GetHashCode();
            }
            if (CombatPoints != 0)
            {
                hash ^= CombatPoints.GetHashCode();
            }
            if (PokemonId != 0UL)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (pokemonDisplay_ != null)
            {
                hash ^= PokemonDisplay.GetHashCode();
            }
            if (EncounterType != 0)
            {
                hash ^= EncounterType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != global::POGOProtos.Data.Logs.CatchPokemonLogEntry.Types.Result.UNSET)
            {
                hash ^= Result.GetHashCode();
            }
            if (PokemonId != global::POGOProtos.Enums.PokemonId.Missingno)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (CombatPoints != 0)
            {
                hash ^= CombatPoints.GetHashCode();
            }
            if (PokemonDataId != 0UL)
            {
                hash ^= PokemonDataId.GetHashCode();
            }
            return(hash);
        }