mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
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).
18 lines
571 B
C++
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
|