Beispiel #1
0
 public FinalToPlayersSupport GetToPlayerSupportStats(ParsedEvtcLog log, long start, long end)
 {
     if (_toPlayerSupportStats == null)
     {
         _toPlayerSupportStats = new CachingCollection <FinalToPlayersSupport>(log);
     }
     if (!_toPlayerSupportStats.TryGetValue(start, end, out FinalToPlayersSupport value))
     {
         value = new FinalToPlayersSupport(log, this, start, end);
         _toPlayerSupportStats.Set(start, end, value);
     }
     return(value);
 }
Beispiel #2
0
 public IReadOnlyDictionary <long, FinalBuffs> GetBuffs(ParsedEvtcLog log, long start, long end)
 {
     if (_buffs == null)
     {
         _buffs = new CachingCollection <Dictionary <long, FinalBuffs> >(log);
     }
     if (!_buffs.TryGetValue(start, end, out Dictionary <long, FinalBuffs> value))
     {
         value = ComputeBuffs(log, start, end);
         _buffs.Set(start, end, value);
     }
     return(value);
 }
Beispiel #3
0
        // Gameplay Stats

        public FinalGameplayStats GetGameplayStats(ParsedEvtcLog log, long start, long end)
        {
            if (_gameplayStats == null)
            {
                _gameplayStats = new CachingCollection <FinalGameplayStats>(log);
            }
            if (!_gameplayStats.TryGetValue(start, end, out FinalGameplayStats value))
            {
                value = new FinalGameplayStats(log, start, end, this);
                _gameplayStats.Set(start, end, value);
            }
            return(value);
        }