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

            if (BaseCaptureRate != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BaseCaptureRate);
            }
            if (BaseFleeRate != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BaseFleeRate);
            }
            if (CollisionRadiusM != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CollisionRadiusM);
            }
            if (CollisionHeightM != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CollisionHeightM);
            }
            if (CollisionHeadRadiusM != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CollisionHeadRadiusM);
            }
            if (MovementType != 0)
            {
                hash ^= MovementType.GetHashCode();
            }
            if (MovementTimerS != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MovementTimerS);
            }
            if (JumpTimeS != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(JumpTimeS);
            }
            if (AttackTimerS != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AttackTimerS);
            }
            if (BonusCandyCaptureReward != 0)
            {
                hash ^= BonusCandyCaptureReward.GetHashCode();
            }
            if (BonusStardustCaptureReward != 0)
            {
                hash ^= BonusStardustCaptureReward.GetHashCode();
            }
            if (AttackProbability != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AttackProbability);
            }
            if (DodgeProbability != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DodgeProbability);
            }
            if (DodgeDurationS != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DodgeDurationS);
            }
            if (DodgeDistance != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DodgeDistance);
            }
            if (CameraDistance != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(CameraDistance);
            }
            if (MinPokemonActionFrequencyS != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinPokemonActionFrequencyS);
            }
            if (MaxPokemonActionFrequencyS != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxPokemonActionFrequencyS);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BaseCaptureRate != 0F)
            {
                hash ^= BaseCaptureRate.GetHashCode();
            }
            if (BaseFleeRate != 0F)
            {
                hash ^= BaseFleeRate.GetHashCode();
            }
            if (CollisionRadiusM != 0F)
            {
                hash ^= CollisionRadiusM.GetHashCode();
            }
            if (CollisionHeightM != 0F)
            {
                hash ^= CollisionHeightM.GetHashCode();
            }
            if (CollisionHeadRadiusM != 0F)
            {
                hash ^= CollisionHeadRadiusM.GetHashCode();
            }
            if (MovementType != 0)
            {
                hash ^= MovementType.GetHashCode();
            }
            if (MovementTimerS != 0F)
            {
                hash ^= MovementTimerS.GetHashCode();
            }
            if (JumpTimeS != 0F)
            {
                hash ^= JumpTimeS.GetHashCode();
            }
            if (AttackTimerS != 0F)
            {
                hash ^= AttackTimerS.GetHashCode();
            }
            if (BonusCandyCaptureReward != 0)
            {
                hash ^= BonusCandyCaptureReward.GetHashCode();
            }
            if (BonusStardustCaptureReward != 0)
            {
                hash ^= BonusStardustCaptureReward.GetHashCode();
            }
            if (AttackProbability != 0F)
            {
                hash ^= AttackProbability.GetHashCode();
            }
            if (DodgeProbability != 0F)
            {
                hash ^= DodgeProbability.GetHashCode();
            }
            if (DodgeDurationS != 0F)
            {
                hash ^= DodgeDurationS.GetHashCode();
            }
            if (DodgeDistance != 0F)
            {
                hash ^= DodgeDistance.GetHashCode();
            }
            if (CameraDistance != 0F)
            {
                hash ^= CameraDistance.GetHashCode();
            }
            if (MinPokemonActionFrequencyS != 0F)
            {
                hash ^= MinPokemonActionFrequencyS.GetHashCode();
            }
            if (MaxPokemonActionFrequencyS != 0F)
            {
                hash ^= MaxPokemonActionFrequencyS.GetHashCode();
            }
            return(hash);
        }