Пример #1
0
 public void moveFromTo(Vector2 first, Vector2 last, Inventory reciever)
 {
     if (first.X < 0 || first.X >= width || first.Y < 0 || first.Y >= height)
     {
         return;
     }
     reciever.setItem(getItem((int) first.X, (int) first.Y), (int) last.X, (int) last.Y);
 }
Пример #2
0
 public GuiInventory(Inventory inventory)
 {
     this.inventory = inventory;
     this.isHidden = true;
 }