![]() |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Class representing a Blamite Engine Extension. More...
#include <extensions.h>
Public Member Functions | |
BlamResult | LoadCallbacks () |
Loads all required callbacks for the extension. More... | |
void | LoadOptionalCallbacks () |
Loads all optional callbacks for the extension. More... | |
void | OnEnable () |
Called when the extension is enabled. More... | |
void | OnDisable () |
Called when the extension is disabled. More... | |
Public Attributes | |
std::string | file_path = "" |
The file path to the extension file. More... | |
std::string | name = "" |
The name of the extension. More... | |
std::string | version = "" |
The version of the extension. More... | |
std::string | author = "" |
The author of the extension. More... | |
std::string | url = "" |
A website URL where users can learn more about the extension (such as checking for updates). More... | |
HMODULE | extension_handle = 0 |
Class representing a Blamite Engine Extension.
See the Blam::Extensions namesapce for information on extensions.
BlamResult BlamEngineExtension::LoadCallbacks | ( | ) |
Loads all required callbacks for the extension.
This method will ensure that all required functions are loaded from the extension's DLL.
BlamResult::Success_OK
if all required callbacks were loaded, otherwise returns an error code. If this method fails, the extension should not be loaded. void BlamEngineExtension::LoadOptionalCallbacks | ( | ) |
Loads all optional callbacks for the extension.
In some cases, extensions may want to implement non-required functions for more specific functionality. This method will load as many of these functions as possible. If any functions are not found, they are simply not called - as they aren't required for extension functionality.
void BlamEngineExtension::OnDisable | ( | ) |
Called when the extension is disabled.
void BlamEngineExtension::OnEnable | ( | ) |
Called when the extension is enabled.
std::string BlamEngineExtension::author = "" |
The author of the extension.
HMODULE BlamEngineExtension::extension_handle = 0 |
std::string BlamEngineExtension::file_path = "" |
The file path to the extension file.
std::string BlamEngineExtension::name = "" |
The name of the extension.
std::string BlamEngineExtension::url = "" |
A website URL where users can learn more about the extension (such as checking for updates).
std::string BlamEngineExtension::version = "" |
The version of the extension.