Skip to content

defineTag

defineTag(name): ComponentDef<{ }>

Defined in: ecs/component.ts:428

Declare a component with no fields — a marker a query filters on. Returning the existing definition for a name already declared is deliberate: a tag carries no data, so re-declaring one cannot conflict with itself the way defineComponent can.

string

ComponentDef<{ }>