mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 15:12:57 +08:00
29 lines
935 B
C#
29 lines
935 B
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.Osu.Judgements;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Objects
|
|
{
|
|
public class SpinnerTick : OsuHitObject
|
|
{
|
|
/// <summary>
|
|
/// Duration of the <see cref="Spinner"/> containing this spinner tick.
|
|
/// </summary>
|
|
public double SpinnerDuration { get; set; }
|
|
|
|
public override Judgement CreateJudgement() => new OsuSpinnerTickJudgement();
|
|
|
|
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
|
|
|
public override double MaximumJudgementOffset => SpinnerDuration;
|
|
|
|
public class OsuSpinnerTickJudgement : OsuJudgement
|
|
{
|
|
public override HitResult MaxResult => HitResult.SmallBonus;
|
|
}
|
|
}
|
|
}
|