Class Config
The static config utility for accessing the configuration data at runtime.
Inheritance
Namespace: AS2
Assembly: .dll
Syntax
public static class Config
Fields
| Edit this page View SourceconfigData
Declaration
private static ConfigData configData
Field Value
Type | Description |
---|---|
ConfigData |
Properties
| Edit this page View SourceConfigData
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
| Edit this page View SourceLoadConfigData()
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()