mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract creature/object/quest info into cli_content_info.cpp
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
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
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).
This commit is contained in:
parent
6b1b901bc5
commit
c519ee3e99
4 changed files with 1094 additions and 946 deletions
28
tools/editor/cli_content_info.hpp
Normal file
28
tools/editor/cli_content_info.hpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue