General purpose message system. More...
Classes | |
class | ListenerInfo |
Static Public Member Functions | |
static bool | IsListenerRegistered (IMessageHandler listener, string message, string parameter) |
Checks if the specified listener, message, and parameter is registered with the message system. | |
static void | AddListener (IMessageHandler listener, string message, string parameter) |
Adds a listener. | |
static void | AddListener (IMessageHandler listener, StringField message, StringField parameter) |
Adds a listener. | |
static void | AddListener (IMessageHandler listener, StringField message, string parameter) |
Adds a listener. | |
static void | AddListener (IMessageHandler listener, string message, StringField parameter) |
Adds a listener. | |
static void | RemoveListener (IMessageHandler listener, string message, string parameter) |
Removes a listener from listening to a specific message and parameter. | |
static void | RemoveListener (IMessageHandler listener, StringField message, StringField parameter) |
Removes a listener from listening to a specific message and parameter. | |
static void | RemoveListener (IMessageHandler listener, StringField message, string parameter) |
Removes a listener from listening to a specific message and parameter. | |
static void | RemoveListener (IMessageHandler listener, string message, StringField parameter) |
Removes a listener from listening to a specific message and parameter. | |
static void | RemoveListener (IMessageHandler listener) |
Removes a listener from listening to all messages. | |
static void | LogWhenSendingMessages (GameObject sender) |
Log a debug message when this object sends a message. | |
static void | StopLoggingWhenSendingMessages (GameObject sender) |
Stop logging debug messages when this object sends a message. | |
static void | LogWhenReceivingMessages (GameObject listener) |
Log a debug message when this listener receives a message. | |
static void | StopLoggingWhenReceivingMessages (GameObject listener) |
Stop logging debug messages when this listener receives a message. | |
static void | SendMessageWithTarget (object sender, object target, string message, string parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessageWithTarget (object sender, object target, StringField message, string parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessageWithTarget (object sender, object target, StringField message, StringField parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessageWithTarget (object sender, object target, string message, StringField parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessage (object sender, string message, string parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessage (object sender, StringField message, StringField parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessage (object sender, StringField message, string parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendMessage (object sender, string message, StringField parameter, params object[] values) |
Sends a message to listeners. | |
static void | SendCompositeMessage (object sender, string message) |
Sends a message. | |
Properties | |
static bool | sendInEditMode [get, set] |
Send messages even when not playing. | |
static bool | allowReceiveSameFrameAdded [get, set] |
Allow listeners to receive messages on the same frame they registered with the MessageSystem. | |
static bool | debug [get, set] |
Log message system activity. | |
static bool | allowExceptions [get, set] |
Don't catch exceptions thrown by message recipients. | |
General purpose message system.
|
inlinestatic |
Adds a listener.
listener | Listener. |
message | Message to listen for. |
parameter | Message parameter to listen for, or blank for any parameter with the message. |
|
inlinestatic |
Adds a listener.
listener | Listener. |
message | Message to listen for. |
parameter | Message parameter to listen for, or blank for any parameter with the message. |
|
inlinestatic |
Adds a listener.
listener | Listener. |
message | Message to listen for. |
parameter | Message parameter to listen for, or blank for any parameter with the message. |
|
inlinestatic |
Adds a listener.
listener | Listener. |
message | Message to listen for. |
parameter | Message parameter to listen for, or blank for any parameter with the message. |
|
inlinestatic |
Checks if the specified listener, message, and parameter is registered with the message system.
listener | Listener to check. |
message | Message to check. |
parameter | Parameter to check, or blank for any parameter. |
|
inlinestatic |
Log a debug message when this listener receives a message.
|
inlinestatic |
Log a debug message when this object sends a message.
|
inlinestatic |
Removes a listener from listening to all messages.
|
inlinestatic |
Removes a listener from listening to a specific message and parameter.
listener | Listener. |
message | Message to no longer listen for, or blank for all messages. |
parameter | Message parameter, or blank for all parameters. |
|
inlinestatic |
Removes a listener from listening to a specific message and parameter.
listener | Listener. |
message | Message to no longer listen for. |
parameter | Messaeg parameter, or blank for all parameters. |
|
inlinestatic |
Removes a listener from listening to a specific message and parameter.
listener | Listener. |
message | Message to no longer listen for. |
parameter | Messaeg parameter, or blank for all parameters. |
|
inlinestatic |
Removes a listener from listening to a specific message and parameter.
listener | Listener. |
message | Message to no longer listen for. |
parameter | Messaeg parameter, or blank for all parameters. |
|
inlinestatic |
Sends a message.
If the message contains a colon (:), the part after the colon is sent as the parameter. If it contains a second colon, the part after the second colon is sent as a value.
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
target | Intended recipient, or null for any. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
target | Intended recipient, or null for any. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
target | Intended recipient, or null for any. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Sends a message to listeners.
sender | Object/info about object that's sending the message. |
target | Intended recipient, or null for any. |
message | Message. |
parameter | Message parameter. |
values | Any number of additional values to send with message. |
|
inlinestatic |
Stop logging debug messages when this listener receives a message.
|
inlinestatic |
Stop logging debug messages when this object sends a message.
|
staticgetset |
Don't catch exceptions thrown by message recipients.
|
staticgetset |
Allow listeners to receive messages on the same frame they registered with the MessageSystem.
|
staticgetset |
Log message system activity.
|
staticgetset |
Send messages even when not playing.