From 8334100fe1b1bb40bfebff9ec9780c18fe3fd0c7 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 27 Dec 2014 23:09:36 -0500 Subject: LuaVoxelManip: Add option to allocate blank data --- doc/lua_api.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index be17bb288..0ceac1fca 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1594,6 +1594,8 @@ minetest.get_perlin(seeddiff, octaves, persistence, scale) ^ Return world-specific perlin noise (int(worldseed)+seeddiff) minetest.get_voxel_manip() ^ Return voxel manipulator object +minetest.get_voxel_manip(p1, p2) +^ Return voxel manipulator object with blank data preallocated minetest.set_gen_notify(flags, {deco_ids}) ^ Set the types of on-generate notifications that should be collected ^ flags is a flag field with the available flags: @@ -2192,6 +2194,7 @@ methods: VoxelManip: An interface to the MapVoxelManipulator for Lua - Can be created via VoxelManip() - Also minetest.get_voxel_manip() +- Specify a pmin, pmax in either to allocate a blank chunk of data prefilled with cignore methods: - read_from_map(p1, p2): Reads a chunk of map from the map containing the region formed by p1 and p2. ^ returns actual emerged pmin, actual emerged pmax @@ -2223,6 +2226,7 @@ methods: - update_liquids(): Update liquid flow - was_modified(): Returns true or false if the data in the voxel manipulator had been modified since the last read from map, due to a call to minetest.set_data() on the loaded area elsewhere +- get_emerged_area(): Returns actual emerged pmin, actual emerged pmax VoxelArea: A helper class for voxel areas - Can be created via VoxelArea:new{MinEdge=pmin, MaxEdge=pmax} -- cgit v1.2.3