|
Drag[en]gine Script Module DragonScript 1.35
|
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 bool | getDpiAware () |
| Scripts are DPI aware. | |
| static void | setDpiAware (bool dpiAware) |
| Set if scripts are DPI aware. | |
| 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).
References getScriptModuleStats(), loadingResourceCount(), and log().
Referenced by updateResourceLoading().
|
static |
Compatible script version as set in project files.
Referenced by isCompatibleVersionOlder().
|
static |
Compatible script version as set in project files.
References getDpiAware().
Referenced by isCompatibleVersionNewer().
|
static |
Compatible script version as set in project files.
Referenced by getModuleVersionMajor().
|
static |
Compatible script version as set in project files.
References setDpiAware().
Referenced by getModuleVersionMinor().
|
static |
Default value for EnableAuralization parameter in microphones.
Referenced by getDpiAware().
|
static |
Default value for EnableGI parameter in cameras.
Referenced by setDefaultEnableAuralization().
|
static |
Scripts are DPI aware.
If enabled scripts are DPI aware and apply scaling properly. If disabled the engine modules apply the scaling making DPI changes transparent. Default is disabled.
References getDefaultEnableAuralization(), and setDefaultEnableGI().
Referenced by getCompatibleVersionMajor().
|
static |
Game is run in edit mode.
This can be used by editor applications to allow in-editor game previews if supported.
Referenced by getScriptModuleStats().
|
static |
|
static |
|
static |
|
static |
|
static |
Module version.
References getCompatibleVersionMinor().
Referenced by getUserLocaleLanguage().
|
static |
Module version.
References getCompatibleVersionPatch().
Referenced by getUserLocaleTerritory().
|
static |
Module version.
References isCompatibleVersionOlder().
Referenced by getSupportedServices().
|
static |
|
static |
Get all supported service names.
Returns Set of String instances.
References getModuleVersionPatch(), getSupportedServices(), getUserLocaleLanguage(), getUserLocaleTerritory(), isModuleVersionNewer(), and isModuleVersionOlder().
Referenced by getSupportedServices().
|
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.
References getModuleVersion(), and getModuleVersionMajor().
Referenced by getSupportedServices().
|
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.
References getModuleVersionMinor().
Referenced by getSupportedServices().
|
static |
Compatible script version is newer than given version.
References getCompatibleVersionMajor().
Referenced by isModuleVersionNewer().
|
static |
Compatible script version is older than given version.
References getCompatibleVersion().
Referenced by getModuleVersionPatch().
|
static |
Module script version is newer than given version.
References isCompatibleVersionNewer().
Referenced by getSupportedServices().
|
static |
Module script version is older than given version.
Referenced by getSupportedServices().
|
static |
|
static |
Log message using engine logger.
Referenced by getAppActive().
|
static |
|
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.
Referenced by getGame().
|
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'ยท
Referenced by loadingResourceCount().
|
static |
Set default value for EnableAuralization parameter in microphones.
References getDefaultEnableGI().
Referenced by setDpiAware().
|
static |
Set default value for EnableGI parameter in cameras.
References updateResourceLoading().
Referenced by getDpiAware().
|
static |
Set if scripts are DPI aware.
If enabled scripts are DPI aware and apply scaling properly. If disabled the engine modules apply the scaling making DPI changes transparent. Default is disabled.
References setDefaultEnableAuralization().
Referenced by getCompatibleVersionPatch().
|
static |
Updates resource loading.
Use this method if resources are loaded asynchronously but the script requires to wait synchronously for the completion.
References getAppActive().
Referenced by setDefaultEnableGI().