Add test for shaking

This commit is contained in:
Dean Herbert
2018-07-06 17:38:58 +09:00
parent 79af5cb0a0
commit 3005259d50
2 changed files with 26 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace osu.Game.Rulesets.Osu.Tests
}
}
private class TestDrawableHitCircle : DrawableHitCircle
protected class TestDrawableHitCircle : DrawableHitCircle
{
private readonly bool auto;
@ -96,6 +96,8 @@ namespace osu.Game.Rulesets.Osu.Tests
this.auto = auto;
}
public void TriggerJudgement() => UpdateJudgement(true);
protected override void CheckForJudgements(bool userTriggered, double timeOffset)
{
if (auto && !userTriggered && timeOffset > 0)