 |
Blamite Game Engine - blam!
00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
7 #define CONFIG_COMMENT_DELIMETER "#"
8 #define CONFIG_DEFAULT_NAME "engine.cfg"
9 #define CONFIG_COLOR_NAME "console_colors.cfg"
11 #define ENGINE_CFG Blam::Config::GetConfig()
24 namespace Settings::Config
59 std::map<std::string, ConfigOption>
options;
72 std::string
GetString(std::string option);
100 int GetInt(std::string option);
129 ConfigOption* find_config_default_option(std::string option);
140 std::string get_raw_config_value(std::string config_option);
159 BLAM int LoadConfig(std::string filename,
bool load_defaults,
int defaults_resource_id);
160 BLAM int LoadConfig(std::string filename,
bool load_defaults,
int defaults_resource_id,
const char* defaults_res_type);
Namespace surrounding all major engine components.
Definition: blam_api.h:17
BLAM int CheckDefaultConfig()
Checks if the default engine configuration file exists.
Definition: config.cpp:24
std::wstring GetWString(std::string option)
Retrieves the specified config option's value as a wstring.
Definition: config_accessors.cpp:25
std::map< std::string, ConfigOption > default_options
Contains all defaults for the config file.
Definition: config.h:65
BLAM void ExpandConfigOptionPlaceholders()
Expands all placeholders, and converts them to their evaluated values.
Definition: config_internal.cpp:112
BLAM ConfigFile * GetConfig(std::string filename)
Retrieves the specified configuration file.
Definition: config.cpp:227
BLAM ConfigFile * GetConfigData(std::string filename)
Retrieves the specified configuration file.
Definition: config_internal.cpp:186
BLAM void ApplyPlaceholdersToAllConfigFiles()
Applies placeholder values to all configuration files.
Definition: config_internal.cpp:123
Structure to contain data for an option within a Config file.
Definition: config.h:41
BLAM int LoadConfig(std::string filename)
Loads a configuration file from the specified path.
Definition: config.cpp:70
Class to contain data related to a Config file.
Definition: config.h:50
#define BLAM
Definition: config.h:14
std::string value
The raw string value of the option, as it displays in the config file.
Definition: config.h:44
BLAM void InsertConfigFile(ConfigFile config)
Inserts a loaded ConfigFile into the map of loaded configuration files.
Definition: config_internal.cpp:178
std::map< std::string, ConfigOption > options
Contains all options contained within the config file.
Definition: config.h:59
int GetInt(std::string option)
Retrieves the specified config option's value as a float
Definition: config_accessors.cpp:38
BLAM bool IsDefaultConfigReady()
Definition: config_internal.cpp:94
std::string id
The ID of the configuration setting, as it displays in the config file.
Definition: config.h:43
std::string filename
The name of the configuration file.
Definition: config.h:54
std::string path
The path to the configuration file. Can be either absolute or relative.
Definition: config.h:53
float GetFloat(std::string option)
Retrieves the specified config option's value as an int (32-bit integer)
Definition: config_accessors.cpp:45
bool GetBoolean(std::string option)
Retrieves the specified config option's value as a bool
Definition: config_accessors.cpp:61
const char * GetCString(std::string option)
Retrieves the specified config option's value as a const char*, also referred to as a C-String.
Definition: config_accessors.cpp:17
double GetDouble(std::string option)
Retrieves the specified config option's value as a double
Definition: config_accessors.cpp:52
std::string GetString(std::string option)
Retrieves the specified config option's value as a string.
Definition: config_accessors.cpp:10