Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

InteractChoiceTrait

const InteractChoiceTrait: Trait<{ interactable: Entity | null; presser: Entity | null; }>

On each player entity, on the world that runs the rules and on the player’s own page: the one exclusive Interact the player’s press fires, and the player’s entity it goes through, or null for each where none is near. The room’s behaviours.choose writes it each step, so the player’s page shows the prompt the room chose and presses that pair. A game reads it too, such as for a gamepad hint.