mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 19:13:52 +00:00
feat(editor): add WMAC JSON round-trip (export/import sidecar)
Closes the JSON round-trip gap on the macro catalog format shipped this batch. --export-wmac-json emits all 8 scalar fields plus a dual int + name form for macroKind. The macroBody string is dumped verbatim — multi-line bodies preserve embedded '\n' as JSON-escape sequences which most editors render readably (e.g. nlohmann pretty-print expands \n to actual newlines in the rendered output). --import-wmac-json defaults maxLength to 255 (the WoW canonical UI cap) when omitted. Verified byte-identical round-trip on all three preset emitters (starter / combat multi-line bodies / utility). 821 documented CLI flags.
This commit is contained in:
parent
a81e69c78d
commit
bf43259e10
3 changed files with 138 additions and 0 deletions
|
|
@ -1555,6 +1555,10 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" Print WMAC entries (id / kind / classMask / bindKey / maxLen / body length / name)\n");
|
||||
std::printf(" --validate-wmac <wmac-base> [--json]\n");
|
||||
std::printf(" Static checks: id+name+body required, kind 0..4, body within maxLength, body starts with '/' or '#', SystemSlash + classMask warning\n");
|
||||
std::printf(" --export-wmac-json <wmac-base> [out.json]\n");
|
||||
std::printf(" Export binary .wmac to a human-editable JSON sidecar (defaults to <base>.wmac.json; multi-line bodies escape \\n)\n");
|
||||
std::printf(" --import-wmac-json <json-path> [out-base]\n");
|
||||
std::printf(" Import a .wmac.json sidecar back into binary .wmac (accepts macroKind int OR name string; maxLength defaults to 255)\n");
|
||||
std::printf(" --gen-weather-temperate <wow-base> [zoneName]\n");
|
||||
std::printf(" Emit .wow weather schedule: clear-dominant + occasional rain + fog (forest / grassland)\n");
|
||||
std::printf(" --gen-weather-arctic <wow-base> [zoneName]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue