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;
 }
Exemple #2
0
 public AsyncBattleConsumer(IBattleSimulator simulator)
 {
     _simulator = simulator;
 }