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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (avatar_ != null)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (TeamColor != 0)
            {
                hash ^= TeamColor.GetHashCode();
            }
            if (BattlesWon != 0)
            {
                hash ^= BattlesWon.GetHashCode();
            }
            if (KmWalked != 0F)
            {
                hash ^= KmWalked.GetHashCode();
            }
            if (CaughtPokemon != 0)
            {
                hash ^= CaughtPokemon.GetHashCode();
            }
            if (GymBadgeType != 0)
            {
                hash ^= GymBadgeType.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Experience != 0L)
            {
                hash ^= Experience.GetHashCode();
            }
            if (PrevLevelXp != 0L)
            {
                hash ^= PrevLevelXp.GetHashCode();
            }
            if (NextLevelXp != 0L)
            {
                hash ^= NextLevelXp.GetHashCode();
            }
            if (KmWalked != 0F)
            {
                hash ^= KmWalked.GetHashCode();
            }
            if (PokemonsEncountered != 0)
            {
                hash ^= PokemonsEncountered.GetHashCode();
            }
            if (UniquePokedexEntries != 0)
            {
                hash ^= UniquePokedexEntries.GetHashCode();
            }
            if (PokemonsCaptured != 0)
            {
                hash ^= PokemonsCaptured.GetHashCode();
            }
            if (Evolutions != 0)
            {
                hash ^= Evolutions.GetHashCode();
            }
            if (PokeStopVisits != 0)
            {
                hash ^= PokeStopVisits.GetHashCode();
            }
            if (PokeballsThrown != 0)
            {
                hash ^= PokeballsThrown.GetHashCode();
            }
            if (EggsHatched != 0)
            {
                hash ^= EggsHatched.GetHashCode();
            }
            if (BigMagikarpCaught != 0)
            {
                hash ^= BigMagikarpCaught.GetHashCode();
            }
            if (BattleAttackWon != 0)
            {
                hash ^= BattleAttackWon.GetHashCode();
            }
            if (BattleAttackTotal != 0)
            {
                hash ^= BattleAttackTotal.GetHashCode();
            }
            if (BattleDefendedWon != 0)
            {
                hash ^= BattleDefendedWon.GetHashCode();
            }
            if (BattleTrainingWon != 0)
            {
                hash ^= BattleTrainingWon.GetHashCode();
            }
            if (BattleTrainingTotal != 0)
            {
                hash ^= BattleTrainingTotal.GetHashCode();
            }
            if (PrestigeRaisedTotal != 0)
            {
                hash ^= PrestigeRaisedTotal.GetHashCode();
            }
            if (PrestigeDroppedTotal != 0)
            {
                hash ^= PrestigeDroppedTotal.GetHashCode();
            }
            if (PokemonDeployed != 0)
            {
                hash ^= PokemonDeployed.GetHashCode();
            }
            hash ^= pokemonCaughtByType_.GetHashCode();
            if (SmallRattataCaught != 0)
            {
                hash ^= SmallRattataCaught.GetHashCode();
            }
            return(hash);
        }