Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
keystone.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Windows.h>
4 #include <string>
5 
7 
8 #ifndef BLAM
9 #define BLAM
10 #endif
11 
13 {
14  BLAM BlamResult SetupModule();
15  BLAM void ShutdownModule();
16  BLAM HMODULE GetKeystoneModuleHandle();
17 
18  BLAM int ShowErrorDialog(bool allow_safemode, bool allow_continue, const char* text);
19 
20  BLAM bool OpenWebURL(std::string url);
21  BLAM bool OpenLocalURL(std::string url);
22 }
__Keystone_OpenWebURL
_OpenWebURL __Keystone_OpenWebURL
Definition: keystone.cpp:14
Blam::Modules::Keystone::OpenLocalURL
BLAM bool OpenLocalURL(std::string url)
Definition: keystone.cpp:86
ENGINE_CFG_SECTION
#define ENGINE_CFG_SECTION(section_name)
Macro to quickly access a configuration section from the engine configuration file.
Definition: config.h:29
_OpenLocalURL
bool(CALLBACK * _OpenLocalURL)(std::string url)
Definition: keystone.cpp:11
__Keystone_OpenLocalURL
_OpenLocalURL __Keystone_OpenLocalURL
Definition: keystone.cpp:15
Blam::Modules::Keystone::OpenWebURL
BLAM bool OpenWebURL(std::string url)
Definition: keystone.cpp:80
Blam::Logger::Queue::AddMessage
BLAM void AddMessage(BlamLogMessage message)
Adds a message to the queue.
Definition: queue.cpp:70
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
bypass_queue
bool bypass_queue
Whether or not to ignore the queue after initial startup.
Definition: queue.cpp:21
BlamReport
Class representing a report file.
Definition: logger.h:140
keystone_handle
HMODULE keystone_handle
The module handle of the Keystone library.
Definition: keystone.cpp:7
logger.h
use_reports
bool use_reports
Whether or not logs are being written to multiple report files.
Definition: queue.cpp:23
last_log_message
std::string last_log_message
Stores the text of the most recent log message. Used to check for duplicates.
Definition: queue.cpp:16
keystone.h
message_queue
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
lock
bool lock
Whether or not the queue is currently locked to aid in thread safety.
Definition: queue.cpp:15
Blam::Logger::Queue::StopFlushThread
BLAM void StopFlushThread()
Definition: queue.cpp:217
load_keystone_function
BlamResult load_keystone_function(T *function_callback, const char *function_name)
Definition: keystone.cpp:17
last_duplicate_message_tick
long last_duplicate_message_tick
The tick number when the last duplicate message was received. Not yet used.
Definition: queue.cpp:19
engine_text.h
Blam::Tick::MaxTicksPerSecond
BLAM int MaxTicksPerSecond()
Retrieves the maximum number of ticks per second.
Definition: tick.cpp:152
Blam::Logger::Queue::GetQueue
BLAM std::vector< BlamLogMessage > * GetQueue()
Retrieves the current message queue.
Definition: queue.cpp:187
Blam::Modules::Keystone::ShutdownModule
BLAM void ShutdownModule()
Definition: keystone.cpp:65
duplicate_count
int duplicate_count
The number of duplicate messages recieved.
Definition: queue.cpp:18
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
uint64_t
unsigned long long uint64_t
Definition: stdint.h:18
errors.h
tick.h
Blam::Tick::GetTotalRuntimeTicks
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:177
BLAM
#define BLAM
Definition: keystone.h:9
__Keystone_ShowErrorDialog
_ShowErrorDialog __Keystone_ShowErrorDialog
Definition: keystone.cpp:13
BlamReport::LogEvent
bool LogEvent(BlamLogMessage message)
Writes a message to the log file, console, and/or STDOUT depending on the message.
Definition: BlamReport.cpp:77
Blam::Logger::Queue::Flush
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
BlamReport::IsReady
bool IsReady()
Whether or not the report is ready for use.
Definition: BlamReport.cpp:174
Blam::Modules::Keystone::SetupModule
BLAM BlamResult SetupModule()
Definition: keystone.cpp:36
max_errors_before_supression
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
Blam::Modules::Keystone
Definition: keystone.h:12
Blam::Logger::Queue::Shutdown
BLAM void Shutdown()
Flushes the queue and may later be used to perform other shutdown tasks.
Definition: queue.cpp:32
suppress_duplicates
bool suppress_duplicates
Whether or not to continue suppressing log messages.
Definition: queue.cpp:17
Blam::Modules::Keystone::GetKeystoneModuleHandle
BLAM HMODULE GetKeystoneModuleHandle()
Definition: keystone.cpp:70
ENGINE_TEXT
#define ENGINE_TEXT(string_id)
Definition: engine_text.h:7
Blam::Logger::Queue::StartFlushThread
BLAM void StartFlushThread()
Definition: queue.cpp:212
Blam::Logger::GetReports
BLAM std::vector< BlamReport * > GetReports()
Retrieves the list of reports.
Definition: logger.cpp:209
last_flush_time
uint64_t last_flush_time
Definition: queue.cpp:194
_OpenWebURL
bool(CALLBACK * _OpenWebURL)(std::string url)
Definition: keystone.cpp:10
Blam::Modules::Keystone::ShowErrorDialog
BLAM int ShowErrorDialog(bool allow_safemode, bool allow_continue, const char *text)
Definition: keystone.cpp:75
config.h
Blam::Logger::LogEventAsync
BLAM void LogEventAsync(std::string message)
Logs a message to the log and/or console asynchronously.
Definition: aliases.cpp:112
_ShowErrorDialog
int(CALLBACK * _ShowErrorDialog)(bool allow_safemode, bool allow_continue, const char *text)
Definition: keystone.cpp:9
run_flush_thread
bool run_flush_thread
Definition: queue.cpp:192
flush_thread_stopped
bool flush_thread_stopped
Definition: queue.cpp:193
Blam::Logger::Queue::FlushThread
BLAM void FlushThread()
Definition: queue.cpp:196
Blam::EngineText::LookupErrorString
BLAM std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: engine_text.cpp:48
Blam::Logger::Queue::Initialize
BLAM void Initialize()
Initializes the logger queue.
Definition: queue.cpp:25
Blam::Logger::GetReport
BLAM BlamReport * GetReport(BlamReportType type)
Retrieves report data with the specified type.
Definition: logger.cpp:179
Blam::Error::ShowWin32ErrorDialog
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