C# 클래스 Universe.Modules.Agent.AssetTransaction.AssetXferUploader

파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
XferID ulong

공개 메소드들

메소드 설명
AssetXferUploader ( AgentAssetTransactions transactions, IScene scene, UUID transactionID, bool dumpAssetToFile ) : System

AssetXferUploader constructor

HandleXferPacket ( ulong xferID, uint packetID, byte data ) : bool

Process transfer data received from the client.

RequestCreateInventoryItem ( IClientAPI remoteClient, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask ) : void
RequestUpdateInventoryItem ( IClientAPI remoteClient, InventoryItemBase item ) : void
RequestUpdateTaskInventoryItem ( IClientAPI remoteClient, TaskInventoryItem taskItem ) : void
StartUpload ( IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte data, bool storeLocal, bool tempFile ) : void

Start asset transfer from the client

보호된 메소드들

메소드 설명
RequestStartXfer ( ) : void
SendCompleteMessage ( ) : void

비공개 메소드들

메소드 설명
CompleteCreateItem ( uint callbackID ) : void
CompleteItemUpdate ( InventoryItemBase item ) : void

Store the asset for the given item when it has been uploaded.

CompleteTaskItemUpdate ( TaskInventoryItem taskItem ) : void

Store the asset for the given task item when it has been uploaded.

SaveAssetToFile ( string filename, byte data ) : void

메소드 상세

AssetXferUploader() 공개 메소드

AssetXferUploader constructor
public AssetXferUploader ( AgentAssetTransactions transactions, IScene scene, UUID transactionID, bool dumpAssetToFile ) : System
transactions AgentAssetTransactions
scene IScene
transactionID UUID
dumpAssetToFile bool /// If true then when the asset is uploaded it is dumped to a file with the format /// String.Format("{6}_{7}_{0:d2}{1:d2}{2:d2}_{3:d2}{4:d2}{5:d2}.dat", /// now.Year, now.Month, now.Day, now.Hour, now.Minute, /// now.Second, m_asset.Name, m_asset.Type); /// for debugging purposes. ///
리턴 System

HandleXferPacket() 공개 메소드

Process transfer data received from the client.
public HandleXferPacket ( ulong xferID, uint packetID, byte data ) : bool
xferID ulong
packetID uint
data byte
리턴 bool

RequestCreateInventoryItem() 공개 메소드

public RequestCreateInventoryItem ( IClientAPI remoteClient, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask ) : void
remoteClient IClientAPI
folderID UUID
callbackID uint
description string
name string
invType sbyte
type sbyte
wearableType byte
nextOwnerMask uint
리턴 void

RequestStartXfer() 보호된 메소드

protected RequestStartXfer ( ) : void
리턴 void

RequestUpdateInventoryItem() 공개 메소드

public RequestUpdateInventoryItem ( IClientAPI remoteClient, InventoryItemBase item ) : void
remoteClient IClientAPI
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
리턴 void

RequestUpdateTaskInventoryItem() 공개 메소드

public RequestUpdateTaskInventoryItem ( IClientAPI remoteClient, TaskInventoryItem taskItem ) : void
remoteClient IClientAPI
taskItem Universe.Framework.SceneInfo.TaskInventoryItem
리턴 void

SendCompleteMessage() 보호된 메소드

protected SendCompleteMessage ( ) : void
리턴 void

StartUpload() 공개 메소드

Start asset transfer from the client
public StartUpload ( IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte data, bool storeLocal, bool tempFile ) : void
remoteClient IClientAPI
assetID UUID
transaction UUID
type sbyte
data byte /// Optional data. If present then the asset is created immediately with this data /// rather than requesting an upload from the client. The data must be longer than 2 bytes. ///
storeLocal bool
tempFile bool
리턴 void

프로퍼티 상세

XferID 공개적으로 프로퍼티

public ulong XferID
리턴 ulong