public void RemoveHistoricGame(GameInstance game) { _gameHistoryDic.Remove(game.Id); }
public void RemoveActiveGame(GameInstance game) { _activeGamesDic.Remove(game.Id); }
public void AddHistoricGame(GameInstance game) { _gameHistoryDic.Add(game.Id, game); }
public void AddActiveGame(GameInstance game) { _activeGamesDic.Add(game.Id, game); }
private Task <bool> GameBroadcastAndWait(GameInstance game, Message msg) { return(Messenger.BroadcastMessageAndWait(game.Connections.Select(c => c.Connection), msg, -1)); }
public GameControl(GameInstance game, GameManagementLogic logic) { _game = game; _logic = logic; }
public Task AbortGame(GameInstance game) { return(game.Backend.Abort()); }
private Task GameBroadcast(GameInstance game, Message msg) { return(Messenger.BroadcastMessage(game.Connections.Select(c => c.Connection), msg)); }