mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-09 18:43:51 +00:00
Moves the three open-format world-asset inspectors
(--info-wob, --info-wot, --info-woc) out of main.cpp into a
new cli_world_info.{hpp,cpp} module. Each prints a quick
structural summary (groups / portals / chunk counts /
triangles / bounds) without paying the full deserialization
cost a viewer would.
main.cpp shrinks by 144 lines (6,926 to 6,786). The
--copy-project handler that interleaved between --info-wob
and --info-wot stays inline -- it isn't an inspector and
belongs with project-mutation operations. All --json output
modes preserved.
25 lines
866 B
C++
25 lines
866 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the world-asset inspectors. WOB / WOT (paired
|
|
// with WHM) / WOC are our open replacements for proprietary
|
|
// WMO / ADT-heightmap / ADT-collision data; these print a
|
|
// quick structural summary (groups / portals / chunks /
|
|
// triangles / bounds) without paying the full deserialization
|
|
// cost a viewer would.
|
|
// --info-wob building summary (groups, portals, doodads)
|
|
// --info-wot terrain tile summary (chunk counts, height range)
|
|
// --info-woc collision mesh summary (tris, walkable %, bounds)
|
|
//
|
|
// All three support an optional trailing `--json` flag for
|
|
// machine-readable reports.
|
|
//
|
|
// Returns true if matched; outRc holds the exit code.
|
|
bool handleWorldInfo(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|