mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Fix incorrect access definitions
This commit is contained in:
parent
f5716c3d21
commit
e136f72c8e
@ -16,22 +16,22 @@ namespace osu.Game.Tournament.Tests
|
||||
public class TestCaseBeatmapPanel : OsuTestCase
|
||||
{
|
||||
[Resolved]
|
||||
protected APIAccess API { get; set; }
|
||||
private APIAccess api { get; set; }
|
||||
|
||||
[Resolved]
|
||||
protected RulesetStore Rulesets { get; set; }
|
||||
private RulesetStore rulesets { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
var req = new GetBeatmapRequest(new BeatmapInfo { OnlineBeatmapID = 1091460 });
|
||||
req.Success += success;
|
||||
API.Queue(req);
|
||||
api.Queue(req);
|
||||
}
|
||||
|
||||
private void success(APIBeatmap apiBeatmap)
|
||||
{
|
||||
var beatmap = apiBeatmap.ToBeatmap(Rulesets);
|
||||
var beatmap = apiBeatmap.ToBeatmap(rulesets);
|
||||
Add(new TournamentBeatmapPanel(beatmap)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
|
Loading…
Reference in New Issue
Block a user