Table of Contents

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

session IGameSession

The session whose NewGameOrSaveLoading distinguishes one game from the next.

create Func<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

session or create is null.

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

session or create is null.