From b65b5a758d958d1af9349dde0cdd7e1d54b2ada0 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 5 May 2026 11:40:56 -0700 Subject: [PATCH] feat(editor): zone manifest includes ISO export timestamp for tracking --- tools/editor/zone_manifest.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/editor/zone_manifest.cpp b/tools/editor/zone_manifest.cpp index 72b84f86..af46bcc7 100644 --- a/tools/editor/zone_manifest.cpp +++ b/tools/editor/zone_manifest.cpp @@ -2,6 +2,8 @@ #include "core/logger.hpp" #include #include +#include +#include namespace wowee { namespace editor { @@ -21,7 +23,15 @@ bool ZoneManifest::save(const std::string& path) const { f << " \"baseHeight\": " << baseHeight << ",\n"; f << " \"hasCreatures\": " << (hasCreatures ? "true" : "false") << ",\n"; f << " \"description\": \"" << description << "\",\n"; - f << " \"editorVersion\": \"0.2.0\",\n"; + f << " \"editorVersion\": \"0.9.0\",\n"; + // Add export timestamp + { + auto now = std::chrono::system_clock::now(); + auto time = std::chrono::system_clock::to_time_t(now); + char timeBuf[32]; + std::strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%dT%H:%M:%S", std::localtime(&time)); + f << " \"exportTime\": \"" << timeBuf << "\",\n"; + } f << " \"tiles\": ["; for (size_t i = 0; i < tiles.size(); i++) { f << "[" << tiles[i].first << "," << tiles[i].second << "]";