Access to tile elevation value
Posted: Sun May 12, 2019 5:13 am
In 0.14 existed the function LuaSurface::get_tileproperties(x, y) → TileProperties and the struct TileProperties::elevation. The function was removed in 0.15 . TileProperties and its elevation property still exist in the 0.17 API documentation. Though it seems not possible to access it for a given tile.
Does a tiles elevation value still exist in 0.17 after chunk generation? If so, would it be possible to implement a read access to it? That is my main request, as this would allow to work with the heightmap/the elevation values generated during chunk generation.
As an additional, would it also be possible to implement write access? Changing that value would make the engine change the tiles LuaTilePrototype to one that would have been used during chunk generation for that elevation. This additional request would enable modders to easily change water to land and vice versa and to switch between different LuaTilePrototypes for water (water/deepwater).
Does a tiles elevation value still exist in 0.17 after chunk generation? If so, would it be possible to implement a read access to it? That is my main request, as this would allow to work with the heightmap/the elevation values generated during chunk generation.
As an additional, would it also be possible to implement write access? Changing that value would make the engine change the tiles LuaTilePrototype to one that would have been used during chunk generation for that elevation. This additional request would enable modders to easily change water to land and vice versa and to switch between different LuaTilePrototypes for water (water/deepwater).