1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Make PauseCooldownActive protected and expose on test class

This commit is contained in:
Salman Ahmed 2021-02-19 11:42:30 +03:00
parent ddd1dcff88
commit 0771154dd2
2 changed files with 3 additions and 1 deletions

View File

@ -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 =>

View File

@ -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)