Module necro.game.system.Delay

Functions

processPreemptively (condition) Instantly executes all pending delays matching an optional condition.
register (name, func, flags) flags is a table with fields: * processOnPlayerAction: force the delay to occur earlier than planned when the affected player acts * processOnLevelComplete: force the delay to occur earlier than planned when the level ends * lazy: allow the delay to occur later than planned if no turns occur (do not create a DELAY turn)


Functions

processPreemptively (condition)
Instantly executes all pending delays matching an optional condition. Calling this function is usually not necessary or recommended; it should only be used if the game's time-based delay mechanism needs to be bypassed.

Parameters:

  • condition
register (name, func, flags)
flags is a table with fields: * processOnPlayerAction: force the delay to occur earlier than planned when the affected player acts * processOnLevelComplete: force the delay to occur earlier than planned when the level ends * lazy: allow the delay to occur later than planned if no turns occur (do not create a DELAY turn)

Parameters:

  • name
  • func
  • flags
generated by LDoc 1.4.6