diff options
author | Kahrl <kahrl@gmx.net> | 2012-01-22 00:49:02 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-22 17:31:20 +0200 |
commit | b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2 (patch) | |
tree | b47e57a55e6a2787464e49ffe172592b956c5a96 /src/inventory.h | |
parent | 1efdc36b22532807d21a0beac94524e3eacfe7bc (diff) | |
download | minetest-b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2.tar.gz minetest-b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2.tar.bz2 minetest-b4dd5d3bd7d2152fdf02e0e7422b1305caf151f2.zip |
Client-side prediction of inventory changes, and some inventory menu fixes
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h index 3f5d83589..fcac5f647 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -233,6 +233,10 @@ public: // Similar to takeItem, but keeps the slot intact. ItemStack peekItem(u32 i, u32 peekcount) const; + // Move an item to a different list (or a different stack in the same list) + // count is the maximum number of items to move (0 for everything) + void moveItem(u32 i, InventoryList *dest, u32 dest_i, u32 count = 0); + private: std::vector<ItemStack> m_items; u32 m_size; |