Move player constructor configuration to dedicated class; add AllowRestart parameter

This commit is contained in:
Dean Herbert
2020-12-23 17:39:08 +09:00
parent d7279dab40
commit 3c8f871b28
12 changed files with 146 additions and 83 deletions

View File

@ -37,7 +37,11 @@ namespace osu.Game.Tests.Visual
public readonly List<JudgementResult> Results = new List<JudgementResult>();
public TestPlayer(bool allowPause = true, bool showResults = true, bool pauseOnFocusLost = false)
: base(allowPause, showResults)
: base(new PlayerConfiguration
{
AllowPause = allowPause,
ShowResults = showResults
})
{
PauseOnFocusLost = pauseOnFocusLost;
}