Talos docs

SlotView

Since 0.7

One slot as the screen shows it.

Plain text

Signature

export interface SlotView {
  /** The slot's player number, 1 to 4. */
  number: number
  /** What the slot shows: nobody, seated, ready, or seated on a pad that is out. */
  status: "empty" | "joined" | "ready" | "unplugged"
  /** The seated player's device, or null for an empty slot. */
  device: LocalPlayer["device"] | null
  /** The pad's place among the seated pads (1 for the first), for "Pad 1"; null off a pad. */
  padOrdinal: number | null
  /** The choice the player holds, or null with no `choices`. */
  choice: string | null
}

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

Members

MemberSignatureDescription
numbernumber: numberThe slot's player number, 1 to 4.
statusstatus: "empty" | "joined" | "ready" | "unplugged"What the slot shows: nobody, seated, ready, or seated on a pad that is out.
devicedevice: LocalPlayer["device"] | nullThe seated player's device, or null for an empty slot.
padOrdinalpadOrdinal: number | nullThe pad's place among the seated pads (1 for the first), for "Pad 1"; null off a pad.
choicechoice: string | nullThe choice the player holds, or null with no choices.