public IStateProviderPool GetProviderPool() { if (null == _stateProviderPool) { _stateProviderPool = new StateProviderPool(); } return(_stateProviderPool); }
public UserCmdExecuteManagerSystem(IGameModule gameModule, IUserCmdExecuteSystemHandler handler, IGameStateProcessorFactory gameStateProcessorFactory) { _systems = gameModule.UserCmdExecuteSystems; _handler = handler; _gameStateProcessorFactory = gameStateProcessorFactory; _stateProviderPool = gameStateProcessorFactory.GetProviderPool(); _statePool = gameStateProcessorFactory.GetStatePool(); Init(); }
public UserPrePredictionSystem(IGameModule gameModule, IUserPredictionInfoProvider handler, IPredictionInitManager predictionInitManager, IGameStateProcessorFactory gameStateProcessorFactory) { _logger.Info("start"); _predicatoinInfoProvider = handler; _predictionInitManager = predictionInitManager; _gameStateProcessorFactory = gameStateProcessorFactory; _stateProviderPool = gameStateProcessorFactory.GetProviderPool(); _statePool = gameStateProcessorFactory.GetStatePool(); _systems = gameModule.BeforeUserCmdExecuteSystems; Init(); }
public UserCmdPreExecuteSystem(IGameStateProcessorFactory gameStateProcessorFactory ) { _gameStateProcessorFactory = gameStateProcessorFactory; _stateProviderPool = gameStateProcessorFactory.GetProviderPool(); }