コード例 #1
0
 public IStateProviderPool GetProviderPool()
 {
     if (null == _stateProviderPool)
     {
         _stateProviderPool = new StateProviderPool();
     }
     return(_stateProviderPool);
 }
コード例 #2
0
 public UserCmdExecuteManagerSystem(IGameModule gameModule,
                                    IUserCmdExecuteSystemHandler handler,
                                    IGameStateProcessorFactory gameStateProcessorFactory)
 {
     _systems = gameModule.UserCmdExecuteSystems;
     _handler = handler;
     _gameStateProcessorFactory = gameStateProcessorFactory;
     _stateProviderPool         = gameStateProcessorFactory.GetProviderPool();
     _statePool = gameStateProcessorFactory.GetStatePool();
     Init();
 }
コード例 #3
0
 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();
 }
コード例 #4
0
 public UserCmdPreExecuteSystem(IGameStateProcessorFactory gameStateProcessorFactory
                                )
 {
     _gameStateProcessorFactory = gameStateProcessorFactory;
     _stateProviderPool         = gameStateProcessorFactory.GetProviderPool();
 }