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