mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-07-02 23:05:02 +03:00
Autosaving (issue #9)
This commit is contained in:
parent
86612614f5
commit
15e001af2a
|
@ -112,6 +112,9 @@ class SaletRoom
|
||||||
if @choices
|
if @choices
|
||||||
system.view.writeChoices(system, system.getSituationIdChoices(@choices, @maxChoices))
|
system.view.writeChoices(system, system.getSituationIdChoices(@choices, @maxChoices))
|
||||||
|
|
||||||
|
if system.autosave
|
||||||
|
system.saveGame()
|
||||||
|
|
||||||
###
|
###
|
||||||
An internal function to get the room's description and the descriptions of
|
An internal function to get the room's description and the descriptions of
|
||||||
every object in this room.
|
every object in this room.
|
||||||
|
|
|
@ -28,6 +28,7 @@ class Salet
|
||||||
# REDEFINE THIS IN YOUR GAME
|
# REDEFINE THIS IN YOUR GAME
|
||||||
game_id: null
|
game_id: null
|
||||||
game_version: "1.0"
|
game_version: "1.0"
|
||||||
|
autosave: true
|
||||||
|
|
||||||
rnd: null
|
rnd: null
|
||||||
time: 0
|
time: 0
|
||||||
|
|
Loading…
Reference in a new issue