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

            if (InteractionRangeMeters != 0D)
            {
                hash ^= InteractionRangeMeters.GetHashCode();
            }
            if (MaxTotalDeployedPokemon != 0)
            {
                hash ^= MaxTotalDeployedPokemon.GetHashCode();
            }
            if (MaxPlayerDeployedPokemon != 0)
            {
                hash ^= MaxPlayerDeployedPokemon.GetHashCode();
            }
            if (DeployStaminaMultiplier != 0D)
            {
                hash ^= DeployStaminaMultiplier.GetHashCode();
            }
            if (DeployAttackMultiplier != 0D)
            {
                hash ^= DeployAttackMultiplier.GetHashCode();
            }
            if (FarInteractionRangeMeters != 0D)
            {
                hash ^= FarInteractionRangeMeters.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (InteractionRangeMeters != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InteractionRangeMeters);
            }
            if (MaxTotalDeployedPokemon != 0)
            {
                hash ^= MaxTotalDeployedPokemon.GetHashCode();
            }
            if (MaxPlayerDeployedPokemon != 0)
            {
                hash ^= MaxPlayerDeployedPokemon.GetHashCode();
            }
            if (DeployStaminaMultiplier != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeployStaminaMultiplier);
            }
            if (DeployAttackMultiplier != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeployAttackMultiplier);
            }
            if (FarInteractionRangeMeters != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FarInteractionRangeMeters);
            }
            if (DisableGyms != false)
            {
                hash ^= DisableGyms.GetHashCode();
            }
            if (MaxSamePokemonAtFort != 0)
            {
                hash ^= MaxSamePokemonAtFort.GetHashCode();
            }
            if (MaxPlayerTotalDeployedPokemon != 0)
            {
                hash ^= MaxPlayerTotalDeployedPokemon.GetHashCode();
            }
            if (EnableHyperlinksInPoiDescriptions != false)
            {
                hash ^= EnableHyperlinksInPoiDescriptions.GetHashCode();
            }
            if (EnableRightToLeftTextDisplay != false)
            {
                hash ^= EnableRightToLeftTextDisplay.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }