public bool IsContain(stMultiAttackDownMagicUserCmd_S data, long uid) { if (damageDic.ContainsKey(uid)) { List <stMultiAttackDownMagicUserCmd_S> damageList = damageDic[uid]; return(damageList.Contains(data)); } return(false); }
public void RemoveDamage(stMultiAttackDownMagicUserCmd_S data, long uid) { if (damageDic.ContainsKey(uid)) { List <stMultiAttackDownMagicUserCmd_S> damageList = damageDic[uid]; if (damageList.Contains(data)) { damageList.Remove(data); } } }
public bool HasContain(HitNode node, long uid) { if (damageDic.ContainsKey(uid)) { List <stMultiAttackDownMagicUserCmd_S> damageList = damageDic[uid]; for (int i = 0; i < damageList.Count; i++) { stMultiAttackDownMagicUserCmd_S cmd = damageList[i]; if (cmd.tmpid == node.m_uDamageID) { //RemoveDamage( cmd ,uid); return(true); } } } return(false); }