feat(editor): add WCMS JSON round-trip (export/import sidecar)

Closes the JSON round-trip gap on the cinematic catalog format
shipped two batches ago. --export-wcms-json emits all 9 scalar
fields plus dual int + name forms for kind and triggerKind so
hand-edits can use either representation. --import-wcms-json
accepts either form, falling back to the int when both are
present. Verified byte-identical round-trip on all three preset
emitters (starter / intros / quests).
This commit is contained in:
Kelsi 2026-05-09 18:56:29 -07:00
parent 92327fc0c0
commit 0d9c449fdc
3 changed files with 153 additions and 0 deletions

View file

@ -121,6 +121,7 @@ const char* const kArgRequired[] = {
"--export-wchn-json", "--import-wchn-json",
"--gen-cinematics", "--gen-cinematics-intros", "--gen-cinematics-quests",
"--info-wcms", "--validate-wcms",
"--export-wcms-json", "--import-wcms-json",
"--gen-glyphs", "--gen-glyphs-warrior", "--gen-glyphs-universal",
"--info-wgly", "--validate-wgly",
"--gen-weather-temperate", "--gen-weather-arctic",