2019-08-20 18:17:27 +00:00
|
|
|
|
// 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;
|
2019-09-07 14:27:02 +00:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2019-08-20 18:17:27 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Objects
|
|
|
|
|
{
|
|
|
|
|
public class SpinnerTick : OsuHitObject
|
|
|
|
|
{
|
2023-01-19 11:53:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Duration of the <see cref="Spinner"/> containing this spinner tick.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double SpinnerDuration { get; set; }
|
|
|
|
|
|
2019-08-20 18:17:27 +00:00
|
|
|
|
public override Judgement CreateJudgement() => new OsuSpinnerTickJudgement();
|
2019-09-07 14:27:02 +00:00
|
|
|
|
|
2019-10-13 21:38:45 +00:00
|
|
|
|
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
2020-07-21 09:22:37 +00:00
|
|
|
|
|
2023-01-19 11:53:35 +00:00
|
|
|
|
public override double MaximumJudgementOffset => SpinnerDuration;
|
|
|
|
|
|
2020-07-21 09:22:37 +00:00
|
|
|
|
public class OsuSpinnerTickJudgement : OsuJudgement
|
|
|
|
|
{
|
2020-09-29 05:35:43 +00:00
|
|
|
|
public override HitResult MaxResult => HitResult.SmallBonus;
|
2020-07-21 09:22:37 +00:00
|
|
|
|
}
|
2019-08-20 18:17:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|