Constructors

Properties

actor: null | Actor<"base" | ModuleSubType> = null
document: TileDocument | TokenDocument
object: null | Tile | 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

  • Play a set of animations after the current one ends, if one is playing.

    Parameters

    Returns Promise<void>

  • 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

    • Rest...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<"base" | ModuleSubType>

      Actor

    Returns Promise<void>

  • Plays an animation for a given target

    Parameters

    • target:
          | string
          | Tile
          | TileDocument
          | TokenDocument
          | Token

      Token, TokenDocument, or id

    • anim: string | AnimationConfig

      Name of the animation or AnimationConfig

    Returns Promise<void>

  • Plays a series of animations by name or AnimationConfig

    Parameters

    • target:
          | string
          | Tile
          | TileDocument
          | TokenDocument
          | Token

      Token, TokenDocument, or id/uuid

    • Rest...anims: (string | AnimationConfig)[]

      Array of strings or AnimationConfig

    Returns Promise<void>

  • Will play an animation after the current one ends, if one is playing.

    Parameters

    • target:
          | string
          | Tile
          | TileDocument
          | TokenDocument
          | Token

      = Token or TokenDocument

    • anim: string | AnimationConfig

      AnimationConfig or name of an animation}

    Returns Promise<void>

  • Will play a set of animations after the current one ends, if one is playing

    Parameters

    • target:
          | string
          | Tile
          | TileDocument
          | TokenDocument
          | Token

      Token or TokenDocument

    • Rest...anims: (string | AnimationConfig)[]

      Array of AnimationConfigs or strings

    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<"base" | ModuleSubType>

      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

    • Rest...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

    • Rest...names: string[]

      Names of the animations to remove

    Returns Promise<void>

  • Removes a set of animations from a given Actor

    Parameters

    • actor: Actor<"base" | ModuleSubType>

      Actor

    • Rest...names: string[]

      Names of the animations to remove

    Returns Promise<void>