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

            if (SpinBonusThreshold != 0F)
            {
                hash ^= SpinBonusThreshold.GetHashCode();
            }
            if (ExcellentThrowThreshold != 0F)
            {
                hash ^= ExcellentThrowThreshold.GetHashCode();
            }
            if (GreatThrowThreshold != 0F)
            {
                hash ^= GreatThrowThreshold.GetHashCode();
            }
            if (NiceThrowThreshold != 0F)
            {
                hash ^= NiceThrowThreshold.GetHashCode();
            }
            if (MilestoneThreshold != 0)
            {
                hash ^= MilestoneThreshold.GetHashCode();
            }
            if (ArPlusModeEnabled != false)
            {
                hash ^= ArPlusModeEnabled.GetHashCode();
            }
            if (ArCloseProximityThreshold != 0F)
            {
                hash ^= ArCloseProximityThreshold.GetHashCode();
            }
            if (ArLowAwarenessThreshold != 0F)
            {
                hash ^= ArLowAwarenessThreshold.GetHashCode();
            }
            if (ArCloseProximityMultiplier != 0F)
            {
                hash ^= ArCloseProximityMultiplier.GetHashCode();
            }
            if (ArAwarenessPenaltyThreshold != 0F)
            {
                hash ^= ArAwarenessPenaltyThreshold.GetHashCode();
            }
            if (ArLowAwarenessMaxMultiplier != 0F)
            {
                hash ^= ArLowAwarenessMaxMultiplier.GetHashCode();
            }
            if (ArHighAwarenessMinPenaltyMultiplier != 0F)
            {
                hash ^= ArHighAwarenessMinPenaltyMultiplier.GetHashCode();
            }
            if (ArPlusAttemptsUntilFleeMax != 0)
            {
                hash ^= ArPlusAttemptsUntilFleeMax.GetHashCode();
            }
            if (ArPlusAttemptsUntilFleeInfinite != 0)
            {
                hash ^= ArPlusAttemptsUntilFleeInfinite.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SpinBonusThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SpinBonusThreshold);
            }
            if (ExcellentThrowThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ExcellentThrowThreshold);
            }
            if (GreatThrowThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GreatThrowThreshold);
            }
            if (NiceThrowThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(NiceThrowThreshold);
            }
            if (MilestoneThreshold != 0)
            {
                hash ^= MilestoneThreshold.GetHashCode();
            }
            if (ArPlusModeEnabled != false)
            {
                hash ^= ArPlusModeEnabled.GetHashCode();
            }
            if (ArCloseProximityThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ArCloseProximityThreshold);
            }
            if (ArLowAwarenessThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ArLowAwarenessThreshold);
            }
            if (ArCloseProximityMultiplier != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ArCloseProximityMultiplier);
            }
            if (ArAwarenessPenaltyThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ArAwarenessPenaltyThreshold);
            }
            if (ArLowAwarenessMaxMultiplier != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ArLowAwarenessMaxMultiplier);
            }
            if (ArHighAwarenessMinPenaltyMultiplier != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(ArHighAwarenessMinPenaltyMultiplier);
            }
            if (ArPlusAttemptsUntilFleeMax != 0)
            {
                hash ^= ArPlusAttemptsUntilFleeMax.GetHashCode();
            }
            if (ArPlusAttemptsUntilFleeInfinite != 0)
            {
                hash ^= ArPlusAttemptsUntilFleeInfinite.GetHashCode();
            }
            if (EscapedBonusMultiplierMax != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EscapedBonusMultiplierMax);
            }
            if (EscapedBonusMultiplierByExcellentThrow != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EscapedBonusMultiplierByExcellentThrow);
            }
            if (EscapedBonusMultiplierByGreatThrow != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EscapedBonusMultiplierByGreatThrow);
            }
            if (EscapedBonusMultiplierByNiceThrow != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(EscapedBonusMultiplierByNiceThrow);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }