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

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

Each game object round-trips all 13 scalar fields plus
dual int + name forms for typeId (16 enum values) and the
flags bitset.

The flag bitset emits string-array form so a hand-author
can write ["despawn"] instead of having to remember that
Despawn = 0x08. typeName makes "door/chest/herb-node/..."
obvious without needing to know typeId=11 means HerbNode.

Verified byte-identical round-trip on the dungeon preset
(5 objects: door + button + 2 chests + trap with full
WLOT cross-references and lockId fields preserved).

Adds 2 flags (516 documented total now).
This commit is contained in:
Kelsi 2026-05-09 15:39:50 -07:00
parent 4868f780cc
commit 062258de8a
3 changed files with 170 additions and 0 deletions

View file

@ -46,6 +46,7 @@ const char* const kArgRequired[] = {
"--export-wqt-json", "--import-wqt-json",
"--gen-objects", "--gen-objects-dungeon", "--gen-objects-gather",
"--info-wgot", "--validate-wgot",
"--export-wgot-json", "--import-wgot-json",
"--gen-factions", "--gen-factions-alliance", "--gen-factions-wildlife",
"--info-wfac", "--validate-wfac",
"--gen-weather-temperate", "--gen-weather-arctic",