AutonomousEvent

sealed interface AutonomousEvent<P> : Event<P>

Inheritors

Types

Link copied to clipboard
data class First(val condition: () -> Boolean) : Event.AutonomousEvent<Any>

Triggers when condition becomes true. Only runs once.

Link copied to clipboard

Triggers once when the event is first checked.

Link copied to clipboard
data class When(val condition: () -> Boolean) : Event.AutonomousEvent<Any>

Triggers when condition becomes true.

Properties

Link copied to clipboard
abstract val parameter: P

the parameter associated with the event

Functions

Link copied to clipboard
abstract fun shouldTrigger(): Boolean