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

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            hash ^= attackers_.GetHashCode();
            hash ^= playerXpAwarded_.GetHashCode();
            if (NextDefenderPokemonId != 0L)
            {
                hash ^= NextDefenderPokemonId.GetHashCode();
            }
            if (GymPointsDelta != 0)
            {
                hash ^= GymPointsDelta.GetHashCode();
            }
            if (gymStatus_ != null)
            {
                hash ^= GymStatus.GetHashCode();
            }
            hash ^= participation_.GetHashCode();
            hash ^= raidItemRewards_.GetHashCode();
            hash ^= postRaidEncounter_.GetHashCode();
            hash ^= gymBadge_.GetHashCode();
            hash ^= defaultRaidItemRewards_.GetHashCode();
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            hash ^= attackers_.GetHashCode();
            hash ^= playerExperienceAwarded_.GetHashCode();
            if (NextDefenderPokemonId != 0L)
            {
                hash ^= NextDefenderPokemonId.GetHashCode();
            }
            if (GymPointsDelta != 0)
            {
                hash ^= GymPointsDelta.GetHashCode();
            }
            return(hash);
        }