Kelsidavis-WoWee/tools/editor/cli_content_info.hpp
Kelsi c519ee3e99
Some checks are pending
Build / Build (arm64) (push) Waiting to run
Build / Build (x86-64) (push) Waiting to run
Build / Build (macOS arm64) (push) Waiting to run
Build / Build (windows-arm64) (push) Waiting to run
Build / Build (windows-x86-64) (push) Waiting to run
Security / CodeQL (C/C++) (push) Waiting to run
Security / Semgrep (push) Waiting to run
Security / Sanitizer Build (ASan/UBSan) (push) Waiting to run
refactor(editor): extract creature/object/quest info into cli_content_info.cpp
Moves 16 contiguous content-inspection handlers out of main.cpp:

  --info-creatures              --info-creatures-by-faction
  --info-creatures-by-level     --info-objects-by-path
  --info-objects-by-type        --info-quests-by-level
  --info-quests-by-xp           --list-creatures
  --list-objects                --list-quests
  --list-quest-objectives       --list-quest-rewards
  --info-quest-graph-stats      --info-creature
  --info-quest                  --info-object

All read JSON sidecars (creatures.json, objects.json, quests.json)
via wowee::editor::{NpcSpawner, ObjectPlacer, QuestEditor} loaders.

main.cpp drops 17,505 → 16,564 lines (-941). Behavior verified
by running --info-creatures (correctly fails with same parse-
error message on a non-zone path).
2026-05-09 03:33:40 -07:00

28 lines
943 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the creature/object/quest content inspection
// handlers (16 in this group):
//
// --info-creatures --info-creatures-by-faction
// --info-creatures-by-level --info-objects-by-path
// --info-objects-by-type --info-quests-by-level
// --info-quests-by-xp --list-creatures
// --list-objects --list-quests
// --list-quest-objectives --list-quest-rewards
// --info-quest-graph-stats --info-creature
// --info-quest --info-object
//
// All read JSON sidecars (zone-spawns.json, zone-objects.json,
// zone-quests.json) via wowee::editor::{NpcSpawner, ObjectPlacer,
// QuestEditor} loaders.
//
// Returns true if matched; outRc holds the exit code.
bool handleContentInfo(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee