feat(editor): add WGRP JSON round-trip (--export/--import-wgrp-json)

JSON sidecar with sizeCategory derived string ("5man" /
"10man" / "25man" / "40man" / "custom") added on export
for human readability. sizeCategory is purely
informational — the round-trip is driven by maxPartySize
itself; the import handler ignores sizeCategory so users
can edit maxPartySize freely without keeping the two in
sync. requireSpec accepts both bool and int on import for
JSON-edit ergonomics.

All 3 presets (5-man/raid10/raid25) byte-identical
roundtrip OK. CLI flag count 1095 -> 1097.
This commit is contained in:
Kelsi 2026-05-10 00:22:14 -07:00
parent 869880fd66
commit 31b9b55ebd
3 changed files with 149 additions and 0 deletions

View file

@ -296,6 +296,7 @@ const char* const kArgRequired[] = {
"--export-wact-json", "--import-wact-json",
"--gen-grp", "--gen-grp-raid10", "--gen-grp-raid25",
"--info-wgrp", "--validate-wgrp",
"--export-wgrp-json", "--import-wgrp-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",