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; }
public MainHub( ILogService logService, IGameStateService gameStateService, IPlayerActionCollection playerActionQueue, IServerManager serverManager, ILoginService loginService, IAccountService accountService, ICharacterFactory characterFactory, IQuestGiver questGiver, IDisconnectService disconnectService, IHubService hubService) { this.logService = logService; this.gameStateService = gameStateService; this.playerActionQueue = playerActionQueue; this.serverManager = serverManager; this.loginService = loginService; this.accountService = accountService; this.characterFactory = characterFactory; this.questGiver = questGiver; this.disconnectService = disconnectService; this.hubService = hubService; }