Signal abstract helper class. A simple abstract over an array of listeners/callback functions.

Static methods

staticinline connect (this:Array<T ‑> U ‑> V ‑> Void>, listener:T ‑> U ‑> V ‑> Void):Void

Connects the listener to the signal.

Parameters:

listener

The listener function to connect.

staticinline disconnect (this:Array<T ‑> U ‑> V ‑> Void>, listener:T ‑> U ‑> V ‑> Void):Void

Disconnects the listener from the signal.

Parameters:

listener

The listener function to disconnect.

staticinline dispatch (this:Array<T ‑> U ‑> V ‑> Void>, data0:T, data1:U, data2:V):Void

Calls all of the listeners/callback functions connected to the signal.

Parameters:

data0

The first parameter used for the dispatch.

data1

The second parameter used for the dispatch.

data2

The third parameter used for the dispatch.