Example #1
0
 public bool HasItems(Game_Pawn aPawn, Content_Inventory aItems)
 {
     if (aPawn.itemManager != null && !aItems.Empty())
     {
         if (aItems.HasItemsInInventory(aPawn))
         {
             return(true);
         }
     }
     return(false);
 }
Example #2
0
 public bool RemoveItems(Game_Pawn aPawn, Content_Inventory aItems)
 {
     if (aPawn.itemManager != null && aItems != null &&
         !aItems.Empty())
     {
         return(aItems.RemoveFromInventory(aPawn));
     }
     else
     {
         return(false);
     }
 }