Platformer
Platformer
ConfigParser.hpp
1 #ifndef CFG_PARSER_HPP
2 #define CFG_PARSER_HPP
3 
4 #include <memory>
5 #include <string>
6 #include <unordered_map>
7 #include <vector>
8 
12 class ConfigParser {
13  public:
15  static void ParseLevelPaths(
16  std::vector<std::string>& levelPaths);
17 
22  static std::unordered_map<std::string, std::string>
24  std::string locale);
25 
29  static std::string LEVELS_PATH;
30 
35  static std::string DefaultLocale();
36 };
37 
38 #endif
static std::unordered_map< std::string, std::string > ParseLocale(std::string locale)
Gets the map of localization texts and keys from the given locale.
Definition: ConfigParser.cpp:29
static std::string DefaultLocale()
Gets the default localization from the default locale file.
Definition: ConfigParser.cpp:46
This class parses the configuration files within our Assets folder.
Definition: ConfigParser.hpp:12
static std::string LEVELS_PATH
The name of the file that holds the list of level names.
Definition: ConfigParser.hpp:29
static void ParseLevelPaths(std::vector< std::string > &levelPaths)
Puts the list of all level paths into the give list.
Definition: ConfigParser.cpp:10