feat(editor): WGCH JSON round-trip closure

Adds --export-wgch-json / --import-wgch-json with the established
readEnumField template factoring int+name dual encoding for both
channelKind ("global"/"realmzone"/"faction"/"custom") and accessKind
("publicjoin"/"inviteonly"/"autojoinonzone"/"moderated").

All 3 presets (std-channels / roleplay / admin) byte-identical
binary roundtrip OK including the zoneDefaultMapId=1519 Stormwind
auto-join binding on TradeStormwind. Validators pass on round-
tripped binaries.

CLI flag count 1317 -> 1319.
This commit is contained in:
Kelsi 2026-05-10 03:26:29 -07:00
parent c7d85fc598
commit 09ad03ca34
3 changed files with 181 additions and 0 deletions

View file

@ -382,6 +382,7 @@ const char* const kArgRequired[] = {
"--export-wlan-json", "--import-wlan-json",
"--gen-gch", "--gen-gch-rp", "--gen-gch-admin",
"--info-wgch", "--validate-wgch",
"--export-wgch-json", "--import-wgch-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",