2023-10-09 08:47:00 +08: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.
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects.Drawables
|
|
|
|
{
|
|
|
|
public partial class DrawableHoldNoteBody : DrawableManiaHitObject<HoldNoteBody>
|
|
|
|
{
|
|
|
|
public bool HasHoldBreak => AllJudged && !IsHit;
|
|
|
|
|
|
|
|
public override bool DisplayResult => false;
|
|
|
|
|
|
|
|
public DrawableHoldNoteBody()
|
|
|
|
: this(null)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public DrawableHoldNoteBody(HoldNoteBody hitObject)
|
|
|
|
: base(hitObject)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
internal void TriggerResult(bool hit)
|
|
|
|
{
|
2023-10-10 15:59:18 +08:00
|
|
|
if (AllJudged) return;
|
|
|
|
|
2024-02-05 20:21:01 +08:00
|
|
|
if (hit)
|
|
|
|
ApplyMaxResult();
|
|
|
|
else
|
|
|
|
ApplyMinResult();
|
2023-10-09 08:47:00 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|