mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
feat(editor): add WPCD JSON round-trip authoring workflow
Closes the WPCD open-format loop with --export-wpcd-json /
--import-wpcd-json, mirroring the JSON pairs added for
every other novel binary format. All 31 binary formats
added since WOL now have full JSON round-trip authoring.
Each condition round-trips all 9 scalar fields. Two
enum-typed fields emit dual int + name forms:
• kind (true / false / quest-done / has-item /
min-level / class / event / area / title / ...)
• aggregator (and / or)
Verified byte-identical round-trip on the gated preset
(5 conditions in 2 groups demonstrating both AND and OR
aggregation, with full polymorphic targetId / minValue /
maxValue payload preserved through the JSON layer).
Adds 2 flags (665 documented total now).
This commit is contained in:
parent
62e793800c
commit
a3af35ec49
3 changed files with 153 additions and 0 deletions
|
|
@ -1231,6 +1231,10 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" Print WPCD entries (id / group / kind / aggregator / negated / target / min..max value / name)\n");
|
||||
std::printf(" --validate-wpcd <wpcd-base> [--json]\n");
|
||||
std::printf(" Static checks: id>0+unique, kind in 0..16, aggregator 0..1, kinds that need targetId have non-zero target\n");
|
||||
std::printf(" --export-wpcd-json <wpcd-base> [out.json]\n");
|
||||
std::printf(" Export binary .wpcd to a human-editable JSON sidecar (defaults to <base>.wpcd.json)\n");
|
||||
std::printf(" --import-wpcd-json <json-path> [out-base]\n");
|
||||
std::printf(" Import a .wpcd.json sidecar back into binary .wpcd (accepts kind/aggregator int OR name forms)\n");
|
||||
std::printf(" --gen-pets <wpet-base> [name]\n");
|
||||
std::printf(" Emit .wpet starter: 2 hunter families (Wolf + Cat) + 1 warlock minion (Imp) with WSPL ability refs\n");
|
||||
std::printf(" --gen-pets-hunter <wpet-base> [name]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue