public PhaseStats(string phaseName, long startTime, long endTime, IEnumerable <TargetSquadDamageData> targetDamageData, SquadDamageData totalDamageData) { TargetDamageData = targetDamageData; TotalDamageData = totalDamageData; StartTime = startTime; EndTime = endTime; PhaseName = phaseName; }
public LogStatistics(DateTimeOffset fightStart, Player logAuthor, IEnumerable <PlayerData> playerData, IEnumerable <PhaseStats> phaseStats, SquadDamageData fullFightSquadDamageData, IEnumerable <TargetSquadDamageData> fullFightTargetDamageData, BuffData buffData, EncounterResult encounterResult, string encounterName, string logVersion, IReadOnlyDictionary <string, int> eventCounts, IEnumerable <Agent> agents, IEnumerable <Skill> skills) { EncounterName = encounterName; LogVersion = logVersion; EncounterResult = encounterResult; EventCounts = eventCounts; FightStart = fightStart; LogAuthor = logAuthor; PlayerData = playerData.ToArray(); FullFightSquadDamageData = fullFightSquadDamageData; BuffData = buffData; FullFightBossDamageData = fullFightTargetDamageData.ToArray(); PhaseStats = phaseStats as PhaseStats[] ?? phaseStats.ToArray(); FightTimeMs = PhaseStats.Sum(x => x.PhaseDuration); Agents = agents as Agent[] ?? agents.ToArray(); Skills = skills as Skill[] ?? skills.ToArray(); }