feat(editor): export toast shows open format completeness score (X/5)

This commit is contained in:
Kelsi 2026-05-05 10:40:15 -07:00
parent a54ce494be
commit adfa1d7086

View file

@ -810,8 +810,13 @@ void EditorApp::exportZone(const std::string& outputDir) {
if (npcSpawner_.spawnCount() > 0) fileCount++; if (npcSpawner_.spawnCount() > 0) fileCount++;
if (questEditor_.questCount() > 0) fileCount++; if (questEditor_.questCount() > 0) fileCount++;
showToast("Exported " + std::to_string(fileCount) + " files to " + base); // Validate open format completeness
LOG_INFO("Zone exported to: ", base, " (", fileCount, " files)"); auto validation = ContentPacker::validateZone(base);
int score = validation.openFormatScore();
showToast("Exported " + std::to_string(fileCount) + " files (" +
std::to_string(score) + "/5 open format)");
LOG_INFO("Zone exported to: ", base, " (", fileCount, " files, open score: ",
score, "/5 — ", validation.summary(), ")");
} }
void EditorApp::exportContentPack(const std::string& destPath) { void EditorApp::exportContentPack(const std::string& destPath) {