Namespace: Configuration

Configuration

Methods

(async) getConfigFileList(configType) → {Array}

Get the list of server-side .cfg files with the given type.
Parameters:
Name Type Description
configType kMdpsConfigType configuration type
See:
  • Constants.kMdpsConfigType
Returns:
Array of full filenames, with .cfg extension
Type
Array

(async) getPresetFileList(configType) → {Array}

Get the list of server-side .bgvx files with the given type.
Parameters:
Name Type Description
configType kMdpsConfigType configuration type
See:
  • Constants.kMdpsConfigType
Returns:
Array of full filenames, with .bgvx extension
Type
Array

(async) loadConfigFile(filename)

Load a server-side .cfg file and update our settings accordingly. See Getting Started for config file format.
Parameters:
Name Type Description
filename String full name, with .cfg extension, of the config file

loadPresetBuf(bufferString)

Load a bgvx preset from the given buffer.
Parameters:
Name Type Description
bufferString String string holding the preset buffer

(async) loadPresetFile(filename)

Load a server-side .bgvx file.
Parameters:
Name Type Description
filename String full name, with .bgvx extension, of the settings file