mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
Moves the three per-tile zone-manifest handlers (--add-tile,
--remove-tile, --list-tiles) out of main.cpp into a new
cli_tiles.{hpp,cpp} module. Zones can span multiple ADT tiles;
these manage that list — add creates a fresh blank WHM/WOT
pair at the new tile, remove drops the entry + deletes
WHM/WOT/WOC files, list prints the manifest with file-presence
flags.
main.cpp shrinks by 185 lines (4,616 to 4,431).
18 lines
570 B
C++
18 lines
570 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
// Dispatch the per-tile zone-manifest handlers. Zones can span
|
|
// multiple ADT tiles; these manage that list:
|
|
// --add-tile append a new tile (creates blank WHM/WOT pair)
|
|
// --remove-tile drop a tile entry + delete its WHM/WOT/WOC files
|
|
// --list-tiles print the manifest's tile list (with --json mode)
|
|
//
|
|
// Returns true if matched; outRc holds the exit code.
|
|
bool handleTiles(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|