0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-30 22:05:02 +03:00

Autosaving (issue #9)

This commit is contained in:
Alexander Yakovlev 2016-02-01 20:28:05 +07:00
parent 86612614f5
commit 15e001af2a
2 changed files with 4 additions and 0 deletions

View file

@ -112,6 +112,9 @@ class SaletRoom
if @choices
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
every object in this room.

View file

@ -28,6 +28,7 @@ class Salet
# REDEFINE THIS IN YOUR GAME
game_id: null
game_version: "1.0"
autosave: true
rnd: null
time: 0