mirror of https://github.com/ppy/osu
Update the length once during construction
This commit is contained in:
parent
b4b28f8ae8
commit
5640385f48
|
@ -9,6 +9,9 @@ namespace osu.Game.Beatmaps
|
|||
{
|
||||
public partial class WorkingBeatmap
|
||||
{
|
||||
/// <summary>
|
||||
/// A type of <see cref="TrackVirtual"/> which provides a valid length based on the <see cref="HitObject"/>s of an <see cref="IBeatmap"/>.
|
||||
/// </summary>
|
||||
private class VirtualBeatmapTrack : TrackVirtual
|
||||
{
|
||||
private readonly IBeatmap beatmap;
|
||||
|
@ -16,6 +19,7 @@ private class VirtualBeatmapTrack : TrackVirtual
|
|||
public VirtualBeatmapTrack(IBeatmap beatmap)
|
||||
{
|
||||
this.beatmap = beatmap;
|
||||
updateVirtualLength();
|
||||
}
|
||||
|
||||
protected override void UpdateState()
|
||||
|
|
Loading…
Reference in New Issue