Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
BlamEngineExtension Class Reference

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
 

Detailed Description

Class representing a Blamite Engine Extension.

See the Blam::Extensions namesapce for information on extensions.

Member Function Documentation

◆ LoadCallbacks()

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.

Returns
BlamResult::Success_OK if all required callbacks were loaded, otherwise returns an error code. If this method fails, the extension should not be loaded.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadOptionalCallbacks()

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.

◆ OnDisable()

void BlamEngineExtension::OnDisable ( )

Called when the extension is disabled.

+ Here is the caller graph for this function:

◆ OnEnable()

void BlamEngineExtension::OnEnable ( )

Called when the extension is enabled.

+ Here is the caller graph for this function:

Member Data Documentation

◆ author

std::string BlamEngineExtension::author = ""

The author of the extension.

◆ extension_handle

HMODULE BlamEngineExtension::extension_handle = 0

◆ file_path

std::string BlamEngineExtension::file_path = ""

The file path to the extension file.

◆ name

std::string BlamEngineExtension::name = ""

The name of the extension.

◆ url

std::string BlamEngineExtension::url = ""

A website URL where users can learn more about the extension (such as checking for updates).

◆ version

std::string BlamEngineExtension::version = ""

The version of the extension.


The documentation for this class was generated from the following files: