public PhaseChartDataDto(ParsedEvtcLog log, PhaseData phase, bool addCRData) { Players = PlayerChartDataDto.BuildPlayersGraphData(log, phase); foreach (AbstractSingleActor target in phase.Targets) { Targets.Add(new TargetChartDataDto(log, phase, target)); } if (addCRData) { TargetsHealthStatesForCR = new List <List <object[]> >(); TargetsBreakbarPercentStatesForCR = new List <List <object[]> >(); TargetsBarrierStatesForCR = new List <List <object[]> >(); foreach (AbstractSingleActor target in log.FightData.Logic.Targets) { TargetsHealthStatesForCR.Add(ChartDataDto.BuildHealthStates(log, target, phase, false)); TargetsBreakbarPercentStatesForCR.Add(ChartDataDto.BuildBreakbarPercentStates(log, target, phase)); TargetsBarrierStatesForCR.Add(ChartDataDto.BuildBarrierStates(log, target, phase)); } } }
public ActorChartDataDto(ParsedEvtcLog log, PhaseData phase, AbstractSingleActor actor, bool nullableHPStates) { HealthStates = ChartDataDto.BuildHealthStates(log, actor, phase, nullableHPStates); BarrierStates = ChartDataDto.BuildBarrierStates(log, actor, phase); }