mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
Moves three mesh-aggregate info handlers (--info-zone-models-total,
--list-zone-meshes-detail, --info-mesh) out of main.cpp into a
new cli_mesh_info.{hpp,cpp} module. The first aggregates
WOM/WOB stats across a zone; the second tabulates per-mesh
metrics sorted by triangle count; the third dumps single-WOM
detail (bounds, version, batches, bones, animations, textures).
main.cpp shrinks by 285 lines (1,826 to 1,541). All three
preserve --json output for capacity-planning pipelines.
21 lines
627 B
C++
21 lines
627 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the mesh-aggregate info handlers — surface
|
|
// vertex/triangle/bone/animation totals across WOM/WOB
|
|
// files, plus per-mesh detail views.
|
|
// --info-zone-models-total aggregate WOM/WOB across a zone
|
|
// --list-zone-meshes-detail per-mesh table sorted by tris
|
|
// --info-mesh single-WOM detail dump
|
|
//
|
|
// All three support --json output.
|
|
//
|
|
// Returns true if matched; outRc holds the exit code.
|
|
bool handleMeshInfo(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|