コード例 #1
0
        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);
        }
コード例 #2
0
 public ActorChartDataDto(ParsedEvtcLog log, PhaseData phase, AbstractSingleActor actor, bool nullableHPStates)
 {
     HealthStates  = ChartDataDto.BuildHealthStates(log, actor, phase, nullableHPStates);
     BarrierStates = ChartDataDto.BuildBarrierStates(log, actor, phase);
 }
コード例 #3
0
 public TargetChartDataDto(ParsedEvtcLog log, PhaseData phase, NPC target) : base(log, phase, target, false)
 {
     Total = target.Get1SDamageList(log, phase.Start, phase.End, null);
     BreakbarPercentStates = ChartDataDto.BuildBreakbarPercentStates(log, target, phase);
 }