1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +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; 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> /// <summary>
/// The total frequency adjustment from pause transforms. Should eventually be handled in a better way. /// The total frequency adjustment from pause transforms. Should eventually be handled in a better way.
/// </summary> /// </summary>
@ -154,8 +144,7 @@ namespace osu.Game.Beatmaps
public void ChangeSource(IClock? source) public void ChangeSource(IClock? source)
{ {
Track = source as Track ?? new TrackVirtual(60000); decoupledTrack.ChangeSource(source as Track ?? new TrackVirtual(60000));
decoupledTrack.ChangeSource(Track);
} }
public IClock Source => decoupledTrack.Source; public IClock Source => decoupledTrack.Source;