mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): export toast shows open format completeness score (X/5)
This commit is contained in:
parent
a54ce494be
commit
adfa1d7086
1 changed files with 7 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue