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

            if (CpBaseLevelBonus != 0)
            {
                hash ^= CpBaseLevelBonus.GetHashCode();
            }
            if (GuaranteedIndividualValues != 0)
            {
                hash ^= GuaranteedIndividualValues.GetHashCode();
            }
            if (StardustBonusMultiplier != 0D)
            {
                hash ^= StardustBonusMultiplier.GetHashCode();
            }
            if (AttackBonusMultiplier != 0D)
            {
                hash ^= AttackBonusMultiplier.GetHashCode();
            }
            if (RaidEncounterCpBaseLevelBonus != 0)
            {
                hash ^= RaidEncounterCpBaseLevelBonus.GetHashCode();
            }
            if (RaidEncounterGuaranteedIndividualValues != 0)
            {
                hash ^= RaidEncounterGuaranteedIndividualValues.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (CpBaseLevelBonus != 0)
            {
                hash ^= CpBaseLevelBonus.GetHashCode();
            }
            if (GuaranteedIndividualValues != 0)
            {
                hash ^= GuaranteedIndividualValues.GetHashCode();
            }
            if (StardustBonusMultiplier != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StardustBonusMultiplier);
            }
            if (AttackBonusMultiplier != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AttackBonusMultiplier);
            }
            if (RaidEncounterCpBaseLevelBonus != 0)
            {
                hash ^= RaidEncounterCpBaseLevelBonus.GetHashCode();
            }
            if (RaidEncounterGuaranteedIndividualValues != 0)
            {
                hash ^= RaidEncounterGuaranteedIndividualValues.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }