The identifier of the custom entity type.
ReadonlycomponentsThe default components of the entity type.
ReadonlyidentifierThe identifier of the entity type.
ReadonlynetworkThe network id of the entity type.
ReadonlytraitsThe traits that are bound to the entity type. These traits are used to define custom behavior for the entity type.
StaticnetworkThe network identifier counter for entity types.
Static ReadonlytypesA collective registry of all entity types.
Create a new boolean property for the entity type.
The identifier of the property.
OptionaldefaultValue: booleanThe default value of the property, if not specified, false will be used.
The created boolean property.
Create a new enum property for the entity type.
The identifier of the property.
The possible values of the property.
OptionaldefaultValue: stringThe default value of the property, if not specified, the first value will be used.
The created enum property.
Create a new float property for the entity type.
The identifier of the property.
The value range of the property. (min to max)
OptionaldefaultValue: numberThe default value of the property, if not specified, minimum value will be used.
The created float property.
Create a new integer property for the entity type.
The identifier of the property.
The value range of the property. (min to max)
OptionaldefaultValue: numberThe default value of the property, if not specified, minimum value will be used.
The created integer property.
Get all properties of the entity type.
An array of all properties of the entity type.
Get a property of the entity type by its identifier.
The identifier of the property.
The property if found, null otherwise.
Check if the entity type has a property with the given identifier.
The identifier of the property.
True if the property exists, false otherwise.
Register a trait to the entity type.
The trait to register.
The entity type instance.
Unregister a trait from the entity type.
The trait to unregister, or the identifier of the trait.
The entity type instance.
StaticgetGet the entity type from the registry.
The identifier of the entity type.
The entity type, if found; otherwise, null.
StaticgetStatictoStaticto
Create a new custom entity type.