PersistentEventDispatcher

abstract class PersistentEventDispatcher<T : TriggerAction, E : Event> : AbstractEventDispatcher<T, E>

An event dispatcher which doesn't overwrite its triggers when set is called on an already existing trigger.

Constructors

Link copied to clipboard
fun PersistentEventDispatcher()

Functions

Link copied to clipboard
open operator override fun set(trigger: T, job: (E) -> Unit)

Adds a job to be performed whenever an event triggers the dispatcher through the listener.

Properties

Link copied to clipboard
abstract val listener: ActionListener<T, E>

The listener bound to this dispatcher.

Inheritors

Link copied to clipboard
Link copied to clipboard