feat(editor): add WSCB JSON round-trip (--export/--import-wscb-json)

Dual encoding for both channelKind (int 0..4 OR
"login"/"system"/"raidwarning"/"motd"/"helptip") and
factionFilter (int 1..3 OR "alliance"/"horde"/"both") on
import. Export emits both int and *Name string fields
for round-trip safety; the int form is authoritative,
the *Name string is for human edit ergonomics and is
ignored if the int form is also present.

All 3 presets (motd/maintenance/helptips) byte-identical
roundtrip OK. Token-form import smoke-tested with mixed
channel+faction tokens. CLI flag count 1109 -> 1111.
This commit is contained in:
Kelsi 2026-05-10 00:33:38 -07:00
parent 57df129404
commit 8c0cab27be
3 changed files with 186 additions and 0 deletions

View file

@ -302,6 +302,7 @@ const char* const kArgRequired[] = {
"--export-whrt-json", "--import-whrt-json",
"--gen-scb", "--gen-scb-maintenance", "--gen-scb-helptips",
"--info-wscb", "--validate-wscb",
"--export-wscb-json", "--import-wscb-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",