mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 08:33:04 +08:00
Simplify some pieces of FramedBeatmapClock
This commit is contained in:
parent
04e6ec8715
commit
21a2e27e5f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user