component.healthsystem

Manages entity health and destroys entities that have run out of health.

class HealthSystem: component.system.System;

Manages entity health and destroys entities that have run out of health.

this(EntitySystem entitySystem);

Construct a HealthSystem working on entities from specified EntitySystem.

void update();

Destroy entities that have run out of health.