EntityTypeRegistry
Defined in: core/src/entity/entity.registry.ts:4
Registry of EntityTypes, keyed by id.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EntityTypeRegistry(): EntityTypeRegistry;Returns
Section titled “Returns”EntityTypeRegistry
Methods
Section titled “Methods”get(id): | EntityType | undefined;Defined in: core/src/entity/entity.registry.ts:18
Returns the entity type with the given id, or undefined if none matches.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id |
string |
Returns
Section titled “Returns”| EntityType
| undefined
list()
Section titled “list()”list(): EntityType[];Defined in: core/src/entity/entity.registry.ts:15
Lists all registered entity types.
Returns
Section titled “Returns”register()
Section titled “register()”register(...entityTypes): void;Defined in: core/src/entity/entity.registry.ts:8
Registers one or more entity types, replacing any existing type with the same id.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…entityTypes |
EntityType[] |
Returns
Section titled “Returns”void