예제 #1
0
 /// <summary>
 /// 通过状态BUFF的类型获取当前BUFF对象
 /// </summary>
 public BuffBase GetStateBuff(eBuffState type)
 {
     for (int i = 0; i < m_buffList.Count; i++)
     {
         BuffBase buff = m_buffList[i];
         if (buff.IsStateBuff() && buff.GetVal1() == (int)type)
         {
             return(buff);
         }
     }
     return(null);
 }
예제 #2
0
 /// <summary>
 /// 包含状态类BUFF
 /// </summary>
 public bool bStateBuff(eBuffState type)
 {
     if (m_buffList == null)
     {
         return(false);
     }
     for (int i = 0; i < m_buffList.Count; i++)
     {
         BuffBase buff = m_buffList[i];
         if (buff.IsStateBuff() && buff.GetVal1() == (int)type)
         {
             return(true);
         }
     }
     return(false);
 }