 |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Namespace surrounding all major engine components.
Definition: api.h:20
void ClearCachedFiles()
Clears all files from the cache.
Definition: cache.cpp:81
Structure to contain a cached data file.
Definition: cache.h:16
@ Cache
The engine will load all content from cache files.
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
@ Log
Writes the error to the game log.
Definition: errors.h:16
std::string WriteFileToCache(void *data, int length, std::string id)
Writes a block of data to the cache as a file.
Definition: cache.cpp:12
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
BlamResult ReadFileFromCache(void **data, int *length, std::string id)
Reads a file from the cache into memory.
Definition: cache.cpp:36
@ Cache
Directory used to store any cached data used by the engine (not to be confused with ....
BlamResult DeleteFileFromCache(std::string id)
Deletes a file from the local cache storage.
Definition: cache.cpp:60
int size
The length of the data, in bytes.
Definition: cache.h:20
std::string id
The ID of the cached file.
Definition: cache.h:18
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
std::string path
The path to the cached file.
Definition: cache.h:21
BLAM void ShowLastErrorInfo(const char *function, BlamErrorDisplayType display_type)
Displays the last error information from the Windows APIs.
Definition: errors.cpp:67
std::string old_address
The original address of the data when it was written to the cache.
Definition: cache.h:19
std::vector< BlamCachedDataFile > cached_files
List of all cached files currently known.
Definition: cache.cpp:10