Documentation
    Preparing search index...

    Class SpriteAnimator

    Index

    Constructors

    Properties

    actor: Actor
    document: TokenDocument
    object: null | Token

    Methods

    • Removes all animations from the current Actor

      Returns Promise<void>

    • Play an animation for the current Actor

      Parameters

      • name: string

        Name of the animation to play

      Returns Promise<void>

      A promise that resolves when the animation has finished, unless the animation is set to loop

    • Play ana nimation for the current Actor

      Returns Promise<void>

      A promise that resolves when the animation has finished, unless the animation is set to loop

    • Removes an animation from the current Actor

      Parameters

      • name: string

        Name of the animation to remove

      Returns Promise<void>

    • Remove a set of animations from the current Actor

      Parameters

      • ...names: string[]

        Names of the animations to remove

      Returns Promise<void>

    • Removes all animations from the Actor associated with a given Token

      Parameters

      • token: Token

        Token

      Returns Promise<void>

    • Removes all animations from the Actor associated with a given TokenDocument

      Parameters

      • token: TokenDocument

        TokenDocument

      Returns Promise<void>

    • Removes all animations from a given Actor

      Parameters

      • actor: Actor

        Actor

      Returns Promise<void>

    • Plays an animation for a given target

      Parameters

      Returns Promise<void>

    • Removes an animation from the Actor associated with the given Token

      Parameters

      • token: Token

        Token

      • name: string

        Name of the animation to remove

      Returns Promise<void>

    • Removes an animation from the Actor associated with the given TokenDocument

      Parameters

      • token: TokenDocument

        Token

      • name: string

        Name of the animation to remove

      Returns Promise<void>

    • Removes an animation from the given Actor

      Parameters

      • actor: Actor

        Actor

      • name: string

        Name of the animation to remove

      Returns Promise<void>

    • Removes a set of animations from the Actor associated with a given Token

      Parameters

      • token: Token

        Token

      • ...names: string[]

        Names of the animations to remove

      Returns Promise<void>

    • Removes a set of animations from the Actor associated with a given TokenDocument

      Parameters

      • token: TokenDocument

        TokenDocument

      • ...names: string[]

        Names of the animations to remove

      Returns Promise<void>

    • Removes a set of animations from a given Actor

      Parameters

      • actor: Actor

        Actor

      • ...names: string[]

        Names of the animations to remove

      Returns Promise<void>