C# Класс Universe.Modules.Attachments.AttachmentsModule

Наследование: IAttachmentsModule, INonSharedRegionModule
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AvatarFactory IAvatarFactory

Защищенные свойства (Protected)

Свойство Тип Описание
m_allowMultipleAttachments bool
m_maxNumberOfAttachments int
m_scene IScene

Открытые методы

Метод Описание
AddRegion ( IScene scene ) : void
AttachObjectFromInworldObject ( uint localID, IClientAPI remoteClient, ISceneEntity group, int AttachmentPt, bool isTempAttach ) : bool
Close ( ) : void
DetachSingleAttachmentToGround ( UUID itemID, IClientAPI remoteClient ) : void
DetachSingleAttachmentToGround ( UUID itemID, IClientAPI remoteClient, System.Vector3 forcedPos, Quaternion forcedRotation ) : void
DetachSingleAttachmentToInventory ( UUID itemID, IClientAPI remoteClient ) : void
GetAttachmentsForAvatar ( UUID avatarID ) : ISceneEntity[]

Get all of the attachments for the given avatar

Initialize ( IConfigSource source ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : void
ResumeAvatar ( IScenePresence presence ) : void
RezSingleAttachmentFromInventory ( IClientAPI remoteClient, UUID itemID, UUID assetID, int AttachmentPt, bool updateUUIDs ) : ISceneEntity
SendAttachmentsToPresence ( IScenePresence receiver, IScenePresence sender ) : void
SendScriptEventToAttachments ( UUID avatarID, string eventName, Object args ) : void

Send a script event to this scene presence's attachments

SuspendAvatar ( IScenePresence presence, Universe.Framework.Services.GridRegion destination ) : void
UpdateAttachmentPosition ( IClientAPI client, ISceneEntity sog, uint localID, System.Vector3 pos ) : void

Update the position of the given attachment

Защищенные методы

Метод Описание
AgentIsLeaving ( IScenePresence presence, Universe.Framework.Services.GridRegion destination ) : void
ClientAttachObject ( IClientAPI remoteClient, uint objectLocalID, int AttachmentPt, bool silent ) : void
ClientDetachObject ( uint objectLocalID, IClientAPI remoteClient ) : void
ClientDropObject ( uint objectLocalID, IClientAPI remoteClient ) : void
ClientRezSingleAttachmentFromInventory ( IClientAPI remoteClient, UUID itemID, int AttachmentPt ) : UUID
ClientUpdateAttachmentPosition ( uint objectLocalID, System.Vector3 pos, IClientAPI remoteClient, bool SaveUpdate ) : void
DetachSingleAttachmentToInventoryInternal ( UUID itemID, IClientAPI remoteClient, bool fireEvent ) : void
FindAttachmentPoint ( IClientAPI remoteClient, uint localID, ISceneEntity group, int AttachmentPt, UUID assetID, bool forceUpdatePrim, bool isTempAttach ) : void

Attach the object to the avatar

SendKillEntity ( uint rootPart ) : void
SubscribeToClientEvents ( IClientAPI client ) : void
UnsubscribeFromClientEvents ( IClientAPI client ) : void
UpdateKnownItem ( IClientAPI remoteClient, ISceneEntity grp, UUID itemID, UUID agentID ) : UUID

Update the attachment asset for the new sog details if they have changed.

Приватные методы

Метод Описание
DetachSingleAttachmentGroupToInventoryInternal ( UUID itemID, IClientAPI remoteClient, bool fireEvent, ISceneEntity group ) : void

Описание методов

AddRegion() публичный Метод

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

AgentIsLeaving() защищенный Метод

protected AgentIsLeaving ( IScenePresence presence, Universe.Framework.Services.GridRegion destination ) : void
presence IScenePresence
destination Universe.Framework.Services.GridRegion
Результат void

AttachObjectFromInworldObject() публичный Метод

public AttachObjectFromInworldObject ( uint localID, IClientAPI remoteClient, ISceneEntity group, int AttachmentPt, bool isTempAttach ) : bool
localID uint
remoteClient IClientAPI
group ISceneEntity
AttachmentPt int
isTempAttach bool
Результат bool

ClientAttachObject() защищенный Метод

protected ClientAttachObject ( IClientAPI remoteClient, uint objectLocalID, int AttachmentPt, bool silent ) : void
remoteClient IClientAPI
objectLocalID uint
AttachmentPt int
silent bool
Результат void

ClientDetachObject() защищенный Метод

protected ClientDetachObject ( uint objectLocalID, IClientAPI remoteClient ) : void
objectLocalID uint
remoteClient IClientAPI
Результат void

ClientDropObject() защищенный Метод

protected ClientDropObject ( uint objectLocalID, IClientAPI remoteClient ) : void
objectLocalID uint
remoteClient IClientAPI
Результат void

ClientRezSingleAttachmentFromInventory() защищенный Метод

protected ClientRezSingleAttachmentFromInventory ( IClientAPI remoteClient, UUID itemID, int AttachmentPt ) : UUID
remoteClient IClientAPI
itemID UUID
AttachmentPt int
Результат UUID

ClientUpdateAttachmentPosition() защищенный Метод

protected ClientUpdateAttachmentPosition ( uint objectLocalID, System.Vector3 pos, IClientAPI remoteClient, bool SaveUpdate ) : void
objectLocalID uint
pos System.Vector3
remoteClient IClientAPI
SaveUpdate bool
Результат void

Close() публичный Метод

public Close ( ) : void
Результат void

DetachSingleAttachmentToGround() публичный Метод

public DetachSingleAttachmentToGround ( UUID itemID, IClientAPI remoteClient ) : void
itemID UUID
remoteClient IClientAPI
Результат void

DetachSingleAttachmentToGround() публичный Метод

public DetachSingleAttachmentToGround ( UUID itemID, IClientAPI remoteClient, System.Vector3 forcedPos, Quaternion forcedRotation ) : void
itemID UUID
remoteClient IClientAPI
forcedPos System.Vector3
forcedRotation Quaternion
Результат void

DetachSingleAttachmentToInventory() публичный Метод

public DetachSingleAttachmentToInventory ( UUID itemID, IClientAPI remoteClient ) : void
itemID UUID
remoteClient IClientAPI
Результат void

DetachSingleAttachmentToInventoryInternal() защищенный Метод

protected DetachSingleAttachmentToInventoryInternal ( UUID itemID, IClientAPI remoteClient, bool fireEvent ) : void
itemID UUID
remoteClient IClientAPI
fireEvent bool
Результат void

FindAttachmentPoint() защищенный Метод

Attach the object to the avatar
protected FindAttachmentPoint ( IClientAPI remoteClient, uint localID, ISceneEntity group, int AttachmentPt, UUID assetID, bool forceUpdatePrim, bool isTempAttach ) : void
remoteClient IClientAPI The client that is having the attachment done
localID uint The localID (SceneObjectPart) that is being attached (for the attach script event)
group ISceneEntity The group (SceneObjectGroup) that is being attached
AttachmentPt int The point to where the attachment will go
assetID UUID /// Force updating of the prim the next time the user attempts to detach it
forceUpdatePrim bool
isTempAttach bool Is a temporary attachment
Результат void

GetAttachmentsForAvatar() публичный Метод

Get all of the attachments for the given avatar
public GetAttachmentsForAvatar ( UUID avatarID ) : ISceneEntity[]
avatarID UUID The avatar whose attachments will be returned
Результат ISceneEntity[]

Initialize() публичный Метод

public Initialize ( IConfigSource source ) : void
source IConfigSource
Результат void

RegionLoaded() публичный Метод

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

RemoveRegion() публичный Метод

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

ResumeAvatar() публичный Метод

public ResumeAvatar ( IScenePresence presence ) : void
presence IScenePresence
Результат void

RezSingleAttachmentFromInventory() публичный Метод

public RezSingleAttachmentFromInventory ( IClientAPI remoteClient, UUID itemID, UUID assetID, int AttachmentPt, bool updateUUIDs ) : ISceneEntity
remoteClient IClientAPI
itemID UUID
assetID UUID
AttachmentPt int
updateUUIDs bool
Результат ISceneEntity

SendAttachmentsToPresence() публичный Метод

public SendAttachmentsToPresence ( IScenePresence receiver, IScenePresence sender ) : void
receiver IScenePresence
sender IScenePresence
Результат void

SendKillEntity() защищенный Метод

protected SendKillEntity ( uint rootPart ) : void
rootPart uint
Результат void

SendScriptEventToAttachments() публичный Метод

Send a script event to this scene presence's attachments
public SendScriptEventToAttachments ( UUID avatarID, string eventName, Object args ) : void
avatarID UUID The avatar to fire the event for
eventName string The name of the event
args Object The arguments for the event
Результат void

SubscribeToClientEvents() защищенный Метод

protected SubscribeToClientEvents ( IClientAPI client ) : void
client IClientAPI
Результат void

SuspendAvatar() публичный Метод

public SuspendAvatar ( IScenePresence presence, Universe.Framework.Services.GridRegion destination ) : void
presence IScenePresence
destination Universe.Framework.Services.GridRegion
Результат void

UnsubscribeFromClientEvents() защищенный Метод

protected UnsubscribeFromClientEvents ( IClientAPI client ) : void
client IClientAPI
Результат void

UpdateAttachmentPosition() публичный Метод

Update the position of the given attachment
public UpdateAttachmentPosition ( IClientAPI client, ISceneEntity sog, uint localID, System.Vector3 pos ) : void
client IClientAPI
sog ISceneEntity
localID uint
pos System.Vector3
Результат void

UpdateKnownItem() защищенный Метод

Update the attachment asset for the new sog details if they have changed.
protected UpdateKnownItem ( IClientAPI remoteClient, ISceneEntity grp, UUID itemID, UUID agentID ) : UUID
remoteClient IClientAPI
grp ISceneEntity
itemID UUID
agentID UUID
Результат UUID

Описание свойств

AvatarFactory публичное свойство

public IAvatarFactory AvatarFactory
Результат IAvatarFactory

m_allowMultipleAttachments защищенное свойство

protected bool m_allowMultipleAttachments
Результат bool

m_maxNumberOfAttachments защищенное свойство

protected int m_maxNumberOfAttachments
Результат int

m_scene защищенное свойство

protected IScene m_scene
Результат IScene