Move MaximumJudgementOffset to HitObject

We want to access this property for computing lifetime
This commit is contained in:
ekrctb
2023-01-19 20:53:35 +09:00
parent f7c4199a77
commit 11e1b22bf5
11 changed files with 32 additions and 31 deletions

View File

@ -200,6 +200,14 @@ namespace osu.Game.Rulesets.Objects
[NotNull]
protected virtual HitWindows CreateHitWindows() => new HitWindows();
/// <summary>
/// The maximum offset from the end time of <see cref="HitObject"/> at which this <see cref="HitObject"/> can be judged.
/// <para>
/// Defaults to the miss window.
/// </para>
/// </summary>
public virtual double MaximumJudgementOffset => HitWindows?.WindowFor(HitResult.Miss) ?? 0;
public IList<HitSampleInfo> CreateSlidingSamples()
{
var slidingSamples = new List<HitSampleInfo>();