Exemplo n.º 1
0
 public GameLoopSimulator(
     ILogService logService,
     IHubService hubService,
     IGameStateService gameStateService,
     IPlayerActionCollection playerActionQueue,
     IPlayerActionExecutor playerActionExecutor,
     IBattleSimulator battleSimulator
     )
 {
     this.logService           = logService;
     this.hubService           = hubService;
     this.gameStateService     = gameStateService;
     this.playerActionExecutor = playerActionExecutor;
     this.battleSimulator      = battleSimulator;
     this.playerActionQueue    = playerActionQueue;
     syncCoordinator           = new SyncCoordinator();
     playerActionExecutor.SetSyncCoordinator(syncCoordinator);
     tickCount = 0;
 }
Exemplo n.º 2
0
 public AsyncBattleConsumer(IBattleSimulator simulator)
 {
     _simulator = simulator;
 }