mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
feat(editor): add WOL JSON round-trip authoring workflow
Two new commands enable a hand-edit authoring loop for the
binary .wol format:
• --export-wol-json <wol-base> [out.json]
Dumps a .wol to a human-readable JSON sidecar
(defaults to <base>.wol.json). Preserves every
keyframe's time, ambient/directional/fog colors,
directional vector, and fog distances.
• --import-wol-json <json-path> [out-base]
Reads a JSON sidecar and writes back binary .wol.
Validates schema strictly — missing keyframes /
wrong field types fail with a clear error message.
Workflow: --gen-light → --export-wol-json → hand-edit values
in any text editor → --import-wol-json → use in renderer.
Round-trip verified byte-for-byte identical on the existing
sunny.wol fixture: re-import produces the same 4 keyframes
with the same colors, fog distances, and zone name.
This commit is contained in:
parent
35a5a9d09f
commit
6c2f5cf9ca
3 changed files with 134 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ const char* const kArgRequired[] = {
|
|||
"--info-wob", "--info-wob-stats", "--info-woc", "--info-wot",
|
||||
"--info-wol", "--info-wol-at", "--validate-wol", "--gen-light",
|
||||
"--gen-light-cave", "--gen-light-dungeon", "--gen-light-night",
|
||||
"--export-wol-json", "--import-wol-json",
|
||||
"--info-wow", "--validate-wow",
|
||||
"--gen-weather-temperate", "--gen-weather-arctic",
|
||||
"--gen-weather-desert", "--gen-weather-stormy",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue