Returns a copy of this hook trigger that is also reset.
Returns a copy of this hook trigger that is also reset.
Returns the last triggered time step or None
, if never triggered.
Returns the last triggered time step or None
, if never triggered.
Resets the internal state of this trigger (e.g., step counter or timer).
Resets the internal state of this trigger (e.g., step counter or timer).
Returns true
if the hook should be triggered for the specified step.
Returns true
if the hook should be triggered for the specified step.
Updates the last triggered step and time.
Updates the last triggered step and time.
Current step.
A tuple (elapsedTime, elapsedSteps)
, where elapsedTime
is the number of seconds between the current
trigger and the last one, and elapsedSteps
is the number of steps between the current trigger and the
last one. Both values will be set to None
on the first trigger.
Hook trigger that never actually triggers.