matanlurey / tts-runner

Node.js utilities library for Tabletop Simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tts-runner

Node.js library for running Tabletop Simulator.

API

launch(options)

{
  /**
   * Additional flags to pass when running.
   *
   * Do note, many flags such as `-novid` and `-nosubscription` speed up start
   * times are already set by default. You can ignore this behavior by disabling
   * @see ignoreDefaultFlags.
   *
   * @see https://kb.tabletopsimulator.com/getting-started/launch-options/.
   */
  additionalFlags?: string[];

  /**
   * Whether to pass no flags by default.
   *
   * This will entirely rely on @see additionalFlags.
   */
  ignoreDefaultFlags?: boolean;

  /**
   * Explicit path of the intended Tabletop Simulator binary.
   *
   * * If this `steamAppsPath` is defined, it will be used.
   * * Otherwise, the `STEAM_APPS_PATH` env variable will be used if set.
   * * Otherwise, will attempt to detect the installed steam directory.
   */
  steamAppsPath?: string;
}

const instance = await launch()

{
  /**
   * Process ID number.
   */
  pid: number;

  /**
   * A reference to the spawned @see ChildProcess.
   */
  process: ChildProcess;

  /**
   * Kills the promise, and does any related cleanup work.
   */
  kill;
}

About

Node.js utilities library for Tabletop Simulator


Languages

Language:TypeScript 98.4%Language:JavaScript 1.6%