コード例 #1
0
 public bool IsContain(stMultiAttackDownMagicUserCmd_S data, long uid)
 {
     if (damageDic.ContainsKey(uid))
     {
         List <stMultiAttackDownMagicUserCmd_S> damageList = damageDic[uid];
         return(damageList.Contains(data));
     }
     return(false);
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
        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);
        }