aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-17 00:07:45 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-17 00:07:45 -0400
commit3ffb5f5761a83773037869d6f6179353c46a650a (patch)
treeb2f53c4e29283562c7b549ebb6fa6d4614299387 /doc
parent28b2476b11875f0f13335a410f1f00c6a3fd81be (diff)
downloadminetest-3ffb5f5761a83773037869d6f6179353c46a650a.tar.gz
minetest-3ffb5f5761a83773037869d6f6179353c46a650a.tar.bz2
minetest-3ffb5f5761a83773037869d6f6179353c46a650a.zip
Add optional buffer param for bulk data array writes in Lua
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 9249703f6..b4a5fa1d8 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2647,7 +2647,9 @@ for 2D noise, and it must be must be larger than 1 for 3D noise (otherwise
of 3D noise with values starting at `pos={x=,y=,z=}`
* `get2dMap_flat(pos)`: returns a flat `<size.x * size.y>` element array of 2D noise
with values starting at `pos={x=,y=}`
+ * if the param `buffer` is present, this table will be used to store the result instead
* `get3dMap_flat(pos)`: Same as `get2dMap_flat`, but 3D noise
+ * if the param `buffer` is present, this table will be used to store the result instead
### `VoxelManip`
An interface to the `MapVoxelManipulator` for Lua.
@@ -2665,8 +2667,9 @@ The map will be pre-loaded if two positions are passed to either.
the `VoxelManip` at that position
* `set_node_at(pos, node)`: Sets a specific `MapNode` in the `VoxelManip` at
that position
-* `get_data()`: Gets the data read into the `VoxelManip` object
- * returns raw node data is in the form of an array of node content IDs
+* `get_data(buffer)`: Gets the data read into the `VoxelManip` object
+ * returns raw node data in the form of an array of node content IDs
+ * if the param `buffer` is present, this table will be used to store the result instead
* `set_data(data)`: Sets the data contents of the `VoxelManip` object
* `update_map()`: Update map after writing chunk back to map.
* To be used only by `VoxelManip` objects created by the mod itself;