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
settingsGameSettingCollectionnamestring
Returns
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestring
Returns
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestring
Returns
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestring
Returns
- string
The text, or
nullif the setting stores none.
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestringvaluebool
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestringvaluefloat
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestringvalueint
Remarks
Call on the game's thread.
Exceptions
- ArgumentNullException
nameisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis 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
settingsGameSettingCollectionnamestringvaluestring
Remarks
The previous text is not freed. Call on the game's thread.
Exceptions
- ArgumentNullException
nameorvalueisnull.- KeyNotFoundException
The game has no setting named
name.- ArgumentException
The setting named
nameis not of this type.