IChatRuntimeEvents

From Virtual World Web Wiki
Jump to: navigation, search

This interface describes a Layer Two extensibility point. Components can implement this interface and an instance of the implementing class will be created by MEF on startup. Chat runtime events fire to offer components an opportunity to process user chat messages and offer slash command help.

See also: ChatRuntimeEventsHandler

Remarks [edit]

Methods

void ProcessChatMessage(IConnectionIdentity identity, ChatMessageArgs message)
Fired when a chat message is received from a connected user. A component can modify the chat message, detect if the message is a slash command, and if so, mark it as "Handled".
void ShowHelp(IConnectionIdentity identity, ChatMessageArgs message)
Fired when a user types "/?" or "/help" and allows you to print out information about available slash commands handled by your component