Exemplo n.º 1
0
 public List <IBuff> GetBuffsWithName(string buffName)
 {
     lock (_buffsLock)
     {
         return(BuffList.FindAll(b => b.IsBuffSame(buffName)));
     }
 }
Exemplo n.º 2
0
 public void RemoveBuffsWithName(string buffName)
 {
     lock (_buffsLock)
     {
         BuffList.FindAll(b =>
                          b.IsBuffSame(buffName)).ForEach(b =>
                                                          b.DeactivateBuff());
     }
 }