mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 02:03:04 +08:00
Reduce allocations in HitObjectLifetimeEntry
This commit is contained in:
parent
f948f8ee5c
commit
c3fa97d062
@ -41,7 +41,22 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether <see cref="HitObject"/> and all of its nested objects have been judged.
|
/// Whether <see cref="HitObject"/> and all of its nested objects have been judged.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool AllJudged => Judged && NestedEntries.All(h => h.AllJudged);
|
public bool AllJudged
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (!Judged)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
foreach (var entry in NestedEntries)
|
||||||
|
{
|
||||||
|
if (!entry.AllJudged)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private readonly IBindable<double> startTimeBindable = new BindableDouble();
|
private readonly IBindable<double> startTimeBindable = new BindableDouble();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user