Move all IPC handling to its own class

This commit is contained in:
Dean Herbert
2018-11-08 01:23:00 +09:00
parent a8b1e509e7
commit 3eabac0e3d
3 changed files with 123 additions and 93 deletions

View File

@ -17,6 +17,7 @@ using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API.Requests;
using osu.Game.Rulesets;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.IPC;
namespace osu.Game.Tournament
{
@ -33,6 +34,7 @@ namespace osu.Game.Tournament
private readonly Bindable<RulesetInfo> ruleset = new Bindable<RulesetInfo>();
private Bindable<Size> windowSize;
private FileBasedIPC ipc;
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
{
@ -63,6 +65,9 @@ namespace osu.Game.Tournament
dependencies.Cache(Ladder);
dependencies.Cache(ipc = new FileBasedIPC());
Add(ipc);
bool addedInfo = false;
// assign teams