mirror of
https://github.com/ppy/osu
synced 2025-01-20 21:10:49 +00:00
Rename Restart() -> Reset()
This commit is contained in:
parent
44e13a91ad
commit
c7183f92f7
@ -82,9 +82,9 @@ namespace osu.Game.Screens.Play
|
||||
public virtual void Stop() => IsPaused.Value = true;
|
||||
|
||||
/// <summary>
|
||||
/// Restarts gameplay.
|
||||
/// Resets this <see cref="GameplayClockContainer"/> and the source to an initial state ready for gameplay.
|
||||
/// </summary>
|
||||
public virtual void Restart()
|
||||
public virtual void Reset()
|
||||
{
|
||||
AdjustableSource.Seek(0);
|
||||
AdjustableSource.Stop();
|
||||
|
@ -123,10 +123,10 @@ namespace osu.Game.Screens.Play
|
||||
userOffsetClock.ProcessFrame();
|
||||
}
|
||||
|
||||
public override void Restart()
|
||||
public override void Reset()
|
||||
{
|
||||
updateRate();
|
||||
base.Restart();
|
||||
base.Reset();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -811,7 +811,7 @@ namespace osu.Game.Screens.Play
|
||||
if (GameplayClockContainer.GameplayClock.IsRunning)
|
||||
throw new InvalidOperationException($"{nameof(StartGameplay)} should not be called when the gameplay clock is already running");
|
||||
|
||||
GameplayClockContainer.Restart();
|
||||
GameplayClockContainer.Reset();
|
||||
}
|
||||
|
||||
public override void OnSuspending(IScreen next)
|
||||
|
Loading…
Reference in New Issue
Block a user