mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract zone/project metadata info into cli_zone_info.cpp
Moves the three zone & project metadata inspection handlers out of main.cpp: --info-zone (single zone.json print) --info-zone-overview (high-level zone digest) --info-project-overview (per-zone summary table for a project) All three load zone.json via wowee::editor::ZoneManifest. main.cpp drops 16,564 → 16,321 lines (-243). Behavior verified by re-running --info-zone + --info-project-overview against existing test zones.
This commit is contained in:
parent
0a5f508f4e
commit
67ede85f7f
4 changed files with 315 additions and 247 deletions
19
tools/editor/cli_zone_info.hpp
Normal file
19
tools/editor/cli_zone_info.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the zone & project metadata inspection handlers:
|
||||
// --info-zone (single zone.json print)
|
||||
// --info-zone-overview (high-level zone digest)
|
||||
// --info-project-overview (per-zone summary table for a project)
|
||||
//
|
||||
// All read zone.json via wowee::editor::ZoneManifest::loadFromFile.
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleZoneInfo(int& i, int argc, char** argv, int& outRc);
|
||||
|
||||
} // namespace cli
|
||||
} // namespace editor
|
||||
} // namespace wowee
|
||||
Loading…
Add table
Add a link
Reference in a new issue