Biome API: Add decoration flags for underground decorations
authorparamat <paramat@users.noreply.github.com>
Wed, 11 Oct 2017 00:06:40 +0000 (01:06 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sun, 29 Oct 2017 12:02:55 +0000 (12:02 +0000)
commit241fe649f7357271d5c02c3d5f7a987ad7811d6d
tree59ec80835fa44387a3ae4acffc0dc3ef4c712ac1
parenta637107a4e81be88938d68df4deae50e68cf2cd8
Biome API: Add decoration flags for underground decorations

Add "all_floors" and "all_ceilings" flags for simple and schematic
decorations. Decorations are placed on all floor and/or ceiling surfaces.
Decorations are placed before dungeon generation so placement in dungeons
is not possible.

Add 'getSurfaces()' function to mapgen.cpp that returns 2 arrays of y
coordinates for all floor and ceiling surfaces in a specified node column.

Move 'getHeight()' checks into DecoSimple and DecoSchematic. Delete
'getHeight()' functions.
doc/lua_api.txt
src/mapgen.cpp
src/mapgen.h
src/mg_decoration.cpp
src/mg_decoration.h