This can be used to assign an entity a unique component type, for identification purposes.
Example:
const registry = new Registry(); // create const enemy = registry.create(Tag.for("Enemy")); const player = registry.create(Tag.for("Player")); // query registry.view(Tag.for("Enemy")).each(() => { ... }); registry.view(Tag.for("Player")).each(() => { ... });
Generated using TypeDoc
This can be used to assign an entity a unique component type, for identification purposes.
Example: