This class parses the configuration files within our Assets folder.
More...
#include <ConfigParser.hpp>
|
static void | ParseLevelPaths (std::vector< std::string > &levelPaths) |
| Puts the list of all level paths into the give list. More...
|
|
static std::unordered_map< std::string, std::string > | ParseLocale (std::string locale) |
| Gets the map of localization texts and keys from the given locale. More...
|
|
static std::string | DefaultLocale () |
| Gets the default localization from the default locale file. More...
|
|
|
static std::string | LEVELS_PATH = "levels.txt" |
| The name of the file that holds the list of level names.
|
|
This class parses the configuration files within our Assets folder.
◆ DefaultLocale()
std::string ConfigParser::DefaultLocale |
( |
| ) |
|
|
static |
Gets the default localization from the default locale file.
- Returns
- The default localization language
◆ ParseLevelPaths()
void ConfigParser::ParseLevelPaths |
( |
std::vector< std::string > & |
levelPaths | ) |
|
|
static |
Puts the list of all level paths into the give list.
- Parameters
-
levelPaths | The list of level paths to be filled |
◆ ParseLocale()
std::unordered_map< std::string, std::string > ConfigParser::ParseLocale |
( |
std::string |
locale | ) |
|
|
static |
Gets the map of localization texts and keys from the given locale.
- Returns
- The map of localization texts and keys
- Parameters
-
locale | The name of the locale |
The documentation for this class was generated from the following files: