feat(editor): add WCTR JSON round-trip (--export/--import-wctr-json)

Closes the editing loop on the currency-type catalog: dump a
.wctr to JSON, hand-edit currencyKind / cap values / categoryId
/ isAccountWide / iconPath (e.g. raise Conquest Points weekly
cap from 1650 to 2200, retag a server-custom currency from
Misc to FactionToken kind, mark Honor Points as account-wide
for a casual server), re-import to a byte-identical binary.

The exporter emits both currencyKind (int 0..5) and the human-
readable currencyKindName ("pvp-honor" / "pve-raid" /
"faction-token" / "event-token" / "crafting" / "misc"); the
importer accepts either form. isAccountWide round-trips as a
JSON bool but accepts int as well so machine-generated sidecars
work too.

Verified byte-identical round-trip on all three presets
(pvp / pve / faction). CLI flag count 970 -> 972.
This commit is contained in:
Kelsi 2026-05-09 22:33:12 -07:00
parent b8bd80cb35
commit 4426f26f79
3 changed files with 161 additions and 0 deletions

View file

@ -242,6 +242,7 @@ const char* const kArgRequired[] = {
"--export-wtle-json", "--import-wtle-json",
"--gen-ctr", "--gen-ctr-pve", "--gen-ctr-faction",
"--info-wctr", "--validate-wctr",
"--export-wctr-json", "--import-wctr-json",
"--gen-weather-temperate", "--gen-weather-arctic",
"--gen-weather-desert", "--gen-weather-stormy",
"--gen-zone-atmosphere",