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

            if (IncenseLifetimeSeconds != 0)
            {
                hash ^= IncenseLifetimeSeconds.GetHashCode();
            }
            hash ^= pokemonType_.GetHashCode();
            if (PokemonIncenseTypeProbability != 0F)
            {
                hash ^= PokemonIncenseTypeProbability.GetHashCode();
            }
            if (StandingTimeBetweenEncountersSeconds != 0)
            {
                hash ^= StandingTimeBetweenEncountersSeconds.GetHashCode();
            }
            if (MovingTimeBetweenEncounterSeconds != 0)
            {
                hash ^= MovingTimeBetweenEncounterSeconds.GetHashCode();
            }
            if (DistanceRequiredForShorterIntervalMeters != 0)
            {
                hash ^= DistanceRequiredForShorterIntervalMeters.GetHashCode();
            }
            if (PokemonAttractedLengthSec != 0)
            {
                hash ^= PokemonAttractedLengthSec.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (IncenseLifetimeSeconds != 0)
            {
                hash ^= IncenseLifetimeSeconds.GetHashCode();
            }
            hash ^= pokemonType_.GetHashCode();
            if (PokemonIncenseTypeProbability != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PokemonIncenseTypeProbability);
            }
            if (StandingTimeBetweenEncountersSeconds != 0)
            {
                hash ^= StandingTimeBetweenEncountersSeconds.GetHashCode();
            }
            if (MovingTimeBetweenEncounterSeconds != 0)
            {
                hash ^= MovingTimeBetweenEncounterSeconds.GetHashCode();
            }
            if (DistanceRequiredForShorterIntervalMeters != 0)
            {
                hash ^= DistanceRequiredForShorterIntervalMeters.GetHashCode();
            }
            if (PokemonAttractedLengthSec != 0)
            {
                hash ^= PokemonAttractedLengthSec.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }