mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
Moves the two zone discovery / aggregation handlers
(--list-zones, --zone-stats) out of main.cpp into a new
cli_zone_list.{hpp,cpp} module. The first quickly enumerates
zones across the standard locations (custom_zones, output);
the second walks a project dir computing tile / creature /
quest / per-format byte totals with a per-zone breakdown
table — useful for content-pack release notes and capacity
planning.
main.cpp shrinks by 191 lines (3,624 to 3,433). Both --json
output modes preserved.
21 lines
650 B
C++
21 lines
650 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the zone discovery / aggregation handlers — list
|
|
// every zone in the standard locations, or compute project-
|
|
// wide tile / creature / quest / byte totals.
|
|
// --list-zones quick name+dir listing across custom_zones/output
|
|
// --zone-stats project-wide aggregate with per-zone breakdown
|
|
//
|
|
// Both support an optional trailing `--json` flag for
|
|
// machine-readable reports.
|
|
//
|
|
// Returns true if matched; outRc holds the exit code.
|
|
bool handleZoneList(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|