예제 #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);
 }
예제 #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);
     }
 }