From 1ecf51a13f434f5cbc0f6ccc1b9a2ac6402a895f Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 2 Sep 2013 02:01:49 +0200 Subject: Add minetest.parse_json, engine.parse_json --- src/script/common/c_content.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/script/common/c_content.h') diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index 6d1dfe1d5..27019e29e 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -39,6 +39,8 @@ extern "C" { #include "irrlichttypes_bloated.h" #include "util/string.h" +namespace Json { class Value; } + struct MapNode; class INodeDefManager; struct PointedThing; @@ -145,6 +147,10 @@ bool read_schematic (lua_State *L, int index, void luaentity_get (lua_State *L,u16 id); +bool push_json_value (lua_State *L, + const Json::Value &value, + int nullindex); + extern struct EnumString es_TileAnimationType[]; #endif /* C_CONTENT_H_ */ -- cgit v1.2.3