mirror of
https://github.com/osukey/osukey.git
synced 2025-06-15 00:08:01 +09:00
Revert tournament beatmap panel test change with comment
This commit is contained in:
parent
38702beabf
commit
054543f58f
@ -3,20 +3,29 @@
|
|||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.API.Requests;
|
using osu.Game.Online.API.Requests;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
|
using osu.Game.Tests.Visual;
|
||||||
using osu.Game.Tournament.Components;
|
using osu.Game.Tournament.Components;
|
||||||
|
|
||||||
namespace osu.Game.Tournament.Tests.Components
|
namespace osu.Game.Tournament.Tests.Components
|
||||||
{
|
{
|
||||||
public class TestSceneTournamentBeatmapPanel : TournamentTestScene
|
public class TestSceneTournamentBeatmapPanel : TournamentTestScene
|
||||||
{
|
{
|
||||||
|
/// <remarks>
|
||||||
|
/// Warning: the below API instance is actually the online API, rather than the dummy API provided by the test.
|
||||||
|
/// It cannot be trivially replaced because setting <see cref="OsuTestScene.UseOnlineAPI"/> to <see langword="true"/> causes <see cref="OsuTestScene.API"/> to no longer be usable.
|
||||||
|
/// </remarks>
|
||||||
|
[Resolved]
|
||||||
|
private IAPIProvider api { get; set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
var req = new GetBeatmapRequest(new APIBeatmap { OnlineID = 1091460 });
|
var req = new GetBeatmapRequest(new APIBeatmap { OnlineID = 1091460 });
|
||||||
req.Success += success;
|
req.Success += success;
|
||||||
API.Queue(req);
|
api.Queue(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void success(APIBeatmap beatmap)
|
private void success(APIBeatmap beatmap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user