mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Reorder overrides in SoloPlayer to better follow chronological request order
This commit is contained in:
parent
8bed7748d6
commit
e372e355ef
@ -12,15 +12,6 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
public class SoloPlayer : SubmittingPlayer
|
public class SoloPlayer : SubmittingPlayer
|
||||||
{
|
{
|
||||||
protected override APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token)
|
|
||||||
{
|
|
||||||
Debug.Assert(Beatmap.Value.BeatmapInfo.OnlineBeatmapID != null);
|
|
||||||
|
|
||||||
int beatmapId = Beatmap.Value.BeatmapInfo.OnlineBeatmapID.Value;
|
|
||||||
|
|
||||||
return new SubmitSoloScoreRequest(beatmapId, token, score.ScoreInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override APIRequest<APIScoreToken> CreateTokenRequest()
|
protected override APIRequest<APIScoreToken> CreateTokenRequest()
|
||||||
{
|
{
|
||||||
if (!(Beatmap.Value.BeatmapInfo.OnlineBeatmapID is int beatmapId))
|
if (!(Beatmap.Value.BeatmapInfo.OnlineBeatmapID is int beatmapId))
|
||||||
@ -30,5 +21,14 @@ namespace osu.Game.Screens.Play
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override bool HandleTokenRetrievalFailure(Exception exception) => false;
|
protected override bool HandleTokenRetrievalFailure(Exception exception) => false;
|
||||||
|
|
||||||
|
protected override APIRequest<MultiplayerScore> CreateSubmissionRequest(Score score, long token)
|
||||||
|
{
|
||||||
|
Debug.Assert(Beatmap.Value.BeatmapInfo.OnlineBeatmapID != null);
|
||||||
|
|
||||||
|
int beatmapId = Beatmap.Value.BeatmapInfo.OnlineBeatmapID.Value;
|
||||||
|
|
||||||
|
return new SubmitSoloScoreRequest(beatmapId, token, score.ScoreInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user