Manager for Entity/Component/Systems.
component-install entity/manager
Manager class.
Determine whether this is the root manager.
Create an entity of components, and use it.
Remove an entity.
Remove all entities.
Apply component data to an entity or all.
Create a child manager and use it.
Get all entities using all the components in the array.
Iterate entities of certain components, or through all if no component is passed.
Get the first entity matching component.
Use a entity, system or manager.
When entity:
- Registers an entity (creating a new one or reusing the one passed).
When system:
- Registers a system to be used. Order matters.
When manager:
- Adds the manager to its children.
Game state switches.
States:
init -> ( start - pause - stop ) -> tear
(---------loop---------)
Reset state.
Executes:
stop -> tear -> init -> start
Join (late) an entity.
It will try to apply components and systems based on the current state.
Generate an array snapshot of all entities property values.
MIT