From 4a92df6ff021f1bfa645f97fd551c648d1ef8e3b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 4 Apr 2011 15:13:19 +0300 Subject: Chests work now! --- src/client.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/client.h') 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 -- cgit v1.2.3