mirror of
https://github.com/ppy/osu
synced 2024-12-11 09:27:08 +00:00
11e1b22bf5
We want to access this property for computing lifetime
31 lines
951 B
C#
31 lines
951 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.
|
|
|
|
#nullable disable
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|