1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Simplify some pieces of FramedBeatmapClock

This commit is contained in:
Dean Herbert 2023-09-21 18:39:55 +09:00
parent 04e6ec8715
commit 21a2e27e5f

View File

@ -28,16 +28,6 @@ namespace osu.Game.Beatmaps
{
private readonly bool applyOffsets;
/// <summary>
/// The length of the underlying beatmap track. Will default to 60 seconds if unavailable.
/// </summary>
public double TrackLength => Track.Length;
/// <summary>
/// The underlying beatmap track, if available.
/// </summary>
public Track Track { get; private set; } = new TrackVirtual(60000);
/// <summary>
/// The total frequency adjustment from pause transforms. Should eventually be handled in a better way.
/// </summary>
@ -154,8 +144,7 @@ namespace osu.Game.Beatmaps
public void ChangeSource(IClock? source)
{
Track = source as Track ?? new TrackVirtual(60000);
decoupledTrack.ChangeSource(Track);
decoupledTrack.ChangeSource(source as Track ?? new TrackVirtual(60000));
}
public IClock Source => decoupledTrack.Source;