Rubeus::RMessageSystem class

A message system class that handles message posting and adding.

Public static variables

static RMessageBus m_MessageBus
The message bus, common to all message systems.

Public functions

void evaluateMessages()
Pops messages from the message queue and sends them to their respective destinations.
void addMessage(RMasterComponent* sender, RMasterComponent* receiver, EMessageCode type, var data = NULL)
Adds a message to the message queue.

Function documentation

void Rubeus::RMessageSystem::evaluateMessages()

Pops messages from the message queue and sends them to their respective destinations.

void Rubeus::RMessageSystem::addMessage(RMasterComponent* sender, RMasterComponent* receiver, EMessageCode type, var data = NULL)

Adds a message to the message queue.

Parameters
sender Pointer to the sender.
receiver Pointer to the receiver.
type Type of message command.
data The data object to be sent. See 'var' typedef for transmittable data