1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

Add minetest.get_mapgen_object to API

This commit is contained in:
kwolekr 2013-06-26 17:19:39 -04:00
parent 2c0b51795e
commit 8aa930f28e
14 changed files with 188 additions and 9 deletions

View file

@ -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);
};