Table of Contents

Class Savegames

Namespace
FrameOfReference
Assembly
FrameOfReference.dll

Saving and loading Sessions as named savegames.

public class Savegames
Inheritance
object
Savegames

Constructors

Savegames(Game, Session?, Action?)

Saving and loading Sessions as named savegames.

public Savegames(Game game, Session? session = null, Action? beforeSave = null)

Parameters

game Game

The game instance.

session Session

The currently active session, if any.

beforeSave Action

Called 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

IEnumerable<string>

Load(string)

Loads the session saved under the specified name and activates it.

[UsedImplicitly]
public void Load(string name)

Parameters

name string

Save(string)

Saves the currently active session under the specified name.

[UsedImplicitly]
public void Save(string name)

Parameters

name string