public class Config
extends Object
This package provides a collection of Console commands concerning Configs, combined with a list of all known ones. The configs are split across multiple classes, each representing a specific subcategory.
The types (int, bool, string, ...) of the configs listed here are mainly assigned using my "gut feeling", so there will probably be a couple of mistakes. If you spot an error please e-mail me the correct type.
To view a complete list of currently defined configs use the console command
.
configDump()
Using configs
configDef(string)
or +configName
in a .cfg file.configUndef(string)
or -configName
in a .cfg file.configSet(string, string)
,
configSetInt(string, int)
,
configSetFloat(string, float)
or configName newValue
in a .cfg file.
Enabling is the default action when a boolean config is found without a sign.
,Quotes around strings are not required if that string does not contain spaces.
,Configs are not case sensitive.
,There's still plenty of configs that we don't quite understand, and even more that simply won't work anymore.
Modifier and Type | Field and Description |
---|---|
string |
machineName |
string |
playerGuid
The global unique id of the current profile,
generated during installation.
|
string |
playerProfileName
Name for player profile.
|
float |
requiredBuildVersion |
Modifier and Type | Method and Description |
---|---|
void |
config(string token)
Changes configuration state just like a line in the *.cfg files.
|
void |
configDef(string name)
Defines or enabled a configuration variable, i.e.
|
void |
configDump()
Sends to output a list of all current configuration variables.
|
void |
configGetByID(int value)
Look up configuration by enumeration ID.
|
void |
configHelp(string symbolFilter)
Show all formally defined configuration variables that contain the filter string, or use no parameters for a full list.
|
void |
configHelpPrefix(string symbolFilter)
Show all formally defined configuration variables that start with the filter string, or use no parameters for a full list.
|
void |
configSet(string name,
string value)
Sets a particular configuration variable to a string value.
|
void |
configSetFloat(string name,
float value)
Sets a configuration variable to a floating point value.
|
void |
configSetInt(string name,
int value)
Sets a configuration variable to an int value.
|
void |
configToggle(string name)
Defined variable becomes undefined, and vice versa.
|
void |
configUndef(string name)
Disables a configuration variable, i.e.
|
public string playerGuid
public string playerProfileName
public float requiredBuildVersion
public string machineName
public void configDump()
public void configSet(string name, string value)
public void configSetInt(string name, int value)
public void configSetFloat(string name, float value)
public void configDef(string name)
public void configUndef(string name)
public void configToggle(string name)
public void config(string token)
public void configGetByID(int value)
public void configHelp(string symbolFilter)
public void configHelpPrefix(string symbolFilter)