mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
refactor(editor): extract --info-{zone,project}-tree into cli_info_tree.cpp
Moves the two tree-style content browser handlers
(--info-zone-tree, --info-project-tree) out of main.cpp into
a new cli_info_tree.{hpp,cpp} module. Both render
Unix-`tree`-style hierarchical views — one drilling into a
single zone (manifest, tiles, creatures, objects, quests,
files) and one giving a bird's-eye view of every zone in a
project with bake/viewer status.
main.cpp shrinks by 201 lines (8,140 to 7,939). The remaining
info-zone/-project-* pairs (bytes, extents, water, density,
audio) form the next natural extraction batch.
This commit is contained in:
parent
b783a62289
commit
7950648943
4 changed files with 273 additions and 206 deletions
20
tools/editor/cli_info_tree.hpp
Normal file
20
tools/editor/cli_info_tree.hpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
namespace wowee {
|
||||
namespace editor {
|
||||
namespace cli {
|
||||
|
||||
// Dispatch the tree-style content browser handlers — Unix
|
||||
// `tree`-style hierarchical views of zone and project contents
|
||||
// (manifest, tiles, creatures, objects, quests, files, baked
|
||||
// artifacts). Designed for at-a-glance comprehension of what
|
||||
// lives in a given directory without opening the JSON files.
|
||||
// --info-zone-tree drill into one zone's contents
|
||||
// --info-project-tree bird's-eye view of every zone in a project
|
||||
//
|
||||
// Returns true if matched; outRc holds the exit code.
|
||||
bool handleInfoTree(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