Beispiel #1
0
 public bool TryGetByViewId(int viewId, out PickupCreator foundPickup) {
     foreach (var pickup in setPickups) {
         if (pickup.GetViewId() != viewId) continue;
         foundPickup = pickup;
         return true;
     }
     foundPickup = null;
     return false;
 }
Beispiel #2
0
 public void PickupUnset(PickupCreator pickup)
 {
     if (setPickups.Contains(pickup))
     {
         setPickups.Remove(pickup);
     }
     if (!unsetPickups.Contains(pickup))
     {
         unsetPickups.Add(pickup);
     }
 }
Beispiel #3
0
 public bool TryGetByViewId(int viewId, out PickupCreator foundPickup)
 {
     foreach (var pickup in setPickups)
     {
         if (pickup.GetViewId() != viewId)
         {
             continue;
         }
         foundPickup = pickup;
         return(true);
     }
     foundPickup = null;
     return(false);
 }
Beispiel #4
0
 public void PickupUnset(PickupCreator pickup) {
     if (setPickups.Contains(pickup)) setPickups.Remove(pickup);
     if (!unsetPickups.Contains(pickup)) unsetPickups.Add(pickup);
 }