Kelsidavis-WoWee/tools/editor/cli_bake.hpp
Kelsi d03c2dad1f refactor(editor): extract zone/project mesh-bake handlers into cli_bake.cpp
Moves the 3D-export bake handlers out of main.cpp:
  --bake-zone-glb     --bake-zone-stl     --bake-zone-obj
  --bake-project-obj  --bake-project-stl  --bake-project-glb

The STL + GLB project bakes share a combined dispatcher (one
function with internal STL-vs-GLB branching) since they walk
the same per-zone asset list and only differ in the output
emission code.

main.cpp drops 12,119 → 11,261 lines (-858). The combined-OR
opener spanning multiple lines created a parse-error fragment
in the extraction; caught + manually fixed before commit
(same pattern as the WOM info attachments/particles/sequences
extraction).
2026-05-09 05:57:25 -07:00

18 lines
571 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the zone & project mesh-bake handlers — these stitch
// every WHM heightfield + WOM/WOB asset in a zone into a single
// 3D file (.obj / .stl / .glb) for external DCC import.
// --bake-zone-glb --bake-zone-stl --bake-zone-obj
// --bake-project-obj --bake-project-stl --bake-project-glb
//
// Returns true if matched; outRc holds the exit code.
bool handleBake(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee