mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 09:33:02 +08:00
Remove unnecessary test request handling
This commit is contained in:
parent
624ec4580a
commit
bdddaba352
@ -4,9 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.API.Requests;
|
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
using osu.Game.Online.Rooms;
|
using osu.Game.Online.Rooms;
|
||||||
using osu.Game.Rulesets.Scoring;
|
using osu.Game.Rulesets.Scoring;
|
||||||
@ -89,15 +87,6 @@ namespace osu.Game.Tests.Visual.OnlinePlay
|
|||||||
getRoomRequest.TriggerSuccess(createResponseRoom(ServerSideRooms.Single(r => r.RoomID.Value == getRoomRequest.RoomId), true));
|
getRoomRequest.TriggerSuccess(createResponseRoom(ServerSideRooms.Single(r => r.RoomID.Value == getRoomRequest.RoomId), true));
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case GetBeatmapSetRequest getBeatmapSetRequest:
|
|
||||||
var onlineReq = new GetBeatmapSetRequest(getBeatmapSetRequest.ID, getBeatmapSetRequest.Type);
|
|
||||||
onlineReq.Success += res => getBeatmapSetRequest.TriggerSuccess(res);
|
|
||||||
onlineReq.Failure += e => getBeatmapSetRequest.TriggerFailure(e);
|
|
||||||
|
|
||||||
// Get the online API from the game's dependencies.
|
|
||||||
game.Dependencies.Get<IAPIProvider>().Queue(onlineReq);
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case CreateRoomScoreRequest createRoomScoreRequest:
|
case CreateRoomScoreRequest createRoomScoreRequest:
|
||||||
createRoomScoreRequest.TriggerSuccess(new APIScoreToken { ID = 1 });
|
createRoomScoreRequest.TriggerSuccess(new APIScoreToken { ID = 1 });
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user