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

AiTrait

const AiTrait: Trait<{ actions: () => string[]; facts: () => string[]; is: string; }>

An Entity’s ai prop, kept on the entity so a headless world and a room read it as they read any trait. Its is overrides the behaviours’; its facts and actions add to theirs.