ChatChannelExtended

From Virtual World Web Wiki
Jump to: navigation, search
  • This is a JavaScript visible object

Remarks [edit]

Events

OnJoin(ParticipantExtended who)
Parameters:
who : The participant firing the ability
Fired when a new participant enters the channel.
OnLeave(ParticipantExtended who)
Parameters:
who : The participant firing the ability
Fired when a participant leaves the channel.
OnMessage(ParticipantExtended who, ChatMessageEventArgsExtened message)
Parameters:
who : The participant firing the ability
message : The message
Fired when a message is sent in the channel.

Methods

void Broadcast(string message, int messageStyle = 253)
Sends a message to all participants of a channel. By default, the message style is 253 (System)
void Close()
Closes (Disposes) a channel.
IEnumerable<ParticipantExtended> GetParticipants()
Gets the participants of the channel
bool Join(ParticipantExtended participant)
Add a participant to the channel.
bool Leave(ParticipantExtended participant)
Remove a participant from the channel.
void SendMessageTo(ParticipantExtended participant, string message, int messageStyle = 253)
Sends a message to a single participant of a channel. By default, the message style is 253 (System)