View Source Ecspanse.Event.Timer (ECSpanse v0.1.2)
The Timer is a Utility Event designed to facilitate the creation
of custom timer (countdown) events.
Instead of using this event directly, it serves as a foundation
for building custom timer events with use Ecspanse.Event.Timer.
It takes no options.
The event that will be dispatched by Event.System.Timer system when
the timer component reaches 0.
Their state is predefined to %CustomEventModule{entity_id: entity_id},
where entity refers to owner of the custom timer component.
Example:
defmodule MyTimerEvent do
use Ecspanse.Event.Timer
endSee Ecspanse.Component.Timer for more details.