feat(editor): add WTAL JSON round-trip authoring workflow

Closes the WTAL open-format loop with --export-wtal-json /
--import-wtal-json, mirroring the JSON pairs added for
every other novel binary format. All 19 binary formats
added since WOL now have full JSON round-trip authoring.

Each tree round-trips:
  • treeId, name, iconPath, requiredClassMask
  • talents[] with talentId / row / col / maxRank /
    prereqTalentId+Rank / rankSpellIds[5] (always emitted
    as a 5-element array, zero-padded for unused ranks)

The fixed-size rankSpellIds array round-trips exactly
even when most slots are zero — preserves binary layout
parity for downstream consumers expecting fixed-stride
talent records.

Verified byte-identical round-trip on the warrior preset
(3 trees, 11 talents with prereq chains and capstone WSPL
spell references intact).

Adds 2 flags (580 documented total now).
This commit is contained in:
Kelsi 2026-05-09 16:41:37 -07:00
parent 82a8c3559e
commit 019104536f
3 changed files with 147 additions and 0 deletions

View file

@ -73,6 +73,7 @@ const char* const kArgRequired[] = {
"--export-wtax-json", "--import-wtax-json",
"--gen-talents", "--gen-talents-warrior", "--gen-talents-mage",
"--info-wtal", "--validate-wtal",
"--export-wtal-json", "--import-wtal-json",
"--gen-maps", "--gen-maps-classic", "--gen-maps-bgarena",
"--info-wms", "--validate-wms",
"--gen-weather-temperate", "--gen-weather-arctic",