Namespace: ConfigManager

ConfigManager

The static class that manages player controlled settings in the game

Members

ConfigManager.alwaysDashbooleanstatic

Flag for whether the player always tries to dash or not

ConfigManager.bgmVolumenumberstatic

Volume for BGMs

ConfigManager.bgsVolumenumberstatic

Volume for BGSs

ConfigManager.commandRememberbooleanstatic

Flag for whether to remember last battle command or not

ConfigManager.meVolumenumberstatic

Volume for MEs

ConfigManager.seVolumenumberstatic

Volume for SEs

ConfigManager.touchUIbooleanstatic

Flag for whether to use the Touch UI or not

Methods

ConfigManager.applyData(config)static

Sets the current config settings to match passed config object. Will use defaults if any property missing
NameTypeDescription
configObjectConfig object

ConfigManager.isLoaded()booleanstatic

Check if the config file is done loading
Returns:
TypeDescription
booleanWhether loading is complete or not

ConfigManager.load()static

Loads the player's settings from the config save file

ConfigManager.makeData()Objectstatic

Gets the current config settings as an object
Returns:
TypeDescription
ObjectConfig object

ConfigManager.readFlag(config, name, defaultValue)booleanstatic

Tries to access a boolean parameter in the config parameter, if no exist, returns default value instead.
NameTypeDescription
configObjectConfig object
namestringThe property name
defaultValuebooleanThe default setting
Returns:
TypeDescription
booleanconfig property if exist, else defaultValue

ConfigManager.readVolume(config, name)numberstatic

Tries to access a number parameter in the config parameter. if no exists, returns 100 instead
NameTypeDescription
configObjectConfig object
namestringThe property name
Returns:
TypeDescription
numberconfig property between 0 and 100 if exist, else 100

ConfigManager.save()static

Saves the player's settings to the config save file