Config_SetValue("SecretSue", "1");.
More...
Config_SetValue("SecretSue", "1");.
Functions to manipulate game configuration variables.
◆ Config_GetBool()
Get a boolean value from a configuration variable.
- Parameters
-
pCVarName | The name of the configuration variable |
- Returns
- Returns the value.
◆ Config_GetColor()
Get a color value from a configuration variable.
- Parameters
-
pCVarName | The name of the configuration variable |
pColor | The color. |
- Returns
- Retursn the value.
◆ Config_GetInt()
Get an integer value from a configuration variable.
- Parameters
-
pCVarName | The name of the configuration variable |
- Returns
- Returns the value.
◆ Config_GetString()
Get a string value from a configuration variable.
- Parameters
-
pCVarName | The name of the configuration variable |
- Returns
- Returns the value.
◆ Config_SetValue()
CAVESTORY_MOD_API bool Config_SetValue |
( |
const char * |
pCVarName, |
|
|
const char * |
pValue, |
|
|
bool |
bUserInput = false |
|
) |
| |
Set the value of a configuration variable.
- Parameters
-
pCVarName | The name of the configuration variable |
pValue | The new value |
bUserInput | Whether this was inputted by a user |
- Returns
- Returns true on success, false if otherwise.