|
Drag[en]gine Script Module DragonScript 1.35
|
Dictionary of animators element class property for use with XML loading. More...
Public Member Functions | |
| void | dispose () |
| Dispose of element class property to break reference loops. | |
| void | forEach (Block ablock) |
| Visit animators with block with String id and Animator value. | |
| Animator | getAt (String id) |
| Animator with identifier or null if absent. | |
| int | getCount () |
| Number of animators. | |
| bool | getHasPreloaded () |
| Property has been preloaded. | |
| LoadAnimator | getLoader () |
| Animator loader. | |
| ECPAnimatorMap | new (String name, LoadAnimator loader) |
| Create property. | |
| void | removeAll () |
| Remove all animators. | |
| void | removeAllPath () |
| Remove all path. | |
| void | setAt (String id, Animator animator) |
| Set animator for identifier. | |
| void | setPathAt (String id, String path) |
| Set path to load for identifier. | |
| void | setValue (Object value) |
| Set value of property from XML decoded value. | |
| Public Member Functions inherited from Dragengine.Scenery.ElementClassProperty | |
| String | getName () |
| Name. | |
| bool | logPreloadProblems (ElementClass elementClass, Console console) |
| Log preloading problems. | |
| ElementClassProperty | new (String name) |
| Create property. | |
| void | preloadResources (ElementClass elementClass, PreloadCounter counter) |
| Preload resources if supported. | |
Public Attributes | |
| Array | pFailedLoading |
| bool | pHasPreloaded |
| LoadAnimator | pLoader |
| Dictionary | pPath |
Dictionary of animators element class property for use with XML loading.
Similar to ECPAnimator but assigns each animator a unique name. This is useful to define a list of animators to use mapped against well known identifiers. Also allows to map the same animator to multiple unique identifiers if required.
| void Dragengine.Scenery.ECPAnimatorMap.dispose | ( | ) |
Dispose of element class property to break reference loops.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References dispose(), and new().
Referenced by dispose().
| void Dragengine.Scenery.ECPAnimatorMap.forEach | ( | Block | ablock | ) |
Visit animators with block with String id and Animator value.
References pPath, and setAt().
Referenced by setValue().
| Animator Dragengine.Scenery.ECPAnimatorMap.getAt | ( | String | id | ) |
Animator with identifier or null if absent.
References setPathAt().
Referenced by getHasPreloaded().
| int Dragengine.Scenery.ECPAnimatorMap.getCount | ( | ) |
| bool Dragengine.Scenery.ECPAnimatorMap.getHasPreloaded | ( | ) |
| LoadAnimator Dragengine.Scenery.ECPAnimatorMap.getLoader | ( | ) |
Animator loader.
Referenced by setPathAt().
| ECPAnimatorMap Dragengine.Scenery.ECPAnimatorMap.new | ( | String | name, |
| LoadAnimator | loader ) |
| void Dragengine.Scenery.ECPAnimatorMap.removeAll | ( | ) |
Remove all animators.
Referenced by getCount(), and setValue().
| void Dragengine.Scenery.ECPAnimatorMap.removeAllPath | ( | ) |
Remove all path.
Referenced by getCount().
| void Dragengine.Scenery.ECPAnimatorMap.setAt | ( | String | id, |
| Animator | animator ) |
| void Dragengine.Scenery.ECPAnimatorMap.setPathAt | ( | String | id, |
| String | path ) |
| void Dragengine.Scenery.ECPAnimatorMap.setValue | ( | Object | value | ) |
Set value of property from XML decoded value.
Reimplemented from Dragengine.Scenery.ElementClassProperty.
References forEach(), getHasPreloaded(), Dragengine.Scenery.ElementClassProperty.logPreloadProblems(), new(), pFailedLoading, pHasPreloaded, pPath, Dragengine.Scenery.ElementClassProperty.preloadResources(), removeAll(), setAt(), and setValue().
Referenced by setValue().
| Array Dragengine.Scenery.ECPAnimatorMap.pFailedLoading |
Referenced by setValue().
| bool Dragengine.Scenery.ECPAnimatorMap.pHasPreloaded |
Referenced by setValue().
| LoadAnimator Dragengine.Scenery.ECPAnimatorMap.pLoader |
Referenced by new(), and setPathAt().
| Dictionary Dragengine.Scenery.ECPAnimatorMap.pPath |
Referenced by forEach(), getCount(), new(), and setValue().