EntityManager

manages the entity/component system

Constructors

this
this()

sets up the ECS

Members

Functions

create_entity
Entity create_entity()

create a fresh entity

destroy
void destroy()

destroy all entities and components and clean up

get_entity
Entity get_entity(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
has_entity
bool has_entity(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
remove_entity
void remove_entity(Entity entity)

remove an entity

update
void update()

keeps all the ducks in line

Variables

entities
Entity[] entities;

list of all entities

storage
ComponentStorage storage;

helper to store components in an optimized way

Meta