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

Closes the JSON round-trip gap on the channels catalog format
shipped last batch. --export-wchn-json emits all 10 scalar fields
plus dual int + name forms for channelType and factionAccess so
hand-edits can use either representation. --import-wchn-json
accepts either form, falling back to the int when both are
present. Verified byte-identical round-trip on all three preset
emitters (starter / city / moderated).
This commit is contained in:
Kelsi 2026-05-09 18:52:32 -07:00
parent 0be9bf86db
commit d2dbf1959d
3 changed files with 157 additions and 0 deletions

View file

@ -118,6 +118,7 @@ const char* const kArgRequired[] = {
"--export-wauc-json", "--import-wauc-json",
"--gen-channels", "--gen-channels-city", "--gen-channels-moderated",
"--info-wchn", "--validate-wchn",
"--export-wchn-json", "--import-wchn-json",
"--gen-cinematics", "--gen-cinematics-intros", "--gen-cinematics-quests",
"--info-wcms", "--validate-wcms",
"--gen-weather-temperate", "--gen-weather-arctic",