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

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

Two top-level arrays mirror the binary layout:
  • gems[]         — gemId / itemIdToInsert / name / color
                      (dual int + name) / statType+Value /
                      requiredItemQuality / spellId
  • enchantments[] — enchantId / name / description / icon /
                      enchantSlot (dual int + name) /
                      statType+Value / spellId / duration /
                      chargeCount

Verified byte-identical round-trip on the enchants preset
(5 enchantments including 3 proc-based with WSPL spellId
cross-refs in the 28000-29000 placeholder range, plus
ring/cloak slot variants with chargeCount preserved).

Adds 2 flags (651 documented total now).
This commit is contained in:
Kelsi 2026-05-09 18:12:33 -07:00
parent 80ebf1dba5
commit d14f820a14
3 changed files with 179 additions and 0 deletions

View file

@ -103,6 +103,7 @@ const char* const kArgRequired[] = {
"--export-wmal-json", "--import-wmal-json",
"--gen-gems", "--gen-gems-set", "--gen-gems-enchants",
"--info-wgem", "--validate-wgem",
"--export-wgem-json", "--import-wgem-json",
"--gen-guilds", "--gen-guilds-full", "--gen-guilds-pair",
"--info-wgld", "--validate-wgld",
"--gen-weather-temperate", "--gen-weather-arctic",