Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api"

Index

Variables

globalEvents

globalEvents: GlobalScriptingEvents

refCard

refCard: Card

Only available in card object scripts

refContainer

refContainer: Container

Only available in container object scripts

refDice

refDice: Dice

Only available in dice object scripts

refHolder

refHolder: CardHolder

Only available in card holder object scripts

refMultistate

refMultistate: MultistateObject

Only available in multistate object scripts

refObject

refObject: GameObject

Only available in object scripts (for all object types)

world

world: GameWorld

Functions

fetch

  • Fetch resources from a url according to the given options, returning a promise that will resolve to the response.

    Example usage: fetch('https://postman-echo.com/get?foo1=bar1&foo2=bar2').then(res => console.log(JSON.stringify(res.json())))

    Parameters

    • url: string

      The URL to fetch

    • Optional options: FetchOptions

      Options for how to call the URL

    Returns Promise<FetchResponse>

    • A promise that resolves to a response object once the request has finished