Example #1
0
 public void CloseWindow(bool clientInitiated = false)
 {
     if (!clientInitiated)
     {
         QueuePacket(new CloseWindowPacket(CurrentWindow.ID));
     }
     CurrentWindow.CopyToInventory(Inventory);
     CurrentWindow = InventoryWindow;
 }