Migrate Rulesets.Taiko to the new judgement system

This commit is contained in:
smoogipoo
2018-08-02 16:09:04 +09:00
parent e825edb6d7
commit 1b7b6f341c
11 changed files with 122 additions and 54 deletions

View File

@ -1,6 +1,10 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Taiko.Judgements;
namespace osu.Game.Rulesets.Taiko.Objects
{
public class DrumRollTick : TaikoHitObject
@ -20,5 +24,16 @@ namespace osu.Game.Rulesets.Taiko.Objects
/// The time allowed to hit this tick.
/// </summary>
public double HitWindow => TickSpacing / 2;
public TaikoDrumRollTickJudgement Judgement { get; private set; }
public TaikoStrongHitJudgement StrongJudgement { get; private set; }
protected override IEnumerable<Judgement> CreateJudgements()
{
yield return Judgement = new TaikoDrumRollTickJudgement();
if (IsStrong)
yield return StrongJudgement = new TaikoStrongHitJudgement();
}
}
}