aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-04 15:13:19 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-04 15:13:19 +0300
commit4a92df6ff021f1bfa645f97fd551c648d1ef8e3b (patch)
tree6a1d12a56a2a57dbd84e3e660241916f3e1a2fe0 /src/server.h
parent9e683fff50ba4fef407613adf8407b31adca4596 (diff)
downloadhax-minetest-server-4a92df6ff021f1bfa645f97fd551c648d1ef8e3b.tar.gz
hax-minetest-server-4a92df6ff021f1bfa645f97fd551c648d1ef8e3b.zip
Chests work now!
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index f997828b2..f1c7b6e01 100644
--- a/src/server.h
+++ b/src/server.h
@@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "utility.h"
#include "porting.h"
#include "map.h"
+#include "inventory.h"
struct QueuedBlockEmerge
{
@@ -342,7 +343,8 @@ private:
u32 m_excess_gotblocks;
};
-class Server : public con::PeerHandler, public MapEventReceiver
+class Server : public con::PeerHandler, public MapEventReceiver,
+ public InventoryManager
{
public:
/*
@@ -382,6 +384,12 @@ public:
*/
void onMapEditEvent(MapEditEvent *event);
+ /*
+ Shall be called with the environment and the connection locked.
+ */
+ Inventory* getInventory(InventoryContext *c, std::string id);
+ void inventoryModified(InventoryContext *c, std::string id);
+
private:
// Virtual methods from con::PeerHandler.