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