feat(editor): add WPTT JSON round-trip (--export/--import-wptt-json)

Dual encoding for treeKind (int 0..2 OR token "cunning"
/ "ferocity" / "tenacity"). spellIdsByRank serializes as
a plain JSON array of spell IDs — directly editable for
adding or removing per-rank spells from a talent.

All 3 preset trees (ferocity/cunning/tenacity) byte-
identical roundtrip OK. CLI flag count 1180 -> 1182.
This commit is contained in:
Kelsi 2026-05-10 01:54:13 -07:00
parent ede6fb9c3a
commit 81b8572b50
3 changed files with 160 additions and 0 deletions

View file

@ -330,6 +330,7 @@ const char* const kArgRequired[] = {
"--export-wcre-json", "--import-wcre-json",
"--gen-ptt", "--gen-ptt-cunning", "--gen-ptt-tenacity",
"--info-wptt", "--validate-wptt",
"--export-wptt-json", "--import-wptt-json",
"--gen-hrd", "--gen-hrd-raid25", "--gen-hrd-cm",
"--info-whrd", "--validate-whrd",
"--gen-weather-temperate", "--gen-weather-arctic",