public static List <List <object> > BuildIncomingHealingStatData(ParsedEvtcLog log, PhaseData phase) { var list = new List <List <object> >(); foreach (AbstractSingleActor actor in log.Friendlies) { EXTFinalIncomingHealingStat incomingHealintStats = actor.EXTHealing.GetIncomingHealStats(null, log, phase.Start, phase.End); list.Add(GetIncomingHealingStatData(incomingHealintStats)); } return(list); }
private static List <object> GetIncomingHealingStatData(EXTFinalIncomingHealingStat incomingHealintStats) { var data = new List <object> { incomingHealintStats.Healed, incomingHealintStats.HealingPowerHealed + incomingHealintStats.HybridHealed, incomingHealintStats.ConversionHealed, //incomingHealintStats.HybridHealed, incomingHealintStats.DownedHealed, }; return(data); }
public static EXTHealingStatsHealingDistributionDto BuildIncomingHealingDistData(ParsedEvtcLog log, AbstractSingleActor p, PhaseData phase, Dictionary <long, SkillItem> usedSkills, Dictionary <long, Buff> usedBuffs) { var dto = new EXTHealingStatsHealingDistributionDto { Distribution = new List <object[]>() }; EXTFinalIncomingHealingStat incomingHealingStats = p.EXTHealing.GetIncomingHealStats(null, log, phase.Start, phase.End); IReadOnlyList <EXTAbstractHealingEvent> healingLogs = p.EXTHealing.GetIncomingHealEvents(null, log, phase.Start, phase.End); var healingLogsBySkill = healingLogs.GroupBy(x => x.Skill).ToDictionary(x => x.Key, x => x.ToList()); dto.ContributedHealing = incomingHealingStats.Healed; dto.ContributedDownedHealing = incomingHealingStats.DownedHealed; var conditionsById = log.StatisticsHelper.PresentConditions.ToDictionary(x => x.ID); foreach (KeyValuePair <SkillItem, List <EXTAbstractHealingEvent> > pair in healingLogsBySkill) { dto.Distribution.Add(GetHealingToItem(pair.Key, pair.Value, null, usedSkills, usedBuffs, log.Buffs, phase)); } return(dto); }
internal static EXTJsonHealingStatistics.EXTJsonIncomingHealingStatistics BuildIncomingHealingStatistics(EXTFinalIncomingHealingStat stats) { return(new EXTJsonHealingStatistics.EXTJsonIncomingHealingStatistics() { ConversionHealed = stats.ConversionHealed, Healed = stats.Healed, HealingPowerHealed = stats.HealingPowerHealed, HybridHealed = stats.HybridHealed, DownedHealed = stats.DownedHealed, }); }