mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 19:13:52 +00:00
feat(editor): add WTIT JSON round-trip authoring workflow
Closes the WTIT open-format loop with --export-wtit-json / --import-wtit-json, mirroring the JSON pairs added for every other novel binary format. All 24 binary formats added since WOL now have full JSON round-trip authoring. Each title round-trips all 8 scalar fields (titleId, name, nameMale, nameFemale, iconPath, prefix, category, sortOrder). Two enum-typed fields emit dual int + name forms: • category (achievement/pvp/raid/class/event/profession/...) • prefix (1=prefix vs 0=suffix display position) Verified byte-identical round-trip on the PvP preset (28-title Honor System ladder with full Alliance + Horde rank coverage preserved through the JSON layer). Adds 2 flags (616 documented total now).
This commit is contained in:
parent
ff4159c369
commit
262f9291b4
3 changed files with 134 additions and 0 deletions
|
|
@ -1133,6 +1133,10 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" Print WTIT entries (id / sort / prefix vs suffix / category / canonical name)\n");
|
||||
std::printf(" --validate-wtit <wtit-base> [--json]\n");
|
||||
std::printf(" Static checks: titleId>0+unique, name not empty, category in 0..7, gender variants paired\n");
|
||||
std::printf(" --export-wtit-json <wtit-base> [out.json]\n");
|
||||
std::printf(" Export binary .wtit to a human-editable JSON sidecar (defaults to <base>.wtit.json)\n");
|
||||
std::printf(" --import-wtit-json <json-path> [out-base]\n");
|
||||
std::printf(" Import a .wtit.json sidecar back into binary .wtit (accepts category/prefix int OR name forms)\n");
|
||||
std::printf(" --gen-events <wsea-base> [name]\n");
|
||||
std::printf(" Emit .wsea starter: 3 events (Brawl Week / Fishing Extravaganza / Anniversary) covering kind categories\n");
|
||||
std::printf(" --gen-events-yearly <wsea-base> [name]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue