Talos docs

BehaviorEntry

Since 0.6

The behavior catalogue: the modules a scene can name in script.module.

Plain text

This is the single source for the build's entry points and for dist/entries.json, which is what the app reads to resolve script: { module: "player" } to a file. Keep it free of imports: the build transforms this one file on its own to learn what to bundle.

Signature

export interface BehaviorEntry {
  /** What a scene writes in `script.module`. */
  module: string
  /** Source entry, relative to the package root. */
  entry: string
  /** One line on what it does. */
  summary: string
  /** Props it reads. */
  props: string[]
}

Import: import type { BehaviorEntry } from "@argus/gameplay"

Members

MemberSignatureDescription
modulemodule: stringWhat a scene writes in script.module.
entryentry: stringSource entry, relative to the package root.
summarysummary: stringOne line on what it does.
propsprops: string[]Props it reads.