Class Config
The static config utility for accessing the configuration data at runtime.
Namespace: AS2
Assembly: .dll
Syntax
public static class Config
Fields
configData
Declaration
private static ConfigData configData
Field Value
Type | Description |
---|---|
ConfigData |
Properties
ConfigData
The currently loaded configuration data. May be modified so that the updated settings can be stored.
Declaration
public static ConfigData ConfigData { get; }
Property Value
Type | Description |
---|---|
ConfigData |
Methods
LoadConfigData()
Loads the content of the configuration file into this object's configuration data. Can be used to reload the configuration in case the file contents have changed.
Declaration
public static void LoadConfigData()
ReadConfigFile()
Reads the configuration file's content into a ConfigData object and returns it.
Declaration
public static ConfigData ReadConfigFile()
Returns
Type | Description |
---|---|
ConfigData | The configuration data from the simulator's
configuration file. May be |
ResetConfig()
Resets the configuration data to its default settings.
Declaration
public static void ResetConfig()
SaveConfig(ConfigData)
Stores the given configuration data in the simulator's configuration file.
Declaration
public static void SaveConfig(ConfigData data)
Parameters
Type | Name | Description |
---|---|---|
ConfigData | data | The configuration data to be stored. |
SaveConfigData()
Stores the current configuration data in the simulator's configuration file.
Declaration
public static void SaveConfigData()