Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (TimesEncountered != 0)
            {
                hash ^= TimesEncountered.GetHashCode();
            }
            if (TimesCaptured != 0)
            {
                hash ^= TimesCaptured.GetHashCode();
            }
            if (EvolutionStonePieces != 0)
            {
                hash ^= EvolutionStonePieces.GetHashCode();
            }
            if (EvolutionStones != 0)
            {
                hash ^= EvolutionStones.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PokemonId != 0)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (TimesEncountered != 0)
            {
                hash ^= TimesEncountered.GetHashCode();
            }
            if (TimesCaptured != 0)
            {
                hash ^= TimesCaptured.GetHashCode();
            }
            if (EvolutionStonePieces != 0)
            {
                hash ^= EvolutionStonePieces.GetHashCode();
            }
            if (EvolutionStones != 0)
            {
                hash ^= EvolutionStones.GetHashCode();
            }
            hash ^= capturedCostumes_.GetHashCode();
            hash ^= capturedForms_.GetHashCode();
            hash ^= capturedGenders_.GetHashCode();
            if (CapturedShiny != false)
            {
                hash ^= CapturedShiny.GetHashCode();
            }
            hash ^= encounteredCostumes_.GetHashCode();
            hash ^= encounteredForms_.GetHashCode();
            hash ^= encounteredGenders_.GetHashCode();
            if (EncounteredShiny != false)
            {
                hash ^= EncounteredShiny.GetHashCode();
            }
            if (TimesLuckyReceived != 0)
            {
                hash ^= TimesLuckyReceived.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (TimesEncountered != 0)
            {
                hash ^= TimesEncountered.GetHashCode();
            }
            if (TimesReturned != 0)
            {
                hash ^= TimesReturned.GetHashCode();
            }
            if (FirstTimeRewardsCollected != false)
            {
                hash ^= FirstTimeRewardsCollected.GetHashCode();
            }
            if (FoundLocation.Length != 0)
            {
                hash ^= FoundLocation.GetHashCode();
            }
            if (FoundTime != 0L)
            {
                hash ^= FoundTime.GetHashCode();
            }
            if (Placed != false)
            {
                hash ^= Placed.GetHashCode();
            }
            if (CurrentReturned != 0)
            {
                hash ^= CurrentReturned.GetHashCode();
            }
            if (Shards != 0)
            {
                hash ^= Shards.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }