Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions docs/RouteEngine.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,21 @@ Seen-line semantics:

### Save System Actions

| Action | Payload | Description |
| ----------------- | --------------------------------- | ----------------- |
| `replaceSaveSlot` | `{ slotKey, date, image, state }` | Save game to slot |
| Action | Payload | Description |
| -------------- | --------------------------------- | -------------------------- |
| `saveSaveSlot` | `{ slot, thumbnailImage? }` | Save game to a slot |
| `loadSaveSlot` | `{ slot }` | Load game from a slot |

Save/load design, requirements, and storage boundaries are documented in [SaveLoad.md](./SaveLoad.md).

Notes:

- `slot` is the authoritative action field; storage normalizes it to string `slotKey`
- save/load UIs can bind `slot` directly from layout templates such as `${slot.slotNumber}`
- if slot identity comes from event data, use `_event.*` bindings such as `slot: "_event.slot"`
- example save/load UI copy should stay terse; prefer short labels like `Save`, `Load`, `Page 1`, `Saved`, `Empty`, and `Image`
- `thumbnailImage` is integration-provided; the engine does not capture screenshots by itself
- if a save action appears inside a multi-action event payload, the host should prepare/augment the `actions` object and still call `handleActions(...)` once for the whole batch

### Effect Actions

Expand Down
Loading
Loading