Add support to EditorBeatmap to update all hitobjects

This commit is contained in:
Dean Herbert
2020-10-06 17:12:19 +09:00
parent 6d7f12ad4b
commit 7a20a34aff
2 changed files with 14 additions and 0 deletions

View File

@ -258,5 +258,14 @@ namespace osu.Game.Screens.Edit
public double GetBeatLengthAtTime(double referenceTime) => ControlPointInfo.TimingPointAt(referenceTime).BeatLength / BeatDivisor;
public int BeatDivisor => beatDivisor?.Value ?? 1;
/// <summary>
/// Update all hit objects with potentially changed difficulty or control point data.
/// </summary>
public void UpdateBeatmap()
{
foreach (var h in HitObjects)
pendingUpdates.Add(h);
}
}
}