Exemplo n.º 1
0
 public bool AddFromContainer(IChest container, string actorId, string objId, out ServerInventoryItem obj)
 {
     obj = null;
     if (container.TryGetObject(actorId, objId, out obj))
     {
         container.TryRemoveObject(actorId, objId);
         return(Add(obj.Object, obj.Count));
     }
     return(false);
 }