Search Results for

    Show / Hide Table of Contents

    Class Config

    The static config utility for accessing the configuration data at runtime.

    Inheritance
    object
    Config
    Namespace: AS2
    Assembly: .dll
    Syntax
    public static class Config

    Fields

    | Edit this page View Source

    configData

    Declaration
    private static ConfigData configData
    Field Value
    Type Description
    ConfigData

    Properties

    | Edit this page View Source

    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

    | Edit this page View Source

    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()
    | Edit this page View Source

    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 null if the file could not be read.

    | Edit this page View Source

    ResetConfig()

    Resets the configuration data to its default settings.

    Declaration
    public static void ResetConfig()
    | Edit this page View Source

    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.

    | Edit this page View Source

    SaveConfigData()

    Stores the current configuration data in the simulator's configuration file.

    Declaration
    public static void SaveConfigData()
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX