feat(convert): SaveGame, a save decoded once and edited in place #448
No reviewers
Labels
No labels
area/ci-release
area/cli
area/docs
area/dungeon
area/ftl
area/graphics
area/gui
area/music
area/saves
area/tooling
port/amiga
port/dos
port/fm-towns
port/mac
port/pc98
port/sega-cd
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jqueuniet/dm2-tools!448
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/446-save-game"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #446 (PR 2a of 3). Stacked on #447.
dm2_convert::SaveGame: a full dump plus the map info of itsdungeon.dat, built withnew(bytes, &DungeonFile, &GraphicsArchive)orfrom_json(json, &DungeonFile). Reads and edits work in place:to_json,to_bytes,gameplay/set_gameplay;inventory,container;move_item,swap_items,copy_item,clear_item,put_in_container,take_from_container;create_item,preview_item,field_limits.Each takes an options object. A refused edit leaves the save unchanged (tested).
The free save editor functions now wrap the same dump-level internals; output unchanged.
dm2_saves::SaveDump::set_gameplayadded, sinceGameplayJson::to_wireis crate-private.Deviation from #446:
from_jsontakes noGraphicsArchive, as loading a dump needs only the map info.https://claude.ai/code/session_01SnENBXnZbhNNrojZT5jbJ7