mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:43:04 +08:00
Make PauseCooldownActive
protected and expose on test class
This commit is contained in:
parent
ddd1dcff88
commit
0771154dd2
@ -672,7 +672,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private double? lastPauseActionTime;
|
||||
|
||||
public bool PauseCooldownActive =>
|
||||
protected bool PauseCooldownActive =>
|
||||
lastPauseActionTime.HasValue && GameplayClockContainer.GameplayClock.CurrentTime < lastPauseActionTime + pause_cooldown;
|
||||
|
||||
private bool canPause =>
|
||||
|
@ -34,6 +34,8 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
public new HealthProcessor HealthProcessor => base.HealthProcessor;
|
||||
|
||||
public new bool PauseCooldownActive => base.PauseCooldownActive;
|
||||
|
||||
public readonly List<JudgementResult> Results = new List<JudgementResult>();
|
||||
|
||||
public TestPlayer(bool allowPause = true, bool showResults = true, bool pauseOnFocusLost = false)
|
||||
|
Loading…
Reference in New Issue
Block a user