|
| bool | LuxAutoSaveOnMapChange (int alLevel) |
| int | LuxAutoSavesToKeep (int alLevel, int alShippedMax) |
| | How many autosaves to keep, the new one included.
|
| float | LuxAutoSaveInterval (int alLevel) |
| | Seconds between timed saves, 0 = none.
|
| bool | LuxStartsWithI (const std::wstring &s, const std::wstring &p) |
| int | LuxSaveKind (const std::wstring &asFile) |
| | Which kind a save file name is ("AutoSave_\<map\>_...sav", "Save_\<map\>_...sav").
|
| bool | LuxAutoSaveSafe (bool abPlayerActive, bool abDead, bool abStoryScene, bool abInDanger, bool abInMenu) |
| | A moment the game can be saved without surprising the player on load.
|
autosave and manual saves (Enhanced option "Autosave").
Pure, unit tested in tests/cpp/test_autosave.cpp.
- Two kinds of save file, side by side in the profile folder: autosaves ("AutoSave_...", the game's own name) rotate among themselves; manual saves ("Save_...", pause menu "Save game") are never deleted by the game.
- Option levels: Off (as shipped: only the saves the map scripts make), On map change (plus a save after every map change), Every 5 / 10 / 15 minutes (plus a timed save).
- How many autosaves are kept: Off keeps the shipped count (game.cfg MaxAutoSaves, 20); any other level keeps the newest kLuxAutoSavesKept (5), so frequent saves do not pile up.
- Extra saves happen only at a safe moment: playing freely (no story scene, menu or journal), alive, and no enemy hunting or searching. A pending save waits for one.
Definition in file LuxAutoSave.h.