Exemplo n.º 1
0
 public bool IsHasBuffStatus(eBuffStatusType type)
 {
     if (type <= eBuffStatusType.None || type >= eBuffStatusType.MAX)
     {
         return(false);
     }
     return(mBuffStatus[(int)type]);
 }
Exemplo n.º 2
0
        /// <summary>
        /// 移除指定类型的所有buff状态
        /// </summary>
        public bool RemoveBufferStatus(eBuffStatusType type)
        {
            List <Buff> buffers = mBuffers.Values.ToList();

            for (var i = 0; i < buffers.Count; i++)
            {
                if (buffers[i].Data.type == (int)type)
                {
                    DeleteBuffer(buffers[i].Id);
                }
            }
            buffers.Clear();
            return(true);
        }