Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Class ActiveEffectRegistry

    A singleton helper class that tracks the duration and expiry of ActiveEffects

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get initialized(): boolean

      Has the registry been populated for the first time?

      Returns boolean

    Methods

    • Internal

      Populate the registry for the first time.

      Returns void

    • Refresh the durations of registered ActiveEffects and perform the configured action for expired effects.

      Parameters

      • event: string

        The expiry or other event that triggered this call

      • Optionalcontext: { actors?: Set<documents.Actor>; combat?: documents.Combat }

        Additional contextual data relevant to the event

        • Optionalactors?: Set<documents.Actor>

          Limit the refresh to effects belonging to the provided list of actors.

        • Optionalcombat?: documents.Combat

          The Combat associated with this event

      Returns Promise<void>