Skip to content
Merged
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
4 changes: 3 additions & 1 deletion rettangoli.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ vt:
files: "bgm"
- title: "SFX"
files: "sfx"
- title: "Save"
files: "save"
- title: "Keyboard"
files: "keyboard"
files: "keyboard"
87 changes: 87 additions & 0 deletions spec/system/actions/loadSaveSlot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
file: "../../../src/stores/system.store.js"
group: systemStore.loadSaveSlot
suites: [loadSaveSlot]
---
suite: loadSaveSlot
exportName: loadSaveSlot
---
case: load from existing slot
in:
- state:
global:
saveSlots:
"1":
slotKey: "1"
date: 1704110400
image: "save.png"
state:
projectData: { story: { initialSceneId: "loaded" } }
global:
currentLocalizationPackageId: "en"
contexts:
- pointers:
read: { sectionId: "sec2", lineId: "line2" }
pendingEffects: []
- slot: 1
out:
global:
pendingEffects:
- name: "loadGame"
options:
initialState:
projectData: { story: { initialSceneId: "loaded" } }
---
case: load from non-existent slot
in:
- state:
global:
saveSlots: {}
pendingEffects: []
- slot: 99
out:
global:
pendingEffects: []
---
case: load from slot 2
in:
- state:
global:
saveSlots:
"2":
slotKey: "2"
date: 1704110500
image: "save2.png"
state:
level: 10
pendingEffects: []
- slot: 2
out:
global:
pendingEffects:
- name: "loadGame"
options:
initialState:
level: 10
---
case: load with existing pending effects
in:
- state:
global:
saveSlots:
"1":
slotKey: "1"
date: 1704110400
image: "save.png"
state:
level: 5
pendingEffects:
- name: "existingEffect"
- slot: 1
out:
global:
pendingEffects:
- name: "existingEffect"
- name: "loadGame"
options:
initialState:
level: 5
281 changes: 0 additions & 281 deletions spec/system/actions/replaceSaveSlot.spec.yaml

This file was deleted.

Loading