mirror of https://github.com/ppy/osu
expose IsHit
This commit is contained in:
parent
a9d7eac8be
commit
8ac6818639
|
@ -49,6 +49,11 @@ public abstract class DrawableHitObject : Container, IHasAccentColour
|
|||
/// </summary>
|
||||
public virtual bool DisplayJudgement => true;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this <see cref="DrawableHitObject"/> and all of its nested <see cref="DrawableHitObject"/>s have been hit.
|
||||
/// </summary>
|
||||
public bool IsHit => Judgements.Any(j => j.Final && j.IsHit) && (NestedHitObjects?.All(n => n.IsHit) ?? true);
|
||||
|
||||
/// <summary>
|
||||
/// Whether this <see cref="DrawableHitObject"/> and all of its nested <see cref="DrawableHitObject"/>s have been judged.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue