1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Use less DI where we already have access to LadderInfo

This commit is contained in:
Dean Herbert 2019-05-20 14:48:33 +09:00
parent d8ed402779
commit 084c2252cb
2 changed files with 4 additions and 4 deletions

View File

@ -94,10 +94,10 @@ namespace osu.Game.Tournament.Screens.MapPool
}
[BackgroundDependencyLoader]
private void load(LadderInfo ladder, MatchIPCInfo ipc)
private void load(MatchIPCInfo ipc)
{
currentMatch.BindValueChanged(matchChanged);
currentMatch.BindTo(ladder.CurrentMatch);
currentMatch.BindTo(LadderInfo.CurrentMatch);
ipc.Beatmap.BindValueChanged(beatmapChanged);
}

View File

@ -24,7 +24,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
private readonly Bindable<MatchPairing> currentMatch = new Bindable<MatchPairing>();
[BackgroundDependencyLoader]
private void load(LadderInfo ladder, Storage storage)
private void load(Storage storage)
{
RelativeSizeAxes = Axes.Both;
@ -43,7 +43,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
};
currentMatch.BindValueChanged(matchChanged);
currentMatch.BindTo(ladder.CurrentMatch);
currentMatch.BindTo(LadderInfo.CurrentMatch);
}
private void matchChanged(ValueChangedEvent<MatchPairing> pairing)