Example #1
0
 public bool TryMoveObjectToBag(SObject item, int quantity, IList <Item> itemSourceContainer, ItemBag target, out int movedQty, bool playSoundEffect)
 {
     if (target == null || item == null || itemSourceContainer == null)
     {
         movedQty = 0;
         return(false);
     }
     else
     {
         return(target.MoveToBag(item, quantity, out movedQty, playSoundEffect, itemSourceContainer));
     }
 }
Example #2
0
 public bool TryMoveObjectsToBag(List <SObject> items, List <int> quantities, IList <Item> itemsSourceContainer, ItemBag target, out int totalMovedQty, bool playSoundEffect)
 {
     if (target == null || items == null || quantities == null || itemsSourceContainer == null)
     {
         totalMovedQty = 0;
         return(false);
     }
     else
     {
         return(target.MoveToBag(items, quantities, out totalMovedQty, playSoundEffect, itemsSourceContainer));
     }
 }