C# 클래스 WhiteCore.Modules.Archivers.InventoryArchiveReadRequest

파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
archive WhiteCore.Framework.Serialization.TarArchiveReader
m_assetsIncluded bool
m_creatorIdForAssetId UUID>.Dictionary
m_merge bool
m_registry IRegistryCore

공개 메소드들

메소드 설명
AddInventoryItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : bool
Close ( ) : void
Execute ( bool loadAll ) : HashSet

Execute the request

InventoryArchiveReadRequest ( IRegistryCore registry, UserAccount userInfo, string invPath, string loadPath, bool merge, UUID overwriteCreator ) : System
LoadControlFile ( byte data ) : void

Loads the archive.xml control file.

ReplicateArchivePathToUserInventory ( string iarPath, WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

Replicate the inventory paths in the archive to the user's inventory as necessary.

보호된 메소드들

메소드 설명
CreateFoldersForPath ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : void

Create a set of folders for the given path.

LoadItem ( byte data, WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase loadFolder ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

Load an item from the archive

ResolveDestinationFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary &resolvedFolders ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

Resolve a destination folder

비공개 메소드들

메소드 설명
InventoryArchiveReadRequest ( ) : System
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

메소드 상세

AddInventoryItem() 공개 메소드

public AddInventoryItem ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase item ) : bool
item WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
리턴 bool

Close() 공개 메소드

public Close ( ) : void
리턴 void

CreateFoldersForPath() 보호된 메소드

Create a set of folders for the given path.
protected CreateFoldersForPath ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : void
destFolder WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase /// The root folder from which the creation will take place. ///
iarPathExisting string /// the part of the iar path that already exists ///
iarPathToReplicate string /// The path to replicate in the user's inventory from iar ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
loadedNodes HashSet /// Track the inventory nodes created. ///
리턴 void

Execute() 공개 메소드

Execute the request
public Execute ( bool loadAll ) : HashSet
loadAll bool
리턴 HashSet

InventoryArchiveReadRequest() 공개 메소드

public InventoryArchiveReadRequest ( IRegistryCore registry, UserAccount userInfo, string invPath, string loadPath, bool merge, UUID overwriteCreator ) : System
registry IRegistryCore
userInfo WhiteCore.Framework.Services.UserAccount
invPath string
loadPath string
merge bool
overwriteCreator UUID
리턴 System

LoadControlFile() 공개 메소드

Loads the archive.xml control file.
public LoadControlFile ( byte data ) : void
data byte Data.
리턴 void

LoadItem() 보호된 메소드

Load an item from the archive
protected LoadItem ( byte data, WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase loadFolder ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
data byte The raw item data
loadFolder WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
리턴 WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

ReplicateArchivePathToUserInventory() 공개 메소드

Replicate the inventory paths in the archive to the user's inventory as necessary.
public ReplicateArchivePathToUserInventory ( string iarPath, WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
iarPath string The item archive path to replicate
rootDestFolder WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase The root folder for the inventory load
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. /// This method will add more folders if necessary ///
loadedNodes HashSet /// Track the inventory nodes created. ///
리턴 WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

ResolveDestinationFolder() 보호된 메소드

Resolve a destination folder
protected ResolveDestinationFolder ( WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary &resolvedFolders ) : WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
rootDestFolder WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase /// The root folder for the inventory load ///
archivePath string /// The item archive path to resolve. The portion of the path passed back is that /// which corresponds to the resolved destination folder. ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
리턴 WhiteCore.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

프로퍼티 상세

archive 보호되어 있는 프로퍼티

protected TarArchiveReader,WhiteCore.Framework.Serialization archive
리턴 WhiteCore.Framework.Serialization.TarArchiveReader

m_assetsIncluded 보호되어 있는 프로퍼티

protected bool m_assetsIncluded
리턴 bool

m_creatorIdForAssetId 보호되어 있는 프로퍼티

Record the creator id that should be associated with an asset. This is used to adjust asset creator ids after OSP resolution (since OSP creators are only stored in the item
protected Dictionary m_creatorIdForAssetId
리턴 UUID>.Dictionary

m_merge 보호되어 있는 프로퍼티

Do we want to merge this load with existing inventory?
protected bool m_merge
리턴 bool

m_registry 보호되어 있는 프로퍼티

protected IRegistryCore m_registry
리턴 IRegistryCore