feat(editor): add WGFS JSON round-trip (--export/--import-wgfs-json)

Closes the editing loop on the glyph-slot catalog: dump a .wgfs
to JSON, hand-edit slotKind / displayOrder / minLevelToUnlock /
requiredClassMask (e.g. add a fourth Major slot, lower a Minor
slot's unlock from 75 to 70, restrict a Prime slot to Mages
only), re-import to a byte-identical binary.

The exporter emits both slotKind (int 0..2) and the human-
readable slotKindName ("major", "minor", "prime"); the importer
accepts either form.

Verified byte-identical round-trip on all three presets
(starter / wotlk / cata). CLI flag count 934 -> 936.
This commit is contained in:
Kelsi 2026-05-09 22:06:16 -07:00
parent 48c770f5ea
commit ea173d6ff8
3 changed files with 147 additions and 0 deletions

View file

@ -227,6 +227,7 @@ const char* const kArgRequired[] = {
"--export-wspc-json", "--import-wspc-json",
"--gen-gfs", "--gen-gfs-wotlk", "--gen-gfs-cata",
"--info-wgfs", "--validate-wgfs",
"--export-wgfs-json", "--import-wgfs-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",