Represents a game session (i.e. a game actually being played). It is equivalent to the content of a savegame.
More...
|
const string | FileExt = "." + GeneralSettings.AppNameShort + "Save" |
| The file extensions when this class is stored as a file. More...
|
|
Represents a game session (i.e. a game actually being played). It is equivalent to the content of a savegame.
◆ Session() [1/2]
FrameOfReference.World.Session.Session |
( |
Universe |
baseUniverse | ) |
|
|
inline |
Creates a new game session based upon a given Universe.
- Parameters
-
baseUniverse | The universe to base the new game session on. |
◆ Session() [2/2]
FrameOfReference.World.Session.Session |
( |
| ) |
|
|
inline |
Base-constructor for XML serialization. Do not call manually!
◆ Load()
static Session FrameOfReference.World.Session.Load |
( |
string |
path | ) |
|
|
inlinestatic |
Loads a Session from a encrypted XML file (savegame).
- Parameters
-
path | The file to load from. |
- Returns
- The loaded Session.
- Exceptions
-
IOException | A problem occurred while reading the file. |
UnauthorizedAccessException | Read access to the file is not permitted. |
InvalidOperationException | A problem occurred while deserializing the XML data. |
◆ Save()
void FrameOfReference.World.Session.Save |
( |
string |
path | ) |
|
|
inline |
Saves this Session in an encrypted XML file (savegame).
- Parameters
-
- Exceptions
-
IOException | A problem occurred while writing the file. |
UnauthorizedAccessException | Write access to the file is not permitted. |
◆ TimeTravel()
void FrameOfReference.World.Session.TimeTravel |
( |
double |
gameTime | ) |
|
|
inline |
Like UpdateTo, but interpolates between the current and the target time smoothly.
- Parameters
-
gameTime | The target value for UniverseBase<TCoordinates>.GameTime. |
◆ UpdateTo()
void FrameOfReference.World.Session.UpdateTo |
( |
double |
gameTime | ) |
|
|
inline |
Updates the world to a specific point in game time.
- Parameters
-
gameTime | The target value for UniverseBase<TCoordinates>.GameTime. |
◆ FileExt
const string FrameOfReference.World.Session.FileExt = "." + GeneralSettings.AppNameShort + "Save" |
The file extensions when this class is stored as a file.
◆ LeftoverGameTime
double FrameOfReference.World.Session.LeftoverGameTime |
|
getset |
UniverseBase<T>.GameTime time left over from the last Update call due to the fixed update step size.
◆ Lua
Lua FrameOfReference.World.Session.Lua |
|
getset |
The scripting engine used to execute story scripts.
◆ TimeTravelInProgress
bool FrameOfReference.World.Session.TimeTravelInProgress |
|
getset |
Indicates whwther a TimeTravel request is currently being processed.
The documentation for this class was generated from the following files:
- World/Session.cs
- World/Session.Storage.cs
- World/Session.TimeTravel.cs