summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_env.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-26 17:19:39 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-27 22:35:35 -0400
commit8aa930f28e69f3518831500022988ca2a4b6985d (patch)
tree5699c9b0cd8eaa54f4fadf8dcd7d0ba98a9c3c74 /src/script/lua_api/l_env.h
parent2c0b51795e6fa6747d881f1871c89830abb6e6e8 (diff)
downloadminetest-8aa930f28e69f3518831500022988ca2a4b6985d.tar.gz
minetest-8aa930f28e69f3518831500022988ca2a4b6985d.tar.bz2
minetest-8aa930f28e69f3518831500022988ca2a4b6985d.zip
Add minetest.get_mapgen_object to API
Diffstat (limited to 'src/script/lua_api/l_env.h')
-rw-r--r--src/script/lua_api/l_env.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h
index 24700d27c..8f769e350 100644
--- a/src/script/lua_api/l_env.h
+++ b/src/script/lua_api/l_env.h
@@ -113,6 +113,10 @@ private:
// minetest.get_voxel_manip()
// returns world-specific voxel manipulator
static int l_get_voxel_manip(lua_State *L);
+
+ // minetest.get_mapgen_object(objectname)
+ // returns the requested object used during map generation
+ static int l_get_mapgen_object(lua_State *L);
// minetest.clear_objects()
// clear all objects in the environment
@@ -127,7 +131,9 @@ private:
// minetest.find_path(pos1, pos2, searchdistance,
// max_jump, max_drop, algorithm) -> table containing path
static int l_find_path(lua_State *L);
-
+
+ static struct EnumString es_MapgenObject[];
+
public:
bool Initialize(lua_State *L, int top);
};