diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-04 15:13:19 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-04 15:13:19 +0300 |
commit | 4a92df6ff021f1bfa645f97fd551c648d1ef8e3b (patch) | |
tree | 6a1d12a56a2a57dbd84e3e660241916f3e1a2fe0 /src/client.h | |
parent | 9e683fff50ba4fef407613adf8407b31adca4596 (diff) | |
download | hax-minetest-server-4a92df6ff021f1bfa645f97fd551c648d1ef8e3b.tar.gz hax-minetest-server-4a92df6ff021f1bfa645f97fd551c648d1ef8e3b.zip |
Chests work now!
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index fdb98d28d..611116d45 100644 --- a/src/client.h +++ b/src/client.h @@ -224,7 +224,7 @@ struct IncomingPacket }; #endif -class Client : public con::PeerHandler +class Client : public con::PeerHandler, public InventoryManager { public: /* @@ -303,6 +303,11 @@ public: // Copies the inventory of the local player to parameter void getLocalInventory(Inventory &dst); + InventoryContext *getInventoryContext(); + + Inventory* getInventory(InventoryContext *c, std::string id); + void inventoryAction(InventoryAction *a); + // Gets closest object pointed by the shootline // Returns NULL if not found MapBlockObject * getSelectedObject( @@ -438,6 +443,8 @@ private: // The seed returned by the server in TOCLIENT_INIT is stored here u64 m_map_seed; + + InventoryContext m_inventory_context; }; #endif // !SERVER |