DIFF

class PluginMessageManagerSource

PluginMessageManager PluginBase

All members, including inherited

Class PluginMessageManager provides some basic Message Distribution mechanics, if you get instance of this plugin class on your object, you can use its methods to broadcast messages.

Constructors 1

void PluginMessageManager()
References channelList

Members 2

int channelsUsed = 0
Referenced by Subscribe(), and UnsubscribeAll()

Methods 8

void Broadcast(int index)

Broadcasts an empty message on a channel provided in the 'index' parameter

void BroadcastInt(int index, int value)

Broadcasts a message on a channel provided in the 'index' parameter, passes the Int variable

void BroadcastFloat(int index, float value)
void BroadcastString(int index, string value)
void BroadcastParam(int index, Param params)

Broadcasts a message on a channel provided in the 'index' parameter, passes the Param type object to the reciever

void Subscribe(MessageReceiverBase receiver, int index)

Subscribes an object to listen to messages on a channel provided in the 'index' parameter

References array.Find(), array.Insert(), channelList
Show 1 more, channelsUsed
void Unsubscribe(MessageReceiverBase receiver, int index)
void UnsubscribeAll(MessageReceiverBase receiver)
References array.Find(), array.Remove(), channelList
Show 1 more, channelsUsed