Members
messageFormats
Each property is an array of messageformat class instances.
The classes must have a parse function that receives a
msg object and translates into a string.
messageHandlers
Functions that are called each time a message was parsed.
Methods
registerMessageFormat(type, handler)
Parameters:
Name | Type | Description |
---|---|---|
type |
a string denoting the messagetype used by addChatMessage calls. | |
handler |
a class instance with a parse function. |
registerMessageFormatClass()
Receives a class where each enumerable owned property is a chat format
class identified by the property name.