Class SessionValue<T>
- Namespace
- SkyrimForge
- Assembly
- SkyrimForge.dll
A value created anew for each game, whether from a new character or a loaded save.
public sealed class SessionValue<T>
Type Parameters
T
- Inheritance
-
SessionValue<T>
- Inherited Members
Remarks
The value remains through a return to the main menu, until a save loads or a new game starts. Call members on the game's thread.
Constructors
SessionValue(IGameSession, Func<T>)
A value created anew for each game, whether from a new character or a loaded save.
public SessionValue(IGameSession session, Func<T> create)
Parameters
sessionIGameSessionThe session whose NewGameOrSaveLoading distinguishes one game from the next.
createFunc<T>Creates the value for a game. It is called on the first read in each game.
Remarks
The value remains through a return to the main menu, until a save loads or a new game starts. Call members on the game's thread.
Exceptions
- ArgumentNullException
sessionorcreateisnull.
Properties
Value
The value for the current game, created on the first read in each game.
public T Value { get; }
Property Value
- T
Exceptions
- ArgumentNullException
sessionorcreateisnull.