View Source ECSx.System behaviour (ECSx v0.1.1)

A fragment of game logic which reads and updates Components.

Every system must implement a run function.

By default the system will run every game tick. To use a longer period between runs, you can pass the option :period. For example, to set a system to run every 5 ticks:

use ECSx.System,
  period: 5

Link to this section Summary

Link to this section Callbacks

@callback run() :: :ok