used for loading and saving application configuration info More...
Public Member Functions | |
boolean | getConfigBool (string inConfigItemName) |
get boolean configuration value More... | |
number | getConfigFloat (string inConfigItemName) |
get floating point numerical configuration value More... | |
number | getConfigLong (string inConfigItemName) |
get integer numerical configuration value More... | |
string | getConfigString (string inConfigItemName) |
get string configuration value More... | |
setConfigBool (string inConfigItemName, boolean inValue) | |
set boolean configuration value More... | |
setConfigFloat (string inConfigItemName, number inValue) | |
set floating point numerical configuration value More... | |
setConfigLong (string inConfigItemName, int inValue) | |
set integer numerical configuration value More... | |
setConfigString (string inConfigItemName, string inValue) | |
set string configuration value More... | |
boolean | useConfig (string inConfigName) |
specify the abstract configuration More... | |
Related Functions | |
(Note that these are not member functions.) | |
cfg | |
the singleton instance of the ConfigManager More... | |
getConfigManager | |
get the singleton instance of the ConfigManager used by the pdg framework More... | |
used for loading and saving application configuration info
Interface to Save and Load game config values. This class provides simple platform neutral configuration management. It does the right thing on each platform to save and load values that need to persist between game sessions. It is not intended to be used to hold saved games.
getConfigBool | ( | string | inConfigItemName | ) |
get boolean configuration value
Get the boolean value for a named configuration item. If the item does not exist, undefined will be returned rather than a boolean.
inConfigItemName | the name of the configuration item |
getConfigFloat | ( | string | inConfigItemName | ) |
get floating point numerical configuration value
Get the numerical value for a named configuration item. If the item does not exist, undefined will be returned rather than a number.
inConfigItemName | the name of the configuration item |
getConfigLong | ( | string | inConfigItemName | ) |
get integer numerical configuration value
Get the numerical value for a named configuration item. If the item does not exist, undefined will be returned rather than a number.
inConfigItemName | the name of the configuration item |
getConfigString | ( | string | inConfigItemName | ) |
get string configuration value
Get the string value for a named configuration item. If the item does not exist, undefined will be returned rather than a string.
inConfigItemName | the name of the configuration item |
setConfigBool | ( | string | inConfigItemName, |
boolean | inValue | ||
) |
set boolean configuration value
Set the boolean value for the named configuration item
inConfigItemName | the name of the configuration item |
inValue | the value for the config item |
setConfigFloat | ( | string | inConfigItemName, |
number | inValue | ||
) |
set floating point numerical configuration value
Set the numeric value for the named configuration item
inConfigItemName | the name of the configuration item |
inValue | the value for the config item |
setConfigLong | ( | string | inConfigItemName, |
int | inValue | ||
) |
set integer numerical configuration value
Set the integer value for the named configuration item
inConfigItemName | the name of the configuration item |
inValue | the value for the config item |
setConfigString | ( | string | inConfigItemName, |
string | inValue | ||
) |
set string configuration value
Set the string value for the named configuration item
inConfigItemName | the name of the configuration item |
inValue | the value for the config item |
useConfig | ( | string | inConfigName | ) |
specify the abstract configuration
Specify an abstract name for the config to be used. Implementations will use this to build the name of a file on disk, a registry entry, or something else that's appropriate for the platform you are running on.
inConfigName | Only alpha characters (uppercase and lowercase) are allowed, name is not case sensitive |
|
related |
get the singleton instance of the ConfigManager used by the pdg framework