OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Properties | List of all members
OpenSim.Region.Framework.Interfaces.IWorldComm Interface Reference
Inheritance diagram for OpenSim.Region.Framework.Interfaces.IWorldComm:
Inheritance graph
[legend]

Public Member Functions

int Listen (uint LocalID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg)
 Create a listen event callback with the specified filters. The parameters localID,itemID are needed to uniquely identify the script during 'peek' time. Parameter hostID is needed to determine the position of the script. More...
 
int Listen (uint LocalID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg, int regexBitfield)
 
void DeliverMessage (ChatTypeEnum type, int channel, string name, UUID id, string msg)
 This method scans over the objects which registered an interest in listen callbacks. For everyone it finds, it checks if it fits the given filter. If it does, then enqueue the message for delivery to the objects listen event handler. The enqueued ListenerInfo no longer has filter values, but the actually trigged values. Objects that do an llSay have their messages delivered here and for nearby avatars, the OnChatFromClient event is used. More...
 
void DeliverMessageTo (UUID target, int channel, Vector3 pos, string name, UUID id, string msg)
 Delivers the message to a specified object in the region. More...
 
bool HasMessages ()
 Are there any listen events ready to be dispatched? More...
 
IWorldCommListenerInfo GetNextMessage ()
 Pop the first availlable listen event from the queue More...
 
void ListenControl (UUID itemID, int handle, int active)
 
void ListenRemove (UUID itemID, int handle)
 
void DeleteListener (UUID itemID)
 
Object[] GetSerializationData (UUID itemID)
 
void CreateFromData (uint localID, UUID itemID, UUID hostID, Object[] data)
 

Properties

int ListenerCount [get]
 Total number of listeners More...
 

Detailed Description

Definition at line 57 of file IWorldComm.cs.

Member Function Documentation

void OpenSim.Region.Framework.Interfaces.IWorldComm.CreateFromData ( uint  localID,
UUID  itemID,
UUID  hostID,
Object[]  data 
)
void OpenSim.Region.Framework.Interfaces.IWorldComm.DeleteListener ( UUID  itemID)
void OpenSim.Region.Framework.Interfaces.IWorldComm.DeliverMessage ( ChatTypeEnum  type,
int  channel,
string  name,
UUID  id,
string  msg 
)

This method scans over the objects which registered an interest in listen callbacks. For everyone it finds, it checks if it fits the given filter. If it does, then enqueue the message for delivery to the objects listen event handler. The enqueued ListenerInfo no longer has filter values, but the actually trigged values. Objects that do an llSay have their messages delivered here and for nearby avatars, the OnChatFromClient event is used.

Parameters
typetype of delvery (whisper,say,shout or regionwide)
channelchannel to sent on
namename of sender (object or avatar)
idkey of sender (object or avatar)
msgmsg to sent

Implemented in OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule.

void OpenSim.Region.Framework.Interfaces.IWorldComm.DeliverMessageTo ( UUID  target,
int  channel,
Vector3  pos,
string  name,
UUID  id,
string  msg 
)

Delivers the message to a specified object in the region.

Parameters
targetTarget.
channelChannel.
nameName.
idIdentifier.
msgMessage.

Implemented in OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule.

IWorldCommListenerInfo OpenSim.Region.Framework.Interfaces.IWorldComm.GetNextMessage ( )

Pop the first availlable listen event from the queue

Returns
ListenerInfo with filter filled in

Implemented in OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule.

Object [] OpenSim.Region.Framework.Interfaces.IWorldComm.GetSerializationData ( UUID  itemID)
bool OpenSim.Region.Framework.Interfaces.IWorldComm.HasMessages ( )

Are there any listen events ready to be dispatched?

Returns
boolean indication

Implemented in OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule.

int OpenSim.Region.Framework.Interfaces.IWorldComm.Listen ( uint  LocalID,
UUID  itemID,
UUID  hostID,
int  channel,
string  name,
UUID  id,
string  msg 
)

Create a listen event callback with the specified filters. The parameters localID,itemID are needed to uniquely identify the script during 'peek' time. Parameter hostID is needed to determine the position of the script.

Parameters
LocalIDlocalID of the script engine
itemIDUUID of the script engine
hostIDUUID of the SceneObjectPart
channelchannel to listen on
namename to filter on
idkey to filter on (user given, could be totally faked)
msgmsg to filter on
Returns
number of the scripts handle

Implemented in OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule.

int OpenSim.Region.Framework.Interfaces.IWorldComm.Listen ( uint  LocalID,
UUID  itemID,
UUID  hostID,
int  channel,
string  name,
UUID  id,
string  msg,
int  regexBitfield 
)

Create a listen event callback with the specified filters. The parameters localID,itemID are needed to uniquely identify the script during 'peek' time. Parameter hostID is needed to determine the position of the script.

Parameters
LocalIDlocalID of the script engine
itemIDUUID of the script engine
hostIDUUID of the SceneObjectPart
channelchannel to listen on
namename to filter on
idkey to filter on (user given, could be totally faked)
msgmsg to filter on
regexBitfieldBitfield indicating which strings should be processed as regex.
Returns
number of the scripts handle

Implemented in OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule.

void OpenSim.Region.Framework.Interfaces.IWorldComm.ListenControl ( UUID  itemID,
int  handle,
int  active 
)
void OpenSim.Region.Framework.Interfaces.IWorldComm.ListenRemove ( UUID  itemID,
int  handle 
)

Property Documentation

int OpenSim.Region.Framework.Interfaces.IWorldComm.ListenerCount
get

Total number of listeners

Definition at line 62 of file IWorldComm.cs.


The documentation for this interface was generated from the following file: