mirror of https://github.com/ppy/osu
Merge pull request #1902 from Aergwyn/expose-ishit
Expose "IsHit" on DrawableHitObject
This commit is contained in:
commit
25d4445543
|
@ -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