Kelsidavis-WoWee/tools/editor/cli_wom_info.hpp
Kelsi efe0a91335 refactor(editor): extract WOM info handlers into cli_wom_info.cpp
Moves the WOM model inspection commands out of main.cpp:

  --info               (bare WOM summary)
  --info-batches       (per-batch material info)
  --info-textures      (texture path list)
  --info-doodads       (WOB doodad set / instance list)
  --info-attachments   ⎫ combined handler with same M2 load +
  --info-particles     ⎬ skin merge but different sub-array
  --info-sequences     ⎭ iteration
  --info-bones         (bone hierarchy)
  --export-bones-dot   (Graphviz DOT output)

main.cpp drops 20,005 → 19,446 lines (-559). Behavior verified
by running --info, --info-batches, --info-textures on a fresh
WOM. Build error during extraction (combined-or handler header
spanned 4 lines, the transform script only stripped the first;
also missing #include for WoweeBuildingLoader) caught by build
and fixed before commit.
2026-05-09 01:18:09 -07:00

23 lines
774 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the WOM model inspection handlers:
// --info (bare WOM summary)
// --info-batches (per-batch material info)
// --info-textures (texture path list)
// --info-doodads (doodad set / instance list)
// --info-attachments } combined handler under the hood —
// --info-particles } same M2 load + skin merge,
// --info-sequences } different sub-array iteration
// --info-bones (bone hierarchy)
// --export-bones-dot (Graphviz DOT output)
//
// Returns true if matched; outRc holds the exit code.
bool handleWomInfo(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee