Kelsidavis-WoWee/tools/editor/cli_mesh_info.hpp
Kelsi 710fdf9b35 refactor(editor): extract WOM/WOB info handlers into cli_mesh_info.cpp
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.
2026-05-09 09:40:03 -07:00

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