Creates an entity into the entity database and returns it
Creates an entity into the entity database and returns it
Creates a simple untagged entity into the entity database and returns it
Creates a simple untagged entity into the entity database and returns it
Creates a tagged entity into the entity database and returns it
Creates a tagged entity into the entity database and returns it
Deletes an entity and all attched components from the entity database
Deletes an entity and all attched components from the entity database
Returns the list of known entities with the given tag
Returns the list of known entities with the given tag
Returns the list of known entities
Returns the list of known entities
Retrieves the component of the given type attached to the entity if any
Retrieves the component of the given type attached to the entity if any
Indicates whether the entity has a component attached to it
Indicates whether the entity has a component attached to it
Indicates whether the entity has a component of the given type attached to it
Indicates whether the entity has a component of the given type attached to it
Removes the given component from the entity.
Removes the given component from the entity. If the entity does not exist or has not this component attached, returns false
Removes the component with the given name from the entity.
Removes the component with the given name from the entity. If the entity does not exist or has no component with the given name, returns false
Adds or updates the component to the given entity.
Adds or updates the component to the given entity. If the entity is unknown, does nothing. Returns the saved component.
The
EntityManager
is responsible for creating, storing and deleting the entities and associated components. Entities are stored in a CouchDB database.