View Source ECSx.System behaviour (ECSx v0.1.0)
A system is a fragment of game logic which acts on all entities with the desired 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