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

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

Two top-level arrays mirror the binary layout:
  • families[] — familyId / name / description / icon /
                  petType (dual int + name) /
                  baseAttackSpeed / damageMultiplier /
                  armorMultiplier / dietMask + name /
                  abilities[]
  • minions[]  — minionId / name / summonSpellId /
                  creatureId / abilities[]

Verified byte-identical round-trip on the starter preset
(2 hunter families with 3 abilities each + 1 warlock Imp
with 2 abilities including autocast preferences preserved
through the JSON layer).

Adds 2 flags (672 documented total now).
This commit is contained in:
Kelsi 2026-05-09 18:37:12 -07:00
parent ab72380ee0
commit 13f09b8cb7
3 changed files with 188 additions and 0 deletions

View file

@ -112,6 +112,7 @@ const char* const kArgRequired[] = {
"--export-wpcd-json", "--import-wpcd-json",
"--gen-pets", "--gen-pets-hunter", "--gen-pets-warlock",
"--info-wpet", "--validate-wpet",
"--export-wpet-json", "--import-wpet-json",
"--gen-auction", "--gen-auction-pair", "--gen-auction-restricted",
"--info-wauc", "--validate-wauc",
"--gen-weather-temperate", "--gen-weather-arctic",