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. More... | |
static void | resetTimers () |
Resets elapsed time timer. More... | |
static Game | getGame () |
Game object. More... | |
static int | getFPSRate () |
Averaged FPS rate. More... | |
static void | quit () |
Request game to quit. More... | |
static void | restart (String info) |
Request game to restart. More... | |
static bool | getEditMode () |
Game is run in edit mode. More... | |
static int | loadingResourceCount () |
Number of loading resources. More... | |
static void | log (String message) |
Log message using engine logger. More... | |
static Dictionary | getScriptModuleStats () |
Script module states as Dictionary. More... | |
static bool | getAppActive () |
Application is active (has focus). More... | |
static void | updateResourceLoading () |
Updates resource loading. More... | |
static bool | getDefaultEnableGI () |
Default value for EnableGI parameter in cameras. More... | |
static void | setDefaultEnableGI (bool enable) |
Set default value for EnableGI parameter in cameras. More... | |
static bool | getDefaultEnableAuralization () |
Default value for EnableAuralization parameter in microphones. More... | |
static void | setDefaultEnableAuralization (bool enable) |
Set default value for EnableAuralization parameter in microphones. More... | |
static String | getCompatibleVersion () |
Compatible script version as set in project files. More... | |
static int | getCompatibleVersionMajor () |
Compatible script version as set in project files. More... | |
static int | getCompatibleVersionMinor () |
Compatible script version as set in project files. More... | |
static int | getCompatibleVersionPatch () |
Compatible script version as set in project files. More... | |
static bool | isCompatibleVersionOlder (int major, int minor) |
Compatible script version is older than given version. More... | |
static bool | isCompatibleVersionNewer (int major, int minor) |
Compatible script version is newer than given version. More... | |
static String | getModuleVersion () |
Module version. More... | |
static int | getModuleVersionMajor () |
Module version. More... | |
static int | getModuleVersionMinor () |
Module version. More... | |
static int | getModuleVersionPatch () |
Module version. More... | |
static bool | isModuleVersionOlder (int major, int minor) |
Module script version is older than given version. More... | |
static bool | isModuleVersionNewer (int major, int minor) |
Module script version is newer than given version. More... | |
static String | getUserLocaleLanguage () |
Get current user locale language. More... | |
static String | getUserLocaleTerritory () |
Get current user locale territory. More... | |
static Set | getSupportedServices () |
Get all supported service names. More... | |
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 |
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.