1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 21:13:20 +08:00

Update virtual track logic to match framework changes

This commit is contained in:
Dean Herbert 2022-09-01 23:05:07 +09:00
parent 22c18d9a81
commit c9dec473d3

View File

@ -404,9 +404,9 @@ namespace osu.Game.Tests.Visual
public IEnumerable<string> GetAvailableResources() => throw new NotImplementedException();
public Track GetVirtual(double length = double.PositiveInfinity)
public Track GetVirtual(double length = double.PositiveInfinity, string name = "virtual")
{
var track = new TrackVirtualManual(referenceClock) { Length = length };
var track = new TrackVirtualManual(referenceClock, name) { Length = length };
AddItem(track);
return track;
}
@ -421,7 +421,8 @@ namespace osu.Game.Tests.Visual
private bool running;
public TrackVirtualManual(IFrameBasedClock referenceClock)
public TrackVirtualManual(IFrameBasedClock referenceClock, string name = "virtual")
: base(name)
{
this.referenceClock = referenceClock;
Length = double.PositiveInfinity;