Class AggregateAssetBundle
- Namespace
- Lime
- Assembly
- Lime.dll
public class AggregateAssetBundle : AssetBundle, IDisposable
- Inheritance
-
AggregateAssetBundle
- Implements
- Inherited Members
Constructors
AggregateAssetBundle(params AssetBundle[])
public AggregateAssetBundle(params AssetBundle[] bundles)
Parameters
bundles
AssetBundle[]
Methods
Attach(AssetBundle)
public void Attach(AssetBundle bundle)
Parameters
bundle
AssetBundle
DeleteFile(string)
public override void DeleteFile(string path)
Parameters
path
string
Detach(AssetBundle)
public void Detach(AssetBundle bundle)
Parameters
bundle
AssetBundle
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()
EnumerateFiles(string, string)
Enumerates all files by given path and having the given extension. Order is specific to implementation.
public override IEnumerable<string> EnumerateFiles(string path = null, string extension = null)
Parameters
Returns
FileExists(string)
public override bool FileExists(string path)
Parameters
path
string
Returns
FromSystemPath(string)
Translates absolute system file path to the asset path. Raises UnsupportedException() for PackedAssetBundle.
public override string FromSystemPath(string systemPath)
Parameters
systemPath
string
Returns
GetFileContentsHash(string)
Returns SHA256 based on the file contents.
public override SHA256 GetFileContentsHash(string path)
Parameters
path
string
Returns
GetFileOriginHash(string)
Returns SHA256 that was passed to the ImportFile or ImportFileRaw methods.
public override SHA256 GetFileOriginHash(string path)
Parameters
path
string
Returns
GetFileSize(string)
public override int GetFileSize(string path)
Parameters
path
string
Returns
GetFileUnpackedSize(string)
public override int GetFileUnpackedSize(string path)
Parameters
path
string
Returns
ImportFile(string, Stream, SHA256, AssetAttributes)
public override void ImportFile(string destinationPath, Stream stream, SHA256 originHash, AssetAttributes attributes = AssetAttributes.None)
Parameters
destinationPath
stringstream
StreamoriginHash
SHA256attributes
AssetAttributes
ImportFileRaw(string, Stream, int, SHA256, SHA256, AssetAttributes)
Imports a file assuming that the input stream is already compressed.
public override void ImportFileRaw(string destinationPath, Stream stream, int unpackedSize, SHA256 hash, SHA256 originHash, AssetAttributes attributes = AssetAttributes.None)
Parameters
destinationPath
stringstream
StreamunpackedSize
inthash
SHA256originHash
SHA256attributes
AssetAttributes
OpenFile(string, FileMode)
public override Stream OpenFile(string path, FileMode mode = FileMode.Open)
Parameters
Returns
OpenFileRaw(string, FileMode)
Returns file data as it stored in the asset bundle, e.g. compressed.
public override Stream OpenFileRaw(string path, FileMode mode = FileMode.Open)
Parameters
Returns
ToSystemPath(string)
Translates bundle path to the asset in the file system. Raises UnsupportedException() for PackedAssetBundle.
public override string ToSystemPath(string bundlePath)
Parameters
bundlePath
string