Skip to content

API Function defineActions

github-actions[bot] edited this page Nov 24, 2026 · 2 revisions

Function: defineActions()

function defineActions<Spec>(
   id, 
   spec, 
   options?
): ActionSetDef<Spec>;

Defined in: src/engine/input/actions.ts:221

Declare an action set: a data component with one value, phase and time per action (ADR 0336). Players get every defined set; pawns get their player's (ADR 0337).

Type Parameters

Spec

Spec extends ActionSpec

Parameters

id

string

spec

Spec

options?

ActionSetOptions = {}

Returns

ActionSetDef<Spec>

Clone this wiki locally