Implement new difficulty calculator for Rulesets.Taiko

This commit is contained in:
smoogipoo
2019-02-18 14:54:21 +09:00
parent a8faa942a6
commit 25d85b6eb4
9 changed files with 173 additions and 275 deletions

View File

@ -0,0 +1,20 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Rulesets.Difficulty.Preprocessing;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Taiko.Objects;
namespace osu.Game.Rulesets.Taiko.Difficulty.Preprocessing
{
public class TaikoDifficultyHitObject : DifficultyHitObject
{
public readonly bool HasTypeChange;
public TaikoDifficultyHitObject(HitObject hitObject, HitObject lastObject, double timeRate)
: base(hitObject, lastObject, timeRate)
{
HasTypeChange = lastObject is RimHit != hitObject is RimHit;
}
}
}