Kelsidavis-WoWee/tools/editor/cli_info_audio.hpp
Kelsi 0a1ba6f94b refactor(editor): extract --info-{zone,project}-audio into cli_info_audio.cpp
Moves the two audio-config audit handlers (--info-zone-audio,
--info-project-audio) out of main.cpp into a new
cli_info_audio.{hpp,cpp} module. Both surface the music /
day-ambience / night-ambience / volume settings stored in
zone.json so designers can spot zones still missing audio
assignment before a release pass.

main.cpp shrinks by 127 lines (7,053 to 6,926). Drops the
dead `label` lambda inside info-project-audio that the
unused-but-set-variable warning had been flagging. Both
--json output modes preserved.
2026-05-09 07:38:36 -07:00

23 lines
756 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the audio-config audit handlers — print the
// music / day-ambience / night-ambience / volume settings
// stored in zone.json. Useful for spot-checking that a zone
// is wired up to the right audio assets, and for catching
// zones still missing audio assignment before a release pass.
// --info-zone-audio one zone's audio config
// --info-project-audio table across every zone in a project
//
// Both support an optional trailing `--json` flag for
// machine-readable reports.
//
// Returns true if matched; outRc holds the exit code.
bool handleInfoAudio(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee