mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:13:31 +08:00
3f29f27cd4
It's not a timed object, so following precedent, it should have empty hitwindows. This is not actually just aesthetics; several components check whether a hitobject has empty hitwindows to determine whether to include it on various HUD displays and results screen components where timed objects are explicitly involved.
22 lines
871 B
C#
22 lines
871 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.Mania.Judgements;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
|
{
|
|
/// <summary>
|
|
/// The body of a <see cref="HoldNote"/>.
|
|
/// Mostly a dummy hitobject that provides the judgement for the "holding" state.<br />
|
|
/// On hit - the hold note was held correctly for the full duration.<br />
|
|
/// On miss - the hold note was released at some point during its judgement period.
|
|
/// </summary>
|
|
public class HoldNoteBody : ManiaHitObject
|
|
{
|
|
public override Judgement CreateJudgement() => new HoldNoteBodyJudgement();
|
|
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
|
}
|
|
}
|