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

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

Each guild round-trips header scalars (12 fields) plus the
4 sub-arrays:
  • ranks[]    — rank ladder with permissions + money cap
  • members[]  — character roster with rank + notes
  • bankTabs[] — per-tab name + 3 permission masks
  • perks[]    — purchased buffs with WSPL spell refs

factionId emits dual int + name forms (alliance / horde).

Verified byte-identical round-trip on the full preset
(1 guild with 6 ranks + 8 members + 4 bank tabs + 3
perks; all permission masks and per-rank money caps
preserved through the JSON layer).

Adds 2 flags (658 documented total now).
This commit is contained in:
Kelsi 2026-05-09 18:20:43 -07:00
parent f290a0d4a9
commit 650651ee2b
3 changed files with 220 additions and 0 deletions

View file

@ -106,6 +106,7 @@ const char* const kArgRequired[] = {
"--export-wgem-json", "--import-wgem-json",
"--gen-guilds", "--gen-guilds-full", "--gen-guilds-pair",
"--info-wgld", "--validate-wgld",
"--export-wgld-json", "--import-wgld-json",
"--gen-conditions", "--gen-conditions-gated", "--gen-conditions-event",
"--info-wpcd", "--validate-wpcd",
"--gen-weather-temperate", "--gen-weather-arctic",