C# 클래스 OpenSim.Region.CoreModules.Scripting.WorldComm.WorldCommModule

상속: IWorldComm, INonSharedRegionModule
파일 보기 프로젝트 열기: openmetaversefoundation/fortis-opensim 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
CenterOfRegion System.Vector3

공개 메소드들

메소드 설명
Close ( ) : void
CreateFromData ( uint localID, UUID itemID, UUID hostID, Object 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, string msg ) : void
DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, string msg, System.Vector3 position ) : 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.

GetNextMessage ( ) : IWorldCommListenerInfo

Pop the first availlable listen event from the queue

GetSerializationData ( UUID itemID ) : Object[]
HasMessages ( ) : bool

Are there any listen events ready to be dispatched?

Initialise ( Scene scene, IConfigSource config ) : void
Listen ( uint localID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg ) : 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

PostInitialise ( ) : void

보호된 메소드들

메소드 설명
QueueMessage ( ListenerInfo li ) : void

비공개 메소드들

메소드 설명
DeliverClientMessage ( Object sender, OpenSim.Framework.OSChatMessage e ) : void

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

CreateFromData() 공개 메소드

public CreateFromData ( uint localID, UUID itemID, UUID hostID, Object data ) : void
localID uint
itemID UUID
hostID UUID
data Object
리턴 void

DeleteListener() 공개 메소드

Removes all listen event callbacks for the given itemID (script engine)
public DeleteListener ( UUID itemID ) : void
itemID UUID UUID of the script engine
리턴 void

DeliverMessage() 공개 메소드

public DeliverMessage ( ChatTypeEnum type, int channel, string name, UUID id, string msg ) : void
type ChatTypeEnum
channel int
name string
id UUID
msg string
리턴 void

DeliverMessage() 공개 메소드

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 id, string msg, System.Vector3 position ) : void
type ChatTypeEnum type of delvery (whisper,say,shout or regionwide)
channel int channel to sent on
name string name of sender (object or avatar)
id UUID key of sender (object or avatar)
msg string msg to sent
position System.Vector3
리턴 void

GetNextMessage() 공개 메소드

Pop the first availlable listen event from the queue
public GetNextMessage ( ) : IWorldCommListenerInfo
리턴 IWorldCommListenerInfo

GetSerializationData() 공개 메소드

public GetSerializationData ( UUID itemID ) : Object[]
itemID UUID
리턴 Object[]

HasMessages() 공개 메소드

Are there any listen events ready to be dispatched?
public HasMessages ( ) : bool
리턴 bool

Initialise() 공개 메소드

public Initialise ( Scene scene, IConfigSource config ) : void
scene OpenSim.Region.Framework.Scenes.Scene
config IConfigSource
리턴 void

Listen() 공개 메소드

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 ( uint localID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg ) : int
localID uint localID of the script engine
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
리턴 int

ListenControl() 공개 메소드

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()
리턴 void

ListenRemove() 공개 메소드

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()
리턴 void

PostInitialise() 공개 메소드

public PostInitialise ( ) : void
리턴 void

QueueMessage() 보호된 메소드

protected QueueMessage ( ListenerInfo li ) : void
li ListenerInfo
리턴 void

프로퍼티 상세

CenterOfRegion 보호되어 있는 정적으로 프로퍼티

protected static Vector3,System CenterOfRegion
리턴 System.Vector3