internal static TargetChartDataDto BuildTargetGraphData(ParsedEvtcLog log, int phaseIndex, NPC target) { PhaseData phase = log.FightData.GetPhases(log)[phaseIndex]; return(new TargetChartDataDto { Total = target.Get1SDamageList(log, phaseIndex, phase, null), HealthStates = ChartDataDto.BuildHealthGraphStates(log, target, log.FightData.GetPhases(log)[phaseIndex], false), BreakbarPercentStates = ChartDataDto.BuildBreakbarPercentStates(log, target, log.FightData.GetPhases(log)[phaseIndex]), }); }
internal static List <PlayerChartDataDto> BuildPlayersGraphData(ParsedEvtcLog log, int phaseIndex) { var list = new List <PlayerChartDataDto>(); PhaseData phase = log.FightData.GetPhases(log)[phaseIndex]; foreach (Player p in log.PlayerList) { var pChar = new PlayerChartDataDto() { Total = p.Get1SDamageList(log, phaseIndex, phase, null), Targets = new List <List <int> >(), HealthStates = ChartDataDto.BuildHealthGraphStates(log, p, log.FightData.GetPhases(log)[phaseIndex], true) }; foreach (NPC target in phase.Targets) { pChar.Targets.Add(p.Get1SDamageList(log, phaseIndex, phase, target)); } list.Add(pChar); } return(list); }