![]() |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Namespace for anything related to engine configuration files. More...
Functions | |
BLAM BlamResult | LoadEngineConfiguration () |
Loads the default game engine configuration (engine.cfg). More... | |
BLAM BlamResult | LoadConfiguration (std::string filename) |
Loads a configuration file from a file path. More... | |
BLAM BlamResult | LoadConfiguration (std::string filename, std::string defaults_filename) |
Loads a configuration file from a file path. More... | |
BLAM BlamConfigurationFile * | GetEngineConfiguration () |
Retrieves the main engine configuration file. More... | |
BLAM BlamConfigurationFile * | GetConfiguration (std::string filename) |
Retrieves a configuration file from a file path. More... | |
BLAM bool | IsEngineConfigurationAvailable () |
Checks whether or not the main engine configuration is currently available. More... | |
BLAM bool | IsConfigurationAvailable (std::string filename) |
Checks whether or not a given configuration file is currently available. More... | |
BLAM void | ExpandAllPlaceholders () |
Expands placeholders within all loaded configuration files. More... | |
BLAM void | ExpandFilePlaceholders (BlamConfigurationFile *file) |
Expands placeholders within a specific configuration file. More... | |
BLAM std::map< std::string, BlamConfigurationFile * > * | GetConfigurationFiles () |
Retrieves the map of all loaded configuration files. More... | |
Namespace for anything related to engine configuration files.
void Blam::Settings::Config::ExpandAllPlaceholders | ( | ) |
Expands placeholders within all loaded configuration files.
void Blam::Settings::Config::ExpandFilePlaceholders | ( | BlamConfigurationFile * | file | ) |
Expands placeholders within a specific configuration file.
file | - The configuration file to expand placeholders within. |
BlamConfigurationFile * Blam::Settings::Config::GetConfiguration | ( | std::string | filename | ) |
Retrieves a configuration file from a file path.
filename | - The file path of the desired configuration file. Note that this must EXACTLY match the path that was provided to LoadConfiguration() when the file was first loaded. |
nullptr
if the specified configuration file could not be found. std::map< std::string, BlamConfigurationFile * > * Blam::Settings::Config::GetConfigurationFiles | ( | ) |
Retrieves the map of all loaded configuration files.
BlamConfigurationFile * Blam::Settings::Config::GetEngineConfiguration | ( | ) |
Retrieves the main engine configuration file.
nullptr
if the engine config is not yet loaded or failed to load. bool Blam::Settings::Config::IsConfigurationAvailable | ( | std::string | filename | ) |
Checks whether or not a given configuration file is currently available.
filename | - The file path of the desired configuration file. Note that this must EXACTLY match the path that was provided to LoadConfiguration() when the file was first loaded. |
true
if the specified configuration file is available, otherwise returns false
. bool Blam::Settings::Config::IsEngineConfigurationAvailable | ( | ) |
Checks whether or not the main engine configuration is currently available.
true
if the engine configuration is available, otherwise returns false
. BlamResult Blam::Settings::Config::LoadConfiguration | ( | std::string | filename | ) |
Loads a configuration file from a file path.
filename | - The file path of the configuration file. |
BlamResult::Success_OK
if the config file was loaded successfully, otherwise returns an error code. BlamResult Blam::Settings::Config::LoadConfiguration | ( | std::string | filename, |
std::string | defaults_filename | ||
) |
Loads a configuration file from a file path.
filename | - The file path of the configuration file. |
defaults_filename | - The file path of the configuration file which contains all default options. |
BlamResult::Success_OK
if the config file was loaded successfully, otherwise returns an error code. BlamResult Blam::Settings::Config::LoadEngineConfiguration | ( | ) |
Loads the default game engine configuration (engine.cfg).
BlamResult::Success_OK
if the config file was loaded successfully, otherwise returns an error code.