|
Drag[en]gine Script Module DragonScript 1.35
|
Animation resource element class property for use with XML loading. More...
Public Member Functions | |
| void | copyValue (ElementClass elementClass, ElementClassProperty property) |
| Copy value from another element class property of the same type. | |
| void | failedLoading (String filename, ResourceLoaderType resourceType) |
| Resource failed loading. | |
| void | finishedLoading (String path, ResourceLoaderType resourceType, Object resource) |
| Resource has finished loading. | |
| Animation | getAnimation () |
| Animation resource or null if not present. | |
| Animation | getAnimation (StubWithProperties stub, ElementClass eclass) |
| Animation modified by stub property if present. | |
| bool | getHasPreloaded () |
| Property has been preloaded. | |
| String | getPath () |
| Path to animation resource. | |
| bool | logPreloadProblems (ElementClass elementClass, Console console) |
| Log preloading problems. | |
| ECPAnimation | new (String name) |
| Create property. | |
| ECPAnimation | new (String name, String path) |
| Create property with initial path. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
| void | setAnimation (Animation animation) |
| Set animation resource or null if not present. | |
| void | setPath (String path) |
| Set path to animation resource. | |
| void | setValue (Object value) |
| Set value of property from XML decoded value. | |
| Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
| void | dispose () |
| Dispose of element class property to break reference loops. | |
| String | getName () |
| Name. | |
| Public Member Functions inherited from Dragengine.ResourceListener | |
Animation resource element class property for use with XML loading.
Animation resource is set from XML using a path. Loads the resource during preloading. The value of the property is then the loaded resource. If loading fails null resource is stored.
| void Dragengine.Scenery.ECPAnimation.copyValue | ( | ElementClass | elementClass, |
| ElementClassProperty | property ) |
Copy value from another element class property of the same type.
References getHasPreloaded().
Referenced by logPreloadProblems().
| void Dragengine.Scenery.ECPAnimation.failedLoading | ( | String | filename, |
| ResourceLoaderType | resourceType ) |
Resource failed loading.
Implements Dragengine.ResourceListener.
References preloadResources().
Referenced by getAnimation().
| void Dragengine.Scenery.ECPAnimation.finishedLoading | ( | String | path, |
| ResourceLoaderType | resourceType, | ||
| Object | resource ) |
Resource has finished loading.
Implements Dragengine.ResourceListener.
References getPath().
Referenced by getAnimation().
| Animation Dragengine.Scenery.ECPAnimation.getAnimation | ( | ) |
Animation resource or null if not present.
References setPath().
Referenced by getAnimation(), and getHasPreloaded().
| Animation Dragengine.Scenery.ECPAnimation.getAnimation | ( | StubWithProperties | stub, |
| ElementClass | eclass ) |
Animation modified by stub property if present.
If named stub property is not present or empty string the stored animation is returned. If the named stub property is present it is loaded as animation resource.
References failedLoading(), finishedLoading(), getAnimation(), logPreloadProblems(), and new().
| bool Dragengine.Scenery.ECPAnimation.getHasPreloaded | ( | ) |
| String Dragengine.Scenery.ECPAnimation.getPath | ( | ) |
Path to animation resource.
Referenced by finishedLoading(), and setPath().
| bool Dragengine.Scenery.ECPAnimation.logPreloadProblems | ( | ElementClass | elementClass, |
| Console | console ) |
Log preloading problems.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References copyValue().
Referenced by getAnimation().
| ECPAnimation Dragengine.Scenery.ECPAnimation.new | ( | String | name | ) |
Create property.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References new().
Referenced by getAnimation(), new(), and new().
| ECPAnimation Dragengine.Scenery.ECPAnimation.new | ( | String | name, |
| String | path ) |
Create property with initial path.
References new().
| void Dragengine.Scenery.ECPAnimation.preloadResources | ( | ElementClass | elementClass, |
| PreloadCounter | counter ) |
Preload resources if supported.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References setValue().
Referenced by failedLoading().
| void Dragengine.Scenery.ECPAnimation.setAnimation | ( | Animation | animation | ) |
Set animation resource or null if not present.
Referenced by setValue().
| void Dragengine.Scenery.ECPAnimation.setPath | ( | String | path | ) |
| void Dragengine.Scenery.ECPAnimation.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References setAnimation().
Referenced by preloadResources().