C# Class Hugula.Editor.SplitPackage

Split package.
ファイルを表示 Open project: tenvick/hugula Class Usage Examples

Public Methods

Method Description
CopyChangeFileToSplitFolder ( bool firstExists, uint[]>.Dictionary firstCrcDict, uint[]>.Dictionary currCrcDict, uint[]>.Dictionary diffCrcDict, HashSet whiteFileList, HashSet blackFileList ) : void
CopyVersionToSplitFolder ( uint filelistCrc ) : void

Copies the version and crc file list assetbundle to split folder.

CreateCrcListContent ( string allBundles, uint[]>.Dictionary firstCrcDict, uint[]>.Dictionary currCrcDict, uint[]>.Dictionary diffCrcDict, HashSet whiteFileList, HashSet blackFileList ) : System.Text.StringBuilder[]

2 Creates the content of the crc list.

CreateStreamingCrcList ( StringBuilder sb, bool firstExists = false, string outPath = null ) : uint

Creates the streaming crc list.

CreateVersionAssetBundle ( uint fileCrc ) : void

Creates the version asset bundle.

DeleteSplitPackageResFolder ( ) : void

delete res folder

DeleteStreamingFiles ( ICollection abNames ) : void
ReadFirst ( uint[]>.Dictionary firstCrcDict, HashSet whiteFileList, HashSet blackFileList ) : bool

1 读取首包,找出忽略文件

Private Methods

Method Description
CopyFileToSplitFolder ( uint[]>.Dictionary updateList ) : void
GetFirstOutPath ( ) : string

Method Details

CopyChangeFileToSplitFolder() public static method

public static CopyChangeFileToSplitFolder ( bool firstExists, uint[]>.Dictionary firstCrcDict, uint[]>.Dictionary currCrcDict, uint[]>.Dictionary diffCrcDict, HashSet whiteFileList, HashSet blackFileList ) : void
firstExists bool
firstCrcDict uint[]>.Dictionary
currCrcDict uint[]>.Dictionary
diffCrcDict uint[]>.Dictionary
whiteFileList HashSet
blackFileList HashSet
return void

CopyVersionToSplitFolder() public static method

Copies the version and crc file list assetbundle to split folder.
public static CopyVersionToSplitFolder ( uint filelistCrc ) : void
filelistCrc uint
return void

CreateCrcListContent() public static method

2 Creates the content of the crc list.
public static CreateCrcListContent ( string allBundles, uint[]>.Dictionary firstCrcDict, uint[]>.Dictionary currCrcDict, uint[]>.Dictionary diffCrcDict, HashSet whiteFileList, HashSet blackFileList ) : System.Text.StringBuilder[]
allBundles string All bundles.
firstCrcDict uint[]>.Dictionary
currCrcDict uint[]>.Dictionary
diffCrcDict uint[]>.Dictionary
whiteFileList HashSet White file list.
blackFileList HashSet Black file list.
return System.Text.StringBuilder[]

CreateStreamingCrcList() public static method

Creates the streaming crc list.
public static CreateStreamingCrcList ( StringBuilder sb, bool firstExists = false, string outPath = null ) : uint
sb System.Text.StringBuilder Sb.
firstExists bool
outPath string
return uint

CreateVersionAssetBundle() public static method

Creates the version asset bundle.
public static CreateVersionAssetBundle ( uint fileCrc ) : void
fileCrc uint File crc.
return void

DeleteSplitPackageResFolder() public static method

delete res folder
public static DeleteSplitPackageResFolder ( ) : void
return void

DeleteStreamingFiles() public static method

public static DeleteStreamingFiles ( ICollection abNames ) : void
abNames ICollection
return void

ReadFirst() public static method

1 读取首包,找出忽略文件
public static ReadFirst ( uint[]>.Dictionary firstCrcDict, HashSet whiteFileList, HashSet blackFileList ) : bool
firstCrcDict uint[]>.Dictionary
whiteFileList HashSet
blackFileList HashSet
return bool