World

Undocumented in source.

Constructors

this
this()

World constructor.

Destructor

~this
~this()

World destructor.

Members

Functions

activateEntity
void activateEntity(Entity entity)

Notifies all systems that an entity is now alive.

addSystem
void addSystem(System system)

Adds a system to the world.

createEntity
Entity createEntity()

Creates and returns a new entity.

emitEvent
void emitEvent(Event event)

Emits an event to subscribers.

getEntitiesWith
Array!Entity getEntitiesWith()

Returns a range containing entities with the specified components.

killEntity
void killEntity(Entity entity)

Kills and notifies all systems that an entity has been killed.

subscribeReceiverToEvent
void subscribeReceiverToEvent(EventReceiver!Event receiver)

Subscribes a receiver to a specific event.

update
void update(float deltaTime)

Updates all the systems.

Meta