|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
When the extra autosaves are due. More...
#include <LuxAutoSave.h>
Public Member Functions | |
| cLuxAutoSaveTimer () | |
| void | SetLevel (int alLevel) |
| int | GetLevel () const |
| void | OnMapChange () |
| A map change started: save at the next safe moment, unless something saves first. | |
| void | OnSaved () |
| Any save (script, quit, manual, ours) restarts the wait and covers a pending one. | |
| bool | Update (float afTimeStep, bool abPlaying, bool abSafe) |
| True when a save should happen now. | |
| bool | IsMapChangePending () const |
| float | GetSinceSave () const |
When the extra autosaves are due.
Counts play time only; any save restarts it. Call OnMapChange before the new map's OnStart / OnEnter run: when the map's own script saves on arrival (most do), that save clears the pending one.
Definition at line 93 of file LuxAutoSave.h.
|
inline |
Definition at line 96 of file LuxAutoSave.h.
|
inline |
Definition at line 98 of file LuxAutoSave.h.
|
inline |
Definition at line 99 of file LuxAutoSave.h.
|
inline |
A map change started: save at the next safe moment, unless something saves first.
Definition at line 102 of file LuxAutoSave.h.
|
inline |
Any save (script, quit, manual, ours) restarts the wait and covers a pending one.
Definition at line 104 of file LuxAutoSave.h.
|
inline |
True when a save should happen now.
Definition at line 107 of file LuxAutoSave.h.
|
inline |
Definition at line 116 of file LuxAutoSave.h.
|
inline |
Definition at line 117 of file LuxAutoSave.h.