 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
7 #include <Strings/components/settings/config/config.h>
12 #define CONFIG_VER "1"
13 #define CONFIG_COMMENT_DELIMETER "#"
14 #define CONFIG_DEFAULT_NAME "engine.cfg"
15 #define CONFIG_COLOR_NAME "console_colors.cfg"
22 #define ENGINE_CFG Blam::Config::GetConfig()
29 #define ENGINE_CFG_SECTION(section_name) Blam::Settings::Config::GetEngineConfiguration()->GetConfigurationSection(section_name)
36 #define ENGINE_DATA_PATH(path) Blam::Settings::Paths::GetEngineDataPath(path)
43 #define USER_DATA_PATH(path) Blam::Settings::Paths::GetUserDataPath(path)
105 namespace Settings::Config
126 namespace Settings::Paths
246 std::string
GetString(std::string option);
268 int GetInt(std::string option);
Namespace surrounding all major engine components.
Definition: blam_api.h:28
@ Screenshots
Directory used to store engine screenshots. Defaults to {DataRoot}/screenshots/.
BLAM BlamConfigurationFile * GetEngineConfiguration()
Definition: config.cpp:58
@ Mods
Directory storing user-created mod packages. Defaults to {DataRoot}/mods/.
@ Cache
The engine will load all content from cache files.
BLAM BlamUserDataFolder GetUserDataFolderFromString(std::string folder)
Attempts to convert a string to the equivalent user data folder.
Definition: paths.cpp:344
@ Reports
Directory used to store the latest report (log) files. Defaults to {DataRoot}/reports/.
BLAM std::string GetDefaultEngineDataPath(BlamEngineDataFolder folder)
Retrieves a default value of a given engine data directory.
Definition: paths.cpp:138
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
@ DataRoot
The root of all game engine data. Defaults to ./
std::string filename
The legacy configuration file name.
Definition: config.h:226
#define CONFIG_COMMENT_DELIMETER
The character that indicates a commented-out line.
Definition: config.h:13
BLAM bool IsConfigurationAvailable(std::string filename)
Definition: config.cpp:94
BLAM ConfigFile * GetConfig()
Retrieves the engine configuration file.
Definition: compat.cpp:5
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:43
BLAM std::string GetEngineDataPath(BlamEngineDataFolder folder)
Retrieves the configured value of a given engine directory.
Definition: paths.cpp:205
@ Fonts
Directory used for game engine fonts. Defaults to ./maps/fonts/
@ LogArchives
Directory used to store previous log archives. Defaults to {DataRoot}/logs/.
BLAM BlamConfigurationFile * GetConfiguration(std::string filename)
Definition: config.cpp:70
int GetInt(std::string option)
Retrieves an integer option from a configuration file.
Definition: compat.cpp:98
BlamEngineDataFolder
Enumerator listing all possible engine data folders.
Definition: config.h:59
ConfigFile(std::string _filename)
Prepares a new legacy configuration file.
Definition: compat.cpp:33
BLAM BlamResult LoadConfiguration(std::string filename)
Definition: config.cpp:16
#define BLAM
Definition: config.h:46
BLAM std::string GetDefaultUserDataPath(BlamUserDataFolder folder)
Retrieves a default value of a given user data directory.
Definition: paths.cpp:64
BLAM void ExpandFilePlaceholders(BlamConfigurationFile *file)
Definition: placeholder_expand.cpp:143
@ Tags
The engine will load all content from tags.
BlamUserDataFolder
Enumerator listing all possible user data folders.
Definition: config.h:86
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:36
BLAM std::string ParseFolderPlaceholders(std::string string)
Parses any engine/user data folder placeholders within a string.
Definition: paths.cpp:382
BLAM void ExpandAllPlaceholders()
Definition: config.cpp:106
BLAM std::map< std::string, BlamConfigurationFile * > * GetConfigurationFiles()
Definition: config.cpp:116
@ Resources
Directory containing other resources and data, usually string tables and globals. Defaults to ....
@ Extensions
Directory used for engine extensions. Defaults to ./extensions/
@ Maps
Directory used for storing built-in cache files. Defaults to ./maps/
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting changing font or adding deleting some characters in from glyph table PL means Public License Copyright Holder means whoever is named in the copyright or copyrights for the Font You means the or person redistributing or modifying the Font Freely Available means that you have the freedom to copy or modify the Font as well as redistribute copies of the Font under the same conditions you not price If you you can charge for this service Copying &Distribution You may copy and distribute verbatim copies of this Font in any without provided that you retain this license including modifying reordering converting changing font or adding deleting some characters in from glyph and copy and distribute such modifications under the terms of Section provided that the following conditions are such as by offering access to copy the modifications from a designated or distributing the modifications on a medium customarily used for software interchange c If the modified fonts normally reads commands interactively when you must cause it
Definition: ARPHICPL.TXT:36
bool GetBoolean(std::string option)
Retrieves a boolean option from a configuration file.
Definition: compat.cpp:38
@ DefaultConfigs
Directory containing default configuration files. Defaults to ./content/blam/default_configs/
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current MUST include this txt file
Definition: chiropteraDM.txt:95
#define CONFIG_DEFAULT_NAME
The filename of the default engine configuration.
Definition: config.h:14
BLAM BlamResult LoadEngineConfiguration()
Definition: config.cpp:11
@ Plugins
Directory used to store built-in plugin files for use with the Editing Kit. Defaults to ....
BLAM std::string GetUserDataPath(BlamUserDataFolder folder)
Retrieves the configured value of a given user directory.
Definition: paths.cpp:275
std::string GetString(std::string option)
Retrieves a string option from a configuration file.
Definition: compat.cpp:58
Data structure representing a legacy configuration file.
Definition: config.h:224
@ DataRoot
The root of all user data. Defaults to BlamStrings::Utils::IO::GetEngineDataRoot().
@ Gallery
Directory containing general-purpose images. Defaults to ./content/Gallery/
std::vector< Blam::Config::ConfigFile > compat_files
Definition: compat.cpp:3
@ Content
Directory containing general-purpose resources. Defaults to ./content/
BLAM bool IsEngineConfigurationAvailable()
Definition: config.cpp:82
std::map< std::string, BlamConfigurationFile * > configuration_files
Definition: config.cpp:9
float GetFloat(std::string option)
Retrieves a float option from a configuration file.
Definition: compat.cpp:78
BLAM BlamEngineDataFolder GetEngineDataFolderFromString(std::string folder)
Attempts to convert a string to the equivalent engine data folder.
Definition: paths.cpp:363