mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 10:47:22 +09:00
Mark the GetTrack() return type as nullable.
This commit is contained in:
parent
6c964dee30
commit
094793bbe3
@ -24,7 +24,7 @@ namespace osu.Game.Audio
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public event Action? Started;
|
public event Action? Started;
|
||||||
|
|
||||||
protected Track Track { get; private set; }
|
protected Track? Track { get; private set; }
|
||||||
|
|
||||||
private bool hasStarted;
|
private bool hasStarted;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ namespace osu.Game.Audio
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsRunning => Track?.IsRunning ?? false;
|
public bool IsRunning => Track?.IsRunning ?? false;
|
||||||
|
|
||||||
private ScheduledDelegate startDelegate;
|
private ScheduledDelegate? startDelegate;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Starts playing this <see cref="PreviewTrack"/>.
|
/// Starts playing this <see cref="PreviewTrack"/>.
|
||||||
@ -104,6 +104,6 @@ namespace osu.Game.Audio
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves the audio track.
|
/// Retrieves the audio track.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected abstract Track GetTrack();
|
protected abstract Track? GetTrack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user