Table of Contents

Interface ISystem

Namespace
KeenEyes
Assembly
KeenEyes.Abstractions.dll

Interface for ECS systems that process entities.

public interface ISystem : IDisposable
Inherited Members

Remarks

Systems contain the logic that operates on entities and their components. They are registered with a world and executed during the world's update cycle.

For a convenient base implementation, see SystemBase in KeenEyes.Core.

Properties

Enabled

Gets or sets whether this system is enabled. Disabled systems are skipped during world updates.

bool Enabled { get; set; }

Property Value

bool

Methods

Initialize(IWorld)

Called when the system is added to a world.

void Initialize(IWorld world)

Parameters

world IWorld

The world this system operates on.

Update(float)

Called each frame/tick to update the system.

void Update(float deltaTime)

Parameters

deltaTime float

Time elapsed since the last update in seconds.