1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Chests work now!

This commit is contained in:
Perttu Ahola 2011-04-04 15:13:19 +03:00
parent 9e683fff50
commit 4a92df6ff0
17 changed files with 519 additions and 147 deletions

View file

@ -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