summaryrefslogtreecommitdiffstats
path: root/source/cItem.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cItem.h')
-rw-r--r--source/cItem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/cItem.h b/source/cItem.h
index edf3468ac..dde0c649b 100644
--- a/source/cItem.h
+++ b/source/cItem.h
@@ -3,6 +3,11 @@
#include "Defines.h"
#include "BlockID.h"
+namespace Json
+{
+ class Value;
+};
+
class cItem //tolua_export
{ //tolua_export
public:
@@ -27,6 +32,10 @@ public:
{ //tolua_export
return ( (m_ItemID == a_Item.m_ItemID) && (m_ItemHealth == a_Item.m_ItemHealth) );
} //tolua_export
+
+ void GetJson( Json::Value & a_OutValue ); //tolua_export
+ void FromJson( const Json::Value & a_Value ); //tolua_export
+
ENUM_ITEM_ID m_ItemID; //tolua_export
char m_ItemCount; //tolua_export
short m_ItemHealth; //tolua_export