Class Savegames
- Namespace
- FrameOfReference
- Assembly
- FrameOfReference.dll
Saving and loading Sessions as named savegames.
public class Savegames
- Inheritance
-
objectSavegames
Constructors
Savegames(Game, Session?, Action?)
Saving and loading Sessions as named savegames.
public Savegames(Game game, Session? session = null, Action? beforeSave = null)
Parameters
gameGameThe game instance.
sessionSessionThe currently active session, if any.
beforeSaveActionCalled before saving, e.g. to sync presenter state back to the session.
Methods
GetNames()
Returns the names of all user-created savegames, excluding the auto-resume slot.
[UsedImplicitly]
public IEnumerable<string> GetNames()
Returns
Load(string)
Loads the session saved under the specified name and activates it.
[UsedImplicitly]
public void Load(string name)
Parameters
namestring
Save(string)
Saves the currently active session under the specified name.
[UsedImplicitly]
public void Save(string name)
Parameters
namestring