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

Static methods

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

Connects the listener to the signal.

Parameters:

listener

The listener function to connect.

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

Disconnects the listener from the signal.

Parameters:

listener

The listener function to disconnect.

staticinline dispatch (this:Array<T ‑> U ‑> V ‑> W ‑> X ‑> Y ‑> Z ‑> Void>, data0:T, data1:U, data2:V, data3:W, data4:X, data5:Y, data6:Z):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.

data3

The fourth parameter used for the dispatch.

data4

The fifth parameter used for the dispatch.

data5

The sixth parameter used for the dispatch.

data6

The seventh parameter used for the dispatch.