AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
cLuxAutoSaveTimer Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ cLuxAutoSaveTimer()

cLuxAutoSaveTimer::cLuxAutoSaveTimer ( )
inline

Definition at line 96 of file LuxAutoSave.h.

Member Function Documentation

◆ SetLevel()

void cLuxAutoSaveTimer::SetLevel ( int alLevel)
inline

Definition at line 98 of file LuxAutoSave.h.

◆ GetLevel()

int cLuxAutoSaveTimer::GetLevel ( ) const
inline

Definition at line 99 of file LuxAutoSave.h.

◆ OnMapChange()

void cLuxAutoSaveTimer::OnMapChange ( )
inline

A map change started: save at the next safe moment, unless something saves first.

Definition at line 102 of file LuxAutoSave.h.

◆ OnSaved()

void cLuxAutoSaveTimer::OnSaved ( )
inline

Any save (script, quit, manual, ours) restarts the wait and covers a pending one.

Definition at line 104 of file LuxAutoSave.h.

◆ Update()

bool cLuxAutoSaveTimer::Update ( float afTimeStep,
bool abPlaying,
bool abSafe )
inline

True when a save should happen now.

Definition at line 107 of file LuxAutoSave.h.

◆ IsMapChangePending()

bool cLuxAutoSaveTimer::IsMapChangePending ( ) const
inline

Definition at line 116 of file LuxAutoSave.h.

◆ GetSinceSave()

float cLuxAutoSaveTimer::GetSinceSave ( ) const
inline

Definition at line 117 of file LuxAutoSave.h.


The documentation for this class was generated from the following file: