Drag[en]gine Script Module DragonScript 1.23
|
Drag[en]gine game engine. More...
Static Public Member Functions | |
Management | |
static float | getElapsedTime () |
Elapsed time since last update. | |
static void | resetTimers () |
Resets elapsed time timer. | |
static Game | getGame () |
Game object. | |
static int | getFPSRate () |
Averaged FPS rate. | |
static void | quit () |
Request game to quit. | |
static void | restart (String info) |
Request game to restart. | |
static bool | getEditMode () |
Game is run in edit mode. | |
static int | loadingResourceCount () |
Number of loading resources. | |
static void | log (String message) |
Log message using engine logger. | |
static Dictionary | getScriptModuleStats () |
Script module states as Dictionary. | |
static bool | getAppActive () |
Application is active (has focus). | |
static void | updateResourceLoading () |
Updates resource loading. | |
static bool | getDefaultEnableGI () |
Default value for EnableGI parameter in cameras. | |
static void | setDefaultEnableGI (bool enable) |
Set default value for EnableGI parameter in cameras. | |
static bool | getDefaultEnableAuralization () |
Default value for EnableAuralization parameter in microphones. | |
static void | setDefaultEnableAuralization (bool enable) |
Set default value for EnableAuralization parameter in microphones. | |
static String | getCompatibleVersion () |
Compatible script version as set in project files. | |
static int | getCompatibleVersionMajor () |
Compatible script version as set in project files. | |
static int | getCompatibleVersionMinor () |
Compatible script version as set in project files. | |
static int | getCompatibleVersionPatch () |
Compatible script version as set in project files. | |
static bool | isCompatibleVersionOlder (int major, int minor) |
Compatible script version is older than given version. | |
static bool | isCompatibleVersionNewer (int major, int minor) |
Compatible script version is newer than given version. | |
static String | getModuleVersion () |
Module version. | |
static int | getModuleVersionMajor () |
Module version. | |
static int | getModuleVersionMinor () |
Module version. | |
static int | getModuleVersionPatch () |
Module version. | |
static bool | isModuleVersionOlder (int major, int minor) |
Module script version is older than given version. | |
static bool | isModuleVersionNewer (int major, int minor) |
Module script version is newer than given version. | |
static String | getUserLocaleLanguage () |
Get current user locale language. | |
static String | getUserLocaleTerritory () |
Get current user locale territory. | |
static Set | getSupportedServices () |
Get all supported service names. | |
Drag[en]gine game engine.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
Application is active (has focus).
|
static |
Compatible script version as set in project files.
|
static |
Compatible script version as set in project files.
|
static |
Compatible script version as set in project files.
|
static |
Compatible script version as set in project files.
|
static |
Default value for EnableAuralization parameter in microphones.
|
static |
Default value for EnableGI parameter in cameras.
|
static |
Game is run in edit mode.
This can be used by editor applications to allow in-editor game previews if supported.
|
static |
Elapsed time since last update.
|
static |
Averaged FPS rate.
|
static |
Game object.
|
static |
Module version.
|
static |
Module version.
|
static |
Module version.
|
static |
Module version.
|
static |
Script module states as Dictionary.
|
static |
Get all supported service names.
Returns Set of String instances.
|
static |
Get current user locale language.
Returns language as ISO 639 language code in lower case. If the locale can not be determined "en" is returned.
|
static |
Get current user locale territory.
Returns language as ISO 3166 country code in lower case. If the locale can not be determined or the locale does not contain a country code empty string is returned.
|
static |
Compatible script version is newer than given version.
|
static |
Compatible script version is older than given version.
|
static |
Module script version is newer than given version.
|
static |
Module script version is older than given version.
|
static |
Number of loading resources.
|
static |
Log message using engine logger.
|
static |
Request game to quit.
Before the next frame update cleans up the game object and shuts down the game engine. This call returns.
|
static |
Resets elapsed time timer.
Calling this before entering the game for the first time avoids a single time large update value which can result in strange effects.
|
static |
Request game to restart.
info | Information to retrieve using Game::getRestartInfo() after restart. |
Before the next frame update cleans up the game object then recreates the game object. In the restarted game 'info' can be retrieved using Game::getRestartInfo() to restore game state if possible. This call returns.
Restarting can be used for example if game modifications are enabled changing scripts files. In contrary to a full game restart this restart is faster and allows to restore the state (typically UI) before the restart using 'info'ยท
|
static |
Set default value for EnableAuralization parameter in microphones.
|
static |
Set default value for EnableGI parameter in cameras.
|
static |
Updates resource loading.
Use this method if resources are loaded asynchronously but the script requires to wait synchronously for the completion.