Skip to content

EntityTemplate

Defined in: src/template.ts:2

Blueprint for spawning an entity: declares which components and tags to attach.

readonly optional components?: Readonly<Record<string, unknown>>

Defined in: src/template.ts:5

Component name → serialized value pairs to attach on spawn.


readonly name: string

Defined in: src/template.ts:3


readonly optional tags?: readonly string[]

Defined in: src/template.ts:7

Tag names to attach on spawn.