Пример #1
0
 public void DelBuff(BuffEffectTypes type)
 {
     foreach (var buff in buffDict.Values)
     {
         if (BuffBook.HasEffect(buff.Id, type))
         {
             buffDict.Remove(buff.Id);
             return;
         }
     }
 }
Пример #2
0
 public bool HasBuff(BuffEffectTypes type)
 {
     foreach (var buff in buffDict.Values)
     {
         if (BuffBook.HasEffect(buff.Id, type))
         {
             return(true);
         }
     }
     return(false);
 }
Пример #3
0
 public static bool HasEffect(int id, BuffEffectTypes etype)
 {
     BuffConfig buffConfig = ConfigData.BuffDict[id];
     foreach (int eff in buffConfig.Effect)
     {
         if ((int)etype == eff)
         {
             return true;
         }
     }
     return false;
 }
Пример #4
0
        public static bool HasEffect(int id, BuffEffectTypes etype)
        {
            BuffConfig buffConfig = ConfigData.BuffDict[id];

            foreach (int eff in buffConfig.Effect)
            {
                if ((int)etype == eff)
                {
                    return(true);
                }
            }
            return(false);
        }
Пример #5
0
 public void DelBuff(BuffEffectTypes type)
 {
     foreach (var buff in buffDict.Values)
     {
         if (BuffBook.HasEffect(buff.Id, type))
         {
             buffDict.Remove(buff.Id);
             return;
         }
     }            
 }
Пример #6
0
 public bool HasBuff(BuffEffectTypes type)
 {
     foreach (var buff in buffDict.Values)
     {
         if (BuffBook.HasEffect(buff.Id,type))
         {
             return true;
         }
     }
     return false;
 }