expose IsHit

This commit is contained in:
Aergwyn 2018-01-13 13:05:23 +01:00
parent a9d7eac8be
commit 8ac6818639
1 changed files with 5 additions and 0 deletions

View File

@ -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>