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

            if (activePokemon_ != null)
            {
                hash ^= ActivePokemon.GetHashCode();
            }
            if (trainerPublicProfile_ != null)
            {
                hash ^= TrainerPublicProfile.GetHashCode();
            }
            hash ^= reversePokemon_.GetHashCode();
            hash ^= defeatedPokemon_.GetHashCode();
            hash ^= lobbyPokemon_.GetHashCode();
            if (DamageDealt != 0)
            {
                hash ^= DamageDealt.GetHashCode();
            }
            if (SuperEffectiveChargeMove != false)
            {
                hash ^= SuperEffectiveChargeMove.GetHashCode();
            }
            if (WeatherBoosted != false)
            {
                hash ^= WeatherBoosted.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (activePokemon_ != null)
            {
                hash ^= ActivePokemon.GetHashCode();
            }
            if (trainerPublicProfile_ != null)
            {
                hash ^= TrainerPublicProfile.GetHashCode();
            }
            hash ^= reversePokemon_.GetHashCode();
            hash ^= defeatedPokemon_.GetHashCode();
            return(hash);
        }