Interface ComponentSpec<T>

Type Parameters

  • T

Hierarchy

  • ComponentSpec

Properties

maxEntities?: number

The maximum number of entities able to equip this component per world.

Warning: use this only where memory consumption is a concern, performance will be worse.

name: string

The component's label

schema?: Schema<T>

The component's property definitions. Omit to define a tag component.

Generated using TypeDoc