Torque3D Documentation / _generateds / EventManagerListener

EventManagerListener

Engine/source/util/messaging/eventManager.h

Listener class used by the EventManager to dispatch messages to specific callbacks.

More...

Classes:

class

Stores subscription information for a subscriber.

Public Friends

Private Attributes

SimpleHashTable< Vector< Subscriber > >

Subscriber table hashed by event name.

Public Functions

bool

Callback for when message objects are received.

bool
onMessageReceived(StringTableEntry queue, const char * event, const char * data)

Called by the EventManager queue when an event is triggered. Calls all listeners subscribed to the triggered event.

Detailed Description

Listener class used by the EventManager to dispatch messages to specific callbacks.

Public Friends

Private Attributes

SimpleHashTable< Vector< Subscriber > > mSubscribers 

Subscriber table hashed by event name.

Public Functions

EventManagerListener()

onMessageObjectReceived(StringTableEntry queue, Message * msg)

Reimplemented from: Dispatcher::IMessageListener

onMessageReceived(StringTableEntry queue, const char * event, const char * data)

Reimplemented from: Dispatcher::IMessageListener