summaryrefslogtreecommitdiffstats
path: root/source/cInventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cInventory.h')
-rw-r--r--source/cInventory.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/cInventory.h b/source/cInventory.h
index cebcf346b..7d98af853 100644
--- a/source/cInventory.h
+++ b/source/cInventory.h
@@ -4,6 +4,11 @@
#include "cWindowOwner.h"
#include "FileDefine.h"
+namespace Json
+{
+ class Value;
+};
+
class cItem;
class cClientHandle;
class cPlayer;
@@ -25,8 +30,8 @@ public:
bool RemoveItem( cItem & a_Item ); //tolua_export
void DrawInventory();
- void WriteToFile(FILE* a_File);
- bool LoadFromFile(FILE* a_File);
+ void SaveToJson(Json::Value & a_Value);
+ bool LoadFromJson(Json::Value & a_Value);
void SendWholeInventory( cClientHandle* a_Client );