Make TestPlayer inherit from SoloPlayer for more flexibility in testing

This commit is contained in:
Dean Herbert
2021-07-01 16:55:33 +09:00
parent 00d3baef11
commit 5bc970af0d
2 changed files with 32 additions and 1 deletions

View File

@ -12,6 +12,16 @@ namespace osu.Game.Screens.Play
{
public class SoloPlayer : SubmittingPlayer
{
public SoloPlayer()
: this(null)
{
}
protected SoloPlayer(PlayerConfiguration configuration = null)
: base(configuration)
{
}
protected override APIRequest<APIScoreToken> CreateTokenRequest()
{
if (!(Beatmap.Value.BeatmapInfo.OnlineBeatmapID is int beatmapId))