Beispiel #1
0
        public virtual void Cancel(Func <IImageLoaderTask, bool> predicate)
        {
            lock (_lock)
            {
                foreach (var task in PendingTasks.Where(p => predicate(p)))
                {
                    task?.Cancel();
                }

                SimilarTasks.RemoveAll(predicate);
            }
        }
Beispiel #2
0
 public void RemoveEquipment(NitroxId id)
 {
     equippedItems.RemoveAll(item => item.ItemId == id);
 }
Beispiel #3
0
 public void RemoveModule(NitroxId id)
 {
     modules.RemoveAll(item => item.ItemId == id);
 }