feat(editor): zone map image export (colored top-down PNG)

- exportZoneMap(): renders terrain as colored top-down image with
  height-based coloring (blue lowlands → green plains → brown hills →
  white peaks), water overlay, hole visualization, doodad markers
- Configurable resolution (128-2048px, default 512)
- Auto-exported as zone_map.png alongside other assets on save
- File > Export Zone Map menu with resolution slider
- Useful for documentation, server admin tools, custom map websites
This commit is contained in:
Kelsi 2026-05-05 16:01:29 -07:00
parent 998d09e119
commit 84a431880e
4 changed files with 121 additions and 0 deletions

View file

@ -968,6 +968,7 @@ void EditorApp::exportZone(const std::string& outputDir) {
WoweeTerrain::exportHeightmapPreview(terrain_, openBase + "_heightmap.png");
// Also save heightmap as zone thumbnail for content pack browsing
WoweeTerrain::exportHeightmapPreview(terrain_, base + "/thumbnail.png");
WoweeTerrain::exportZoneMap(terrain_, base + "/zone_map.png", 512);
// Write zone info README
{