An unsigned integer between 0 and
Number.MAX_SAFE_INTEGER
that uniquely identifies an
entity or schema within the ECS.
Create an entity using an array of schema ids as a template.
Optionally accepts an array of data used to initialize components.
Undefined values within the initializer array are filled with
defaults (e.g. 0
for numeric Format).
Get the value of one or more components for an entity. Throws an error if the entity is not real, or if it does not have a component of each of the provided schema ids.
Update the value of one or more components for an entity. If the entity does not yet have components of the provided schema ids, add them. Throws an error if the entity is not real.
This function has the same interface as Entity.make
,
that is, it optionally accepts a sparse array of initial component
values.
Generated using TypeDoc
A module used to manage entities and their components.