Ejemplo n.º 1
0
        private JsonDps BuildDPS(Statistics.FinalDPS[] statDps)
        {
            var dps = new JsonDps(_statistics.Phases.Count);

            MoveArrayLevel(dps, _statistics.Phases.Count, statDps);
            RemoveZeroArrays(dps);

            return(dps);
        }
Ejemplo n.º 2
0
        private JsonDps[] BuildDPSTarget(Dictionary <Target, Dictionary <Player, Statistics.FinalDPS[]> > statDps, Player player)
        {
            var finalDps = new JsonDps[_log.FightData.Logic.Targets.Count];
            int i        = 0;

            foreach (Target target in _log.FightData.Logic.Targets)
            {
                finalDps[i++] = BuildDPS(statDps[target][player]);
            }
            return(finalDps);
        }