Extended version of Animation with named animation storage and primitive command buffer. Command buffer triggers next command either when delay timeout runs out or animation reaches it's end.
Constructor
Variables
animations:Map<String, AnimationDescriptor> = new Map()
List of named animation between which AnimationExt can switch.
Methods
durationOf (anim:String):Float
Returns duration of specified animation. Uses either animation descriptor speed, or current Animation speed value.
playAnim (name:String, ?atFrame:Int):Void
Plays animation with specified name, and optionally at specific frame.