private Dictionary <long, FinalPlayerBuffs>[] SetBuffs(ParsedEvtcLog log, long start, long end, BuffEnum type) { switch (type) { case BuffEnum.Group: var otherPlayersInGroup = log.PlayerList .Where(p => p.Group == Group && Agent != p.Agent) .ToList(); return(FinalPlayerBuffs.GetBuffsForPlayers(otherPlayersInGroup, log, AgentItem, start, end)); case BuffEnum.OffGroup: var offGroupPlayers = log.PlayerList.Where(p => p.Group != Group).ToList(); return(FinalPlayerBuffs.GetBuffsForPlayers(offGroupPlayers, log, AgentItem, start, end)); case BuffEnum.Squad: var otherPlayers = log.PlayerList.Where(p => p.Agent != Agent).ToList(); return(FinalPlayerBuffs.GetBuffsForPlayers(otherPlayers, log, AgentItem, start, end)); case BuffEnum.Self: default: return(FinalPlayerBuffs.GetBuffsForSelf(log, this, start, end)); } }
private void SetBuffs(ParsedEvtcLog log) { // Boons applied to self (_selfBuffs, _selfBuffsActive) = FinalPlayerBuffs.GetBuffsForSelf(log, this); // Boons applied to player's group var otherPlayersInGroup = log.PlayerList .Where(p => p.Group == Group && Agent != p.Agent) .ToList(); (_groupBuffs, _groupActiveBuffs) = FinalPlayerBuffs.GetBuffsForPlayers(otherPlayersInGroup, log, AgentItem); // Boons applied to other groups var offGroupPlayers = log.PlayerList.Where(p => p.Group != Group).ToList(); (_offGroupBuffs, _offGroupActiveBuffs) = FinalPlayerBuffs.GetBuffsForPlayers(offGroupPlayers, log, AgentItem); // Boons applied to squad var otherPlayers = log.PlayerList.Where(p => p.Agent != Agent).ToList(); (_squadBuffs, _squadActiveBuffs) = FinalPlayerBuffs.GetBuffsForPlayers(otherPlayers, log, AgentItem); }