 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
_OpenWebURL __Keystone_OpenWebURL
Definition: keystone.cpp:14
BLAM bool OpenLocalURL(std::string url)
Definition: keystone.cpp:86
#define ENGINE_CFG_SECTION(section_name)
Macro to quickly access a configuration section from the engine configuration file.
Definition: config.h:29
bool(CALLBACK * _OpenLocalURL)(std::string url)
Definition: keystone.cpp:11
_OpenLocalURL __Keystone_OpenLocalURL
Definition: keystone.cpp:15
BLAM bool OpenWebURL(std::string url)
Definition: keystone.cpp:80
BLAM void AddMessage(BlamLogMessage message)
Adds a message to the queue.
Definition: queue.cpp:70
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
bool bypass_queue
Whether or not to ignore the queue after initial startup.
Definition: queue.cpp:21
Class representing a report file.
Definition: logger.h:140
HMODULE keystone_handle
The module handle of the Keystone library.
Definition: keystone.cpp:7
bool use_reports
Whether or not logs are being written to multiple report files.
Definition: queue.cpp:23
std::string last_log_message
Stores the text of the most recent log message. Used to check for duplicates.
Definition: queue.cpp:16
std::vector< BlamLogMessage > message_queue
Queue of any log messages that need to be written to console and/or log files.
Definition: queue.cpp:13
bool lock
Whether or not the queue is currently locked to aid in thread safety.
Definition: queue.cpp:15
BLAM void StopFlushThread()
Definition: queue.cpp:217
BlamResult load_keystone_function(T *function_callback, const char *function_name)
Definition: keystone.cpp:17
long last_duplicate_message_tick
The tick number when the last duplicate message was received. Not yet used.
Definition: queue.cpp:19
BLAM int MaxTicksPerSecond()
Retrieves the maximum number of ticks per second.
Definition: tick.cpp:152
BLAM std::vector< BlamLogMessage > * GetQueue()
Retrieves the current message queue.
Definition: queue.cpp:187
BLAM void ShutdownModule()
Definition: keystone.cpp:65
int duplicate_count
The number of duplicate messages recieved.
Definition: queue.cpp:18
unsigned long long uint64_t
Definition: stdint.h:18
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:177
#define BLAM
Definition: keystone.h:9
_ShowErrorDialog __Keystone_ShowErrorDialog
Definition: keystone.cpp:13
bool LogEvent(BlamLogMessage message)
Writes a message to the log file, console, and/or STDOUT depending on the message.
Definition: BlamReport.cpp:77
BLAM void Flush()
Flushes the queue, causing all messages to be written to all places they are configured to do so.
Definition: queue.cpp:38
bool IsReady()
Whether or not the report is ready for use.
Definition: BlamReport.cpp:174
BLAM BlamResult SetupModule()
Definition: keystone.cpp:36
int max_errors_before_supression
Controls the maximum amount of error messages shown before they are suppressed from the in-game conso...
Definition: queue.cpp:22
Definition: keystone.h:12
BLAM void Shutdown()
Flushes the queue and may later be used to perform other shutdown tasks.
Definition: queue.cpp:32
bool suppress_duplicates
Whether or not to continue suppressing log messages.
Definition: queue.cpp:17
BLAM HMODULE GetKeystoneModuleHandle()
Definition: keystone.cpp:70
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
BLAM void StartFlushThread()
Definition: queue.cpp:212
BLAM std::vector< BlamReport * > GetReports()
Retrieves the list of reports.
Definition: logger.cpp:209
uint64_t last_flush_time
Definition: queue.cpp:194
bool(CALLBACK * _OpenWebURL)(std::string url)
Definition: keystone.cpp:10
BLAM int ShowErrorDialog(bool allow_safemode, bool allow_continue, const char *text)
Definition: keystone.cpp:75
BLAM void LogEventAsync(std::string message)
Logs a message to the log and/or console asynchronously.
Definition: aliases.cpp:112
int(CALLBACK * _ShowErrorDialog)(bool allow_safemode, bool allow_continue, const char *text)
Definition: keystone.cpp:9
bool run_flush_thread
Definition: queue.cpp:192
bool flush_thread_stopped
Definition: queue.cpp:193
BLAM void FlushThread()
Definition: queue.cpp:196
BLAM std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: engine_text.cpp:48
BLAM void Initialize()
Initializes the logger queue.
Definition: queue.cpp:25
BLAM BlamReport * GetReport(BlamReportType type)
Retrieves report data with the specified type.
Definition: logger.cpp:179
BLAM int ShowWin32ErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode)
Shows an Error dialog with the specified error details and result handle.
Definition: errors.cpp:169