Lysa  0.0
Lysa 3D Engine
QueuedEvent Class Referenceabstract

Detailed Description

FIFO event dispatcher filtered by target id.

Inherits from: EventManager

Lua full name: lysa.QueuedEvent

Public Member Functions

nil push (e: Event)
 Queues a copy for the next processing pass. More...
 
integer subscribe (type: string, cb: function)
 Subscribes to queued events without a target (INVALID_ID). More...
 
integer subscribe (type: string, id: integer, cb: function)
 Subscribes to one target id. More...
 
integer subscribe (type: string, ids: integer[], cb: function)
 Subscribes to multiple targets with one handler id. More...
 

Member Function Documentation

nil push ( Event  e)

Queues a copy for the next processing pass.

Parameters
eEvent
integer subscribe ( string  type,
function  cb)

Subscribes to queued events without a target (INVALID_ID).

Parameters
typestring
cbfunction
Returns
integer
integer subscribe ( string  type,
integer  id,
function  cb)

Subscribes to one target id.

Parameters
typestring
idinteger
cbfunction
Returns
integer
integer subscribe ( string  type,
integer[]  ids,
function  cb)

Subscribes to multiple targets with one handler id.

Parameters
typestring
idsinteger[]
cbfunction
Returns
integer