-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
enhancementNew feature or requestNew feature or request
Description
There should be Editor.getHeight/Editor.getHeightGlobal methods to get the height at a position, in the former case taking the transform into account.
There should probably be caching functionality similar to Editor.worldSlice/Editor.worldSliceDecay: a system to mark certain heights as "outdated" or update them in a cache (though updating may be costly for the more complex heightmaps). Furthermore, since GDMC HTTP now has a GET /heightmaps endpoint (for a long time already...), it may be possible to avoid getting an entire WorldSlice in some cases.
Some questions on how the height retrieval functions should work still need to be answered:
- What if no WorldSlice is loaded? Should we raise an exception? Make a costly
GET /heightmapscall (every time)? - How do we make it possible to explicitly request only the heightmaps and not the rest of the chunk data? Naturally, we don't want to do this on every
getHeightcall. Should there be an explicit function for it? Should thegetHeightfunction transparently request the heightmap if it wasn't loaded yet? In the last case, what range should it target?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request