Esempio n. 1
0
 //检查是否含有特定效果
 public static bool ContainEffect(IBuffContainer c, eBuff_Effect id)
 {
     foreach (Buff item in c.getBuffList())
     {
         if (item.my_buff_info.effect == id)
         {
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
        public static List <Buff> getBuff_by_ID(IBuffContainer c, eBuff_Effect id)
        {
            List <Buff> res = new List <Buff>();

            foreach (Buff item in c.getBuffList())
            {
                if (item.my_buff_info.effect == id)
                {
                    res.Add(item);
                }
            }
            return(res);
        }