Torque3D Documentation / _generateds / MessageForwarder

MessageForwarder

Engine/source/util/messaging/messageForwarder.h

Forward messages from one queue to another.

More...

Private Types

Protected Attributes

Public Functions

bool

Callback for when message objects are received.

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

Callback for when messages are received.

Public Static Functions

Detailed Description

Forward messages from one queue to another.

MessageForwarder is a script class that can be used to forward messages from one queue to another.

Example

%fwd = new MessageForwarder()
{
   toQueue = "QueueToSendTo";
};

registerMessageListener("FromQueue", %fwd);

Where "QueueToSendTo" is the queue you want to forward to, and "FromQueue" is the queue you want to forward from.

Private Types

typedef ScriptMsgListener Parent 

Protected Attributes

StringTableEntry mToQueue 

Public Functions

MessageForwarder()

~MessageForwarder()

DECLARE_CONOBJECT(MessageForwarder )

onMessageObjectReceived(StringTableEntry queue, Message * msg)

Reimplemented from: ScriptMsgListener

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

Reimplemented from: ScriptMsgListener

Public Static Functions

initPersistFields()