Drag[en]gine Script Module DragonScript Script API 1.0
Immutable animation resources. More...
|Normalized filename the animation has been loaded from. More...|
|float||getMovePlaytime (String name)|
|Playtime in seconds of named move. More...|
|bool||equals (Object other)|
|Animation is equal to another object. More...|
|Hash code for use as dictionary keys. More...|
|Animation||new (String filename)|
|Load animation from file. More...|
|static void||loadAsynchron (String filename, ResourceNotifier notifier)|
|Load animation from file asynchronously. More...|
Immutable animation resources.
This is a native class. It can not be subclassed.
Normalized filename the animation has been loaded from.
Playtime in seconds of named move.
If the move is not found 0 is returned.
Hash code for use as dictionary keys.
Load animation from file asynchronously.
Registers a request in the game engine to load an animation. Once finished or if the file is already loaded the notifier is used to deliver the loaded animation or null if the loading failed.
Load animation from file.
If the animation file has been already loaded it is assigned to this object. If the animation is not loaded yet the engine loads the animation. This call blocks until the animation is fully loaded and ready to be used. For asynchronous loading use loadAsynchron(). Multiple objects can point to the same loaded animation resource. Once no object instance uses an animation file anymore it is released from memory.