Table of Contents

Class GameSettingCollectionExtensions

Namespace
SkyrimForge.Game
Assembly
SkyrimForge.Game.dll

Provides extension members for GameSettingCollection.

public static class GameSettingCollectionExtensions
Inheritance
GameSettingCollectionExtensions
Inherited Members

Methods

GetBool(GameSettingCollection, string)

Returns the value of the bool game setting named name, such as bDisableAllGore.

public static bool GetBool(this GameSettingCollection settings, string name)

Parameters

settings GameSettingCollection
name string

Returns

bool

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

GetFloat(GameSettingCollection, string)

Returns the value of the float game setting named name, such as fJumpHeightMin, as Papyrus's Game.GetGameSettingFloat does.

public static float GetFloat(this GameSettingCollection settings, string name)

Parameters

settings GameSettingCollection
name string

Returns

float

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

GetInteger(GameSettingCollection, string)

Returns the value of the integer game setting named name, such as iTrainingNumAllowedPerLevel, as Papyrus's Game.GetGameSettingInt does.

public static int GetInteger(this GameSettingCollection settings, string name)

Parameters

settings GameSettingCollection
name string

Returns

int

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

GetString(GameSettingCollection, string)

Returns the value of the string game setting named name, such as sAddItemtoInventory, as Papyrus's Game.GetGameSettingString does.

public static string? GetString(this GameSettingCollection settings, string name)

Parameters

settings GameSettingCollection
name string

Returns

string

The text, or null if the setting stores none.

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

SetBool(GameSettingCollection, string, bool)

Sets the bool game setting named name, such as bDisableAllGore, to value, as Papyrus's Game.SetGameSettingBool does.

public static void SetBool(this GameSettingCollection settings, string name, bool value)

Parameters

settings GameSettingCollection
name string
value bool

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

SetFloat(GameSettingCollection, string, float)

Sets the float game setting named name, such as fJumpHeightMin, to value, as Papyrus's Game.SetGameSettingFloat does.

public static void SetFloat(this GameSettingCollection settings, string name, float value)

Parameters

settings GameSettingCollection
name string
value float

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

SetInteger(GameSettingCollection, string, int)

Sets the integer game setting named name, such as iTrainingNumAllowedPerLevel, to value, as Papyrus's Game.SetGameSettingInt does.

public static void SetInteger(this GameSettingCollection settings, string name, int value)

Parameters

settings GameSettingCollection
name string
value int

Remarks

Call on the game's thread.

Exceptions

ArgumentNullException

name is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.

SetString(GameSettingCollection, string, string)

Sets the string game setting named name, such as sAddItemtoInventory, to value, as Papyrus's Game.SetGameSettingString does.

public static void SetString(this GameSettingCollection settings, string name, string value)

Parameters

settings GameSettingCollection
name string
value string

Remarks

The previous text is not freed. Call on the game's thread.

Exceptions

ArgumentNullException

name or value is null.

KeyNotFoundException

The game has no setting named name.

ArgumentException

The setting named name is not of this type.