Platformer
Platformer
Static Public Member Functions | Static Public Attributes | List of all members
ConfigParser Class Reference

This class parses the configuration files within our Assets folder. More...

#include <ConfigParser.hpp>

Collaboration diagram for ConfigParser:
Collaboration graph

Static Public Member Functions

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 Public Attributes

static std::string LEVELS_PATH = "levels.txt"
 The name of the file that holds the list of level names.
 

Detailed Description

This class parses the configuration files within our Assets folder.

Member Function Documentation

◆ DefaultLocale()

std::string ConfigParser::DefaultLocale ( )
static

Gets the default localization from the default locale file.

Returns
The default localization language
Here is the caller graph for this function:

◆ ParseLevelPaths()

void ConfigParser::ParseLevelPaths ( std::vector< std::string > &  levelPaths)
static

Puts the list of all level paths into the give list.

Parameters
levelPathsThe list of level paths to be filled
Here is the caller graph for this function:

◆ 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
localeThe name of the locale

The documentation for this class was generated from the following files: