public CommandIntake(Func <JsonDocument, PointsEvent> eventsFactory,
                      Func <int> maxPointsPerAction, IGameTimer gameTimer, IEventWriter <PointsEvent> pointsEventWriter, PlayerCache playerCache, PlayerStorage playerStorage)
 {
     _eventsFactory      = eventsFactory;
     _maxPointsPerAction = maxPointsPerAction;
     _gameTimer          = gameTimer;
     _pointsEventWriter  = pointsEventWriter;
     _playerCache        = playerCache;
     _playerStorage      = playerStorage;
 }
示例#2
0
 public PlayerCache(IMemoryCache cache, PlayerStorage playerStorage)
 {
     _cache         = cache;
     _playerStorage = playerStorage;
 }