mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
feat(editor): add WGLY JSON round-trip (export/import sidecar)
Closes the JSON round-trip gap on the glyph catalog format shipped last batch. --export-wgly-json emits all 8 scalar fields plus a dual int + name form for glyphType so hand-edits can use either representation. --import-wgly-json accepts either form, falling back to the int when both are present. Verified byte-identical round-trip on all three preset emitters (starter / warrior / universal). 700 documented CLI flags.
This commit is contained in:
parent
dcbc9706f2
commit
7c00a491a5
3 changed files with 132 additions and 0 deletions
|
|
@ -1301,6 +1301,10 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" Print WGLY entries (id / type / spellId / itemId / classMask / requiredLevel / name)\n");
|
||||
std::printf(" --validate-wgly <wgly-base> [--json]\n");
|
||||
std::printf(" Static checks: id>0+unique, name+spellId not empty, type 0..2, classMask>0, level<25 warning, missing-itemId warning\n");
|
||||
std::printf(" --export-wgly-json <wgly-base> [out.json]\n");
|
||||
std::printf(" Export binary .wgly to a human-editable JSON sidecar (defaults to <base>.wgly.json)\n");
|
||||
std::printf(" --import-wgly-json <json-path> [out-base]\n");
|
||||
std::printf(" Import a .wgly.json sidecar back into binary .wgly (accepts glyphType int OR name string)\n");
|
||||
std::printf(" --gen-vehicles <wvhc-base> [name]\n");
|
||||
std::printf(" Emit .wvhc starter: 3 vehicles (chopper / wind rider / salvaged tank) covering ground+air+siege roles\n");
|
||||
std::printf(" --gen-vehicles-siege <wvhc-base> [name]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue