mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 23:42:55 +08:00
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
|
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 class VirtualBeatmapTrack : TrackVirtual
|
||||||
{
|
{
|
||||||
private readonly IBeatmap beatmap;
|
private readonly IBeatmap beatmap;
|
||||||
@ -16,6 +19,7 @@ namespace osu.Game.Beatmaps
|
|||||||
public VirtualBeatmapTrack(IBeatmap beatmap)
|
public VirtualBeatmapTrack(IBeatmap beatmap)
|
||||||
{
|
{
|
||||||
this.beatmap = beatmap;
|
this.beatmap = beatmap;
|
||||||
|
updateVirtualLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateState()
|
protected override void UpdateState()
|
||||||
|
Loading…
Reference in New Issue
Block a user