Esempio n. 1
0
 public void DropAll(UniversalCoords coords)
 {
     // Drop all items from the workbench
     for (short i = 0; i < SlotCount; i++)
     {
         ItemStack stack = Slots[i];
         if (!stack.IsVoid())
         {
             Owner.Server.DropItem(Owner.World, coords, stack);
             this[i] = ItemStack.Void;
         }
     }
 }
Esempio n. 2
0
 protected void SendUpdate(short slot)
 {
     if (IsOpen && !IsTransactionInProgress && Owner != null)
     {
         ItemStack item = slot < 0 ? Cursor : Slots[slot];
         Owner.Client.SendPacket(new SetSlotPacket
         {
             Item     = item.IsVoid() ? ItemStack.Void : item,
             Slot     = slot,
             WindowId = Handle
         });
     }
 }