private JsonDps BuildDPS(Statistics.FinalDPS[] statDps) { var dps = new JsonDps(_statistics.Phases.Count); MoveArrayLevel(dps, _statistics.Phases.Count, statDps); RemoveZeroArrays(dps); return(dps); }
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); }