From 103173fc9b4fcb4c0fded2a93d5cbb8f0bea896e Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 6 Dec 2011 15:21:56 +0200 Subject: Add InvRef and InvStack (currently untested and unusable) --- src/server.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index ac8938175..129b4ac81 100644 --- a/src/server.h +++ b/src/server.h @@ -33,6 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "serialization.h" // For SER_FMT_VER_INVALID #include "serverremoteplayer.h" #include "mods.h" +#include "inventorymanager.h" struct LuaState; typedef struct lua_State lua_State; class IWritableToolDefManager; @@ -413,8 +414,8 @@ public: /* Shall be called with the environment and the connection locked. */ - Inventory* getInventory(InventoryContext *c, std::string id); - void inventoryModified(InventoryContext *c, std::string id); + Inventory* getInventory(const InventoryLocation &loc); + void setInventoryModified(const InventoryLocation &loc); // Connection must be locked when called std::wstring getStatusString(); -- cgit v1.2.3