aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-27 23:09:36 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-27 23:09:36 -0500
commit8334100fe1b1bb40bfebff9ec9780c18fe3fd0c7 (patch)
treecacc08e1c21b30d976e755581d8a6abd93b1b1e9 /doc
parentae2721f2c84183cea4e447009a59ce606601702e (diff)
downloadminetest-8334100fe1b1bb40bfebff9ec9780c18fe3fd0c7.tar.gz
minetest-8334100fe1b1bb40bfebff9ec9780c18fe3fd0c7.tar.bz2
minetest-8334100fe1b1bb40bfebff9ec9780c18fe3fd0c7.zip
LuaVoxelManip: Add option to allocate blank data
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 4 insertions, 0 deletions
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}