public List <CombatItem> GetCastDataById(long key) { if (CastDataById.TryGetValue(key, out List <CombatItem> res)) { return(res); } return(new List <CombatItem>());; }
public List <CombatItem> GetSkills(int srcInstid, long skillId, long start, long end) { if (CastDataById.TryGetValue(skillId, out List <CombatItem> data)) { return(data.Where(x => x.SrcInstid == srcInstid && x.Time >= start && x.Time <= end && x.IsActivation.StartCasting()).ToList()); } return(new List <CombatItem>()); }
public int GetSkillCount(int srcInstid, long skillId, long start, long end) { if (CastDataById.TryGetValue(skillId, out List <CombatItem> data)) { return(data.Count(x => x.SrcInstid == srcInstid && x.Time >= start && x.Time <= end && x.IsActivation.IsCasting())); } return(0); }