osu/osu.Game.Rulesets.Osu/Objects/SpinnerTick.cs

31 lines
951 B
C#
Raw Normal View History

// 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.
2022-06-17 07:37:17 +00:00
#nullable disable
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Osu.Judgements;
2019-09-07 14:27:02 +00:00
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();
2019-09-07 14:27:02 +00:00
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
public override double MaximumJudgementOffset => SpinnerDuration;
public class OsuSpinnerTickJudgement : OsuJudgement
{
2020-09-29 05:35:43 +00:00
public override HitResult MaxResult => HitResult.SmallBonus;
}
}
}