Namespace: dmEngine
Language: C++
Type: Defold C++
File: extension.hpp
Source: engine/engine/src/dmsdk/engine/extension.hpp
Include: dmsdk/engine/extension.hpp
SDK Engine extension API documentation
Type: MACRO define for debug builds
Examples
Only enable code in debug builds
#if defined(DM_DEBUG)
// ...
#endif
Type: MACRO define for headless builds
Examples
Only enable code in headless builds
#if defined(DM_HEADLESS)
// ...
#endif
Type: MACRO define for release builds
Examples
Only enable code in release builds
#if defined(DM_RELEASE)
// ...
#endif
Type: FUNCTION get the config file
Parameters
app_params (dmExtension::AppParams*) - The app params sent to the extension dmExtension::AppInitialize / dmExtension::AppInitializeReturns
config (dmConfigFile::HConfig) - The game project config fileType: FUNCTION get the game object register
Parameters
app_params (dmExtension::AppParams*) - The app params sent to the extension dmExtension::AppInitialize / dmExtension::AppInitializeReturns
register (dmGameObject::HRegister) - The game object registerType: FUNCTION get the hid context
Parameters
app_params (dmExtension::AppParams*) - The app params sent to the extension dmExtension::AppInitialize / dmExtension::AppInitializeReturns
context (dmHID::HContext) - The hid contextType: FUNCTION get the web server handle
Notes
Parameters
app_params (dmExtension::AppParams*) - The app params sent to the extension dmExtension::AppInitialize / dmExtension::AppInitializeReturns
server (dmWebServer::HServer) - The web server handle