Table of Contents

Class HealthSystem

Example ECS system that operates on entities possessing a HealthComponent. Systems hold the game logic and iterate over relevant entities each update tick.

public class HealthSystem
Inheritance
HealthSystem
Inherited Members

Methods

Update(Entity)

Processes health-related logic for the given entity. Only acts if the entity has a HealthComponent.

public void Update(Entity entity)

Parameters

entity Entity

The entity to process.