mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
// 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.Judgements;
|
|
using osu.Game.Rulesets.Scoring;
|
|
using osu.Game.Rulesets.Taiko.Judgements;
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Objects
|
|
{
|
|
public class DrumRollTick : TaikoStrongableHitObject
|
|
{
|
|
/// <summary>
|
|
/// Whether this is the first (initial) tick of the slider.
|
|
/// </summary>
|
|
public bool FirstTick;
|
|
|
|
/// <summary>
|
|
/// The length (in milliseconds) between this tick and the next.
|
|
/// <para>Half of this value is the hit window of the tick.</para>
|
|
/// </summary>
|
|
public double TickSpacing;
|
|
|
|
/// <summary>
|
|
/// The time allowed to hit this tick.
|
|
/// </summary>
|
|
public double HitWindow => TickSpacing / 2;
|
|
|
|
public override Judgement CreateJudgement() => new TaikoDrumRollTickJudgement();
|
|
|
|
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
|
|
|
protected override StrongNestedHitObject CreateStrongNestedHit(double startTime) => new StrongNestedHit { StartTime = startTime };
|
|
|
|
public class StrongNestedHit : StrongNestedHitObject
|
|
{
|
|
}
|
|
}
|
|
}
|