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

Closes the JSON round-trip gap on the companion pet catalog
format shipped last batch. --export-wcmp-json emits all 9
scalar fields plus dual int + name forms for companionKind
(8 values) / rarity (4 values) / factionRestriction (3 values)
so hand-edits can use either representation.
--import-wcmp-json accepts either form, falling back to the
int when both are present. Verified byte-identical round-trip
on all three preset emitters (starter / rare / faction). 784
documented CLI flags.
This commit is contained in:
Kelsi 2026-05-09 20:06:33 -07:00
parent f98157b5a5
commit ac563776fa
3 changed files with 171 additions and 0 deletions

View file

@ -162,6 +162,7 @@ const char* const kArgRequired[] = {
"--export-wgtp-json", "--import-wgtp-json",
"--gen-cmp", "--gen-cmp-rare", "--gen-cmp-faction",
"--info-wcmp", "--validate-wcmp",
"--export-wcmp-json", "--import-wcmp-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",