コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IndividualDamagePokeballs != 0)
            {
                hash ^= IndividualDamagePokeballs.GetHashCode();
            }
            if (TeamDamagePokeballs != 0)
            {
                hash ^= TeamDamagePokeballs.GetHashCode();
            }
            if (GymOwnershipPokeballs != 0)
            {
                hash ^= GymOwnershipPokeballs.GetHashCode();
            }
            if (BasePokeballs != 0)
            {
                hash ^= BasePokeballs.GetHashCode();
            }
            if (BluePercentage != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BluePercentage);
            }
            if (RedPercentage != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(RedPercentage);
            }
            if (YellowPercentage != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(YellowPercentage);
            }
            if (BonusItemMultiplier != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BonusItemMultiplier);
            }
            if (HighestFriendshipMilestone != 0)
            {
                hash ^= HighestFriendshipMilestone.GetHashCode();
            }
            if (HighestFriendshipPokeballs != 0)
            {
                hash ^= HighestFriendshipPokeballs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IndividualDamagePokeballs != 0)
            {
                hash ^= IndividualDamagePokeballs.GetHashCode();
            }
            if (TeamDamagePokeballs != 0)
            {
                hash ^= TeamDamagePokeballs.GetHashCode();
            }
            if (GymOwnershipPokeballs != 0)
            {
                hash ^= GymOwnershipPokeballs.GetHashCode();
            }
            if (BasePokeballs != 0)
            {
                hash ^= BasePokeballs.GetHashCode();
            }
            if (BluePercentage != 0D)
            {
                hash ^= BluePercentage.GetHashCode();
            }
            if (RedPercentage != 0D)
            {
                hash ^= RedPercentage.GetHashCode();
            }
            if (YellowPercentage != 0D)
            {
                hash ^= YellowPercentage.GetHashCode();
            }
            if (BonusItemMultiplier != 0F)
            {
                hash ^= BonusItemMultiplier.GetHashCode();
            }
            return(hash);
        }