C# Class Universe.Modules.Scripting.WorldCommModule

Inheritance: INonSharedRegionModule, IWorldComm
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Свойство Type Description
CenterOfRegion System.Vector3

Méthodes publiques

Méthode Description
AddBlockedChannel ( int channel ) : void
AddRegion ( IScene scene ) : void
Close ( ) : void
CreateFromData ( UUID itemID, UUID hostID, OSD data ) : void
DeleteListener ( UUID itemID ) : void

Removes all listen event callbacks for the given itemID (script engine)

DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, UUID toID, string msg ) : void
DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, string msg ) : void
DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID fromID, string msg, System.Vector3 position, float range, UUID toID ) : void

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.

DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, string msg, float range ) : void
GetNextMessage ( ) : IWorldCommListenerInfo

Pop the first available listen event from the queue

GetSerializationData ( UUID itemID, UUID primID ) : OSD
HasListeners ( ) : bool
HasMessages ( ) : bool

Are there any listen events ready to be dispatched?

Initialize ( IConfigSource config ) : void
Listen ( UUID itemID, UUID hostID, int channel, string name, UUID id, string msg, int regexBitfield ) : int

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.

ListenControl ( UUID itemID, int handle, int active ) : void

Sets the listen event with handle as active (active = TRUE) or inactive (active = FALSE). The handle used is returned from Listen()

ListenRemove ( UUID itemID, int handle ) : void

Removes the listen event callback with handle

RegionLoaded ( IScene scene ) : void
RemoveBlockedChannel ( int channel ) : void
RemoveRegion ( IScene scene ) : void

Méthodes protégées

Méthode Description
QueueMessage ( ListenerInfo li ) : void

Private Methods

Méthode Description
DeliverClientMessage ( object sender, OSChatMessage e ) : void

Method Details

AddBlockedChannel() public méthode

public AddBlockedChannel ( int channel ) : void
channel int
Résultat void

AddRegion() public méthode

public AddRegion ( IScene scene ) : void
scene IScene
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

CreateFromData() public méthode

public CreateFromData ( UUID itemID, UUID hostID, OSD data ) : void
itemID UUID
hostID UUID
data OSD
Résultat void

DeleteListener() public méthode

Removes all listen event callbacks for the given itemID (script engine)
public DeleteListener ( UUID itemID ) : void
itemID UUID UUID of the script engine
Résultat void

DeliverMessage() public méthode

public DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, UUID toID, string msg ) : void
type ChatTypeEnum
channel int
name string
id UUID
toID UUID
msg string
Résultat void

DeliverMessage() public méthode

public DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, string msg ) : void
type ChatTypeEnum
channel int
name string
id UUID
msg string
Résultat void

DeliverMessage() public méthode

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.
public DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID fromID, string msg, System.Vector3 position, float range, UUID toID ) : void
type ChatTypeEnum type of delivery (whisper,say,shout or regionwide)
channel int channel to sent on
name string name of sender (object or avatar)
fromID UUID key of sender (object or avatar)
msg string msg to sent
position System.Vector3
range float
toID UUID
Résultat void

DeliverMessage() public méthode

public DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, string msg, float range ) : void
type ChatTypeEnum
channel int
name string
id UUID
msg string
range float
Résultat void

GetNextMessage() public méthode

Pop the first available listen event from the queue
public GetNextMessage ( ) : IWorldCommListenerInfo
Résultat IWorldCommListenerInfo

GetSerializationData() public méthode

public GetSerializationData ( UUID itemID, UUID primID ) : OSD
itemID UUID
primID UUID
Résultat OSD

HasListeners() public méthode

public HasListeners ( ) : bool
Résultat bool

HasMessages() public méthode

Are there any listen events ready to be dispatched?
public HasMessages ( ) : bool
Résultat bool

Initialize() public méthode

public Initialize ( IConfigSource config ) : void
config IConfigSource
Résultat void

Listen() public méthode

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.
public Listen ( UUID itemID, UUID hostID, int channel, string name, UUID id, string msg, int regexBitfield ) : int
itemID UUID UUID of the script engine
hostID UUID UUID of the SceneObjectPart
channel int channel to listen on
name string name to filter on
id UUID key to filter on (user given, could be totally faked)
msg string msg to filter on
regexBitfield int
Résultat int

ListenControl() public méthode

Sets the listen event with handle as active (active = TRUE) or inactive (active = FALSE). The handle used is returned from Listen()
public ListenControl ( UUID itemID, int handle, int active ) : void
itemID UUID UUID of the script engine
handle int handle returned by Listen()
active int temp. activate or deactivate the Listen()
Résultat void

ListenRemove() public méthode

Removes the listen event callback with handle
public ListenRemove ( UUID itemID, int handle ) : void
itemID UUID UUID of the script engine
handle int handle returned by Listen()
Résultat void

QueueMessage() protected méthode

protected QueueMessage ( ListenerInfo li ) : void
li ListenerInfo
Résultat void

RegionLoaded() public méthode

public RegionLoaded ( IScene scene ) : void
scene IScene
Résultat void

RemoveBlockedChannel() public méthode

public RemoveBlockedChannel ( int channel ) : void
channel int
Résultat void

RemoveRegion() public méthode

public RemoveRegion ( IScene scene ) : void
scene IScene
Résultat void

Property Details

CenterOfRegion protected_oe static_oe property

protected static Vector3,System CenterOfRegion
Résultat System.Vector3