mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
LuaVoxelManip: Add option to allocate blank data
This commit is contained in:
parent
ae2721f2c8
commit
8334100fe1
6 changed files with 60 additions and 4 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue