mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
feat(editor): add WPET JSON round-trip authoring workflow
Closes the WPET open-format loop with --export-wpet-json /
--import-wpet-json, mirroring the JSON pairs added for
every other novel binary format. All 32 binary formats
added since WOL now have full JSON round-trip authoring.
Two top-level arrays mirror the binary layout:
• families[] — familyId / name / description / icon /
petType (dual int + name) /
baseAttackSpeed / damageMultiplier /
armorMultiplier / dietMask + name /
abilities[]
• minions[] — minionId / name / summonSpellId /
creatureId / abilities[]
Verified byte-identical round-trip on the starter preset
(2 hunter families with 3 abilities each + 1 warlock Imp
with 2 abilities including autocast preferences preserved
through the JSON layer).
Adds 2 flags (672 documented total now).
This commit is contained in:
parent
ab72380ee0
commit
13f09b8cb7
3 changed files with 188 additions and 0 deletions
|
|
@ -1245,6 +1245,10 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" Print WPET families (id / petType / atkSpd / dmg+arm mult / diet) + minions (id / summon / creatureId)\n");
|
||||
std::printf(" --validate-wpet <wpet-base> [--json]\n");
|
||||
std::printf(" Static checks: ids>0+unique, name not empty, petType 0..2, atkSpeed>0, minion needs summon+creatureId\n");
|
||||
std::printf(" --export-wpet-json <wpet-base> [out.json]\n");
|
||||
std::printf(" Export binary .wpet to a human-editable JSON sidecar (defaults to <base>.wpet.json)\n");
|
||||
std::printf(" --import-wpet-json <json-path> [out-base]\n");
|
||||
std::printf(" Import a .wpet.json sidecar back into binary .wpet (accepts petType int OR name string)\n");
|
||||
std::printf(" --gen-auction <wauc-base> [name]\n");
|
||||
std::printf(" Emit .wauc starter: 1 neutral house with stock 12h/24h/48h tiers and 5%% house cut\n");
|
||||
std::printf(" --gen-auction-pair <wauc-base> [name]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue