feat(editor): add WCMG JSON round-trip (--export/--import-wcmg-json)

Dual encoding for categoryKind (int 0..5 OR
"stance"/"form"/"aspect"/"presence"/"posture"/"sigil");
exclusive accepts bool or int. members[] serializes as a
plain JSON array of spell IDs — directly editable for
adding or removing spells from a mutex group without
touching the binary.

All 3 presets (warrior/druid/all) byte-identical
roundtrip OK. Token-form import smoke-tested with mixed
preset values. CLI flag count 1117 -> 1119.
This commit is contained in:
Kelsi 2026-05-10 00:43:28 -07:00
parent d62ac954da
commit 2f76653cf7
3 changed files with 167 additions and 0 deletions

View file

@ -306,6 +306,7 @@ const char* const kArgRequired[] = {
"--export-wscb-json", "--import-wscb-json",
"--gen-cmg", "--gen-cmg-druid", "--gen-cmg-all",
"--info-wcmg", "--validate-wcmg",
"--export-wcmg-json", "--import-wcmg-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",