Exemple #1
0
 public void RemoveHistoricGame(GameInstance game)
 {
     _gameHistoryDic.Remove(game.Id);
 }
Exemple #2
0
 public void RemoveActiveGame(GameInstance game)
 {
     _activeGamesDic.Remove(game.Id);
 }
Exemple #3
0
 public void AddHistoricGame(GameInstance game)
 {
     _gameHistoryDic.Add(game.Id, game);
 }
Exemple #4
0
 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));
 }