Body, Mind & Soul — API Reference
    Preparing search index...

    Hierarchy

    • any
      • default
    Index
    • Returns default

    • get hasActions(): boolean

      Returns boolean

    • get hasEffects(): boolean

      Returns boolean

    • get isEmpty(): boolean

      Returns boolean

    • Add an action to this down on the combat tracker. Note: this down instance may be stale after the awaited call resolves, since Foundry re-renders embedded DataModel instances.

      Parameters

      • actionData: object

        Tracker action payload.

      • Optionaloptions: { deferResolve?: boolean; requestId?: string | null } = {}

        Options object.

        • OptionaldeferResolve?: boolean

          When true, return as soon as commit is done.

        • OptionalrequestId?: string | null

          gm-write request id to ack when the commit lands.

      Returns Promise<any>

    • Add an effect to this down on the combat tracker. Note: this down instance may be stale after the awaited call resolves, since Foundry re-renders embedded DataModel instances.

      Parameters

      • effectData: object

        Tracker effect payload.

      Returns Promise<any>

    • Parameters

      • id: any

      Returns any

    • Parameters

      • id: any

      Returns any

    • Remove an action from this down. Note: this down instance may be stale after the awaited call resolves, since Foundry re-renders embedded DataModel instances.

      Parameters

      • actionId: string

        The action's id.

      Returns Promise<void>

    • Remove an effect from this down. Note: this down instance may be stale after the awaited call resolves, since Foundry re-renders embedded DataModel instances.

      Parameters

      • effectId: string

        The effect's id.

      Returns Promise<any>

    • Update an existing action in this down. Note: this down instance may be stale after the awaited call resolves, since Foundry re-renders embedded DataModel instances.

      Parameters

      • actionId: string

        The action's id.

      • actionData: object

        Partial action data to merge.

      • Optionaloptions: { deferResolve?: boolean; requestId?: string | null } = {}

        Options object.

        • OptionaldeferResolve?: boolean

          When true, return as soon as commit is done.

        • OptionalrequestId?: string | null

          gm-write request id to ack on commit.

      Returns Promise<any>

    • Update an existing effect in this down. Note: this down instance may be stale after the awaited call resolves, since Foundry re-renders embedded DataModel instances.

      Parameters

      • effectId: string

        The effect's id.

      • effectData: object

        Partial effect data to merge.

      Returns Promise<any>

    • Returns { actions: any; downNumber: any; effects: any }