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

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

Each trigger round-trips:
  • triggerId / mapId / areaId / name / minLevel
  • center / boxDims / dest as 3-element JSON arrays
  • shape (dual int + name) / kind (dual int + name)
  • radius / actionTarget / destOrientation
  • requiredQuestId / requiredItemId

Verified byte-identical round-trip on the dungeon preset
(3 triggers including the box-shaped Deadmines portal with
WIT key gate (itemId=5200) and full destination + facing
preserved through the JSON layer).

Adds 2 flags (603 documented total now).
This commit is contained in:
Kelsi 2026-05-09 17:03:27 -07:00
parent 8c78f8aeb2
commit 1f808ca78b
3 changed files with 160 additions and 0 deletions

View file

@ -85,6 +85,7 @@ const char* const kArgRequired[] = {
"--export-wtkn-json", "--import-wtkn-json",
"--gen-triggers", "--gen-triggers-dungeon", "--gen-triggers-flightpath",
"--info-wtrg", "--validate-wtrg",
"--export-wtrg-json", "--import-wtrg-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",