feat(editor): stamp persistence, WCP file preview, enriched stats

- Terrain stamps save/load to JSON: reuse terrain features across zones
  and sessions. Save/Load buttons in Sculpt > Stamp/Clone panel
- WCP Inspect now shows full file breakdown: terrain/model/building/
  texture/data counts with total size. Powered by readInfo file list
  parsing with auto-categorization by extension
- stats.json now includes chunk count, triangle count, tile count, and
  editor version alongside existing object/NPC/quest/texture counts
- Fix unprotected std::stoi in custom zone WOT filename parser
This commit is contained in:
Kelsi 2026-05-05 14:33:52 -07:00
parent d3e8f999c7
commit 7473728360
5 changed files with 117 additions and 10 deletions

View file

@ -1040,6 +1040,13 @@ void EditorApp::exportZone(const std::string& outputDir) {
sj["textures"] = usedTextures.size();
sj["openFormatScore"] = score;
sj["formats"] = validation.summary();
sj["tiles"] = static_cast<int>(manifest.tiles.size());
auto* tr = viewport_.getTerrainRenderer();
if (tr) {
sj["chunks"] = tr->getChunkCount();
sj["triangles"] = tr->getTriangleCount();
}
sj["editorVersion"] = "1.0.0";
std::ofstream stats(base + "/stats.json");
if (stats) stats << sj.dump(2) << "\n";
}