internal override Dictionary <long, FinalActorBuffs>[] ComputeBuffs(ParsedEvtcLog log, long start, long end, BuffEnum type) { switch (type) { case BuffEnum.Group: var otherPlayersInGroup = log.PlayerList .Where(p => p.Group == Group && this != p) .ToList(); return(FinalActorBuffs.GetBuffsForPlayers(otherPlayersInGroup, log, AgentItem, start, end)); case BuffEnum.OffGroup: var offGroupPlayers = log.PlayerList.Where(p => p.Group != Group).ToList(); return(FinalActorBuffs.GetBuffsForPlayers(offGroupPlayers, log, AgentItem, start, end)); case BuffEnum.Squad: var otherPlayers = log.PlayerList.Where(p => p != this).ToList(); return(FinalActorBuffs.GetBuffsForPlayers(otherPlayers, log, AgentItem, start, end)); case BuffEnum.Self: default: return(FinalActorBuffs.GetBuffsForSelf(log, this, start, end)); } }
internal virtual Dictionary <long, FinalActorBuffs>[] ComputeBuffs(ParsedEvtcLog log, long start, long end, BuffEnum type) { Dictionary <long, FinalActorBuffs>[] empty = { new Dictionary <long, FinalActorBuffs>(), new Dictionary <long, FinalActorBuffs>() }; switch (type) { case BuffEnum.Group: return(empty); case BuffEnum.OffGroup: return(empty); case BuffEnum.Squad: var otherPlayers = log.PlayerList.Where(p => p != this).ToList(); return(FinalActorBuffs.GetBuffsForPlayers(otherPlayers, log, AgentItem, start, end)); case BuffEnum.Self: default: return(FinalActorBuffs.GetBuffsForSelf(log, this, start, end)); } }