awayjs-display
Version:
AwayJS displaylist classes
36 lines (35 loc) • 911 B
TypeScript
import IAsset from "awayjs-core/lib/library/IAsset";
import IAnimationSet from "../animators/IAnimationSet";
import IEntity from "../display/IEntity";
/**
* Provides an interface for animator classes that control animation output from a data set subtype of <code>AnimationSetBase</code>.
*
* @see away.animators.IAnimationSet
*/
interface IAnimator extends IAsset {
/**
*
*/
animationSet: IAnimationSet;
/**
*
*/
clone(): IAnimator;
/**
*
*/
dispose(): any;
/**
* Used by the entity object to which the animator is applied, registers the owner for internal use.
*
* @private
*/
addOwner(sprite: IEntity): any;
/**
* Used by the sprite object from which the animator is removed, unregisters the owner for internal use.
*
* @private
*/
removeOwner(sprite: IEntity): any;
}
export default IAnimator;