Class AssetsCache
Helper class for assets cache file.
Implements
Inherited Members
Namespace: Evergine.Assets.Utils
Assembly: Evergine.Assets.dll
Syntax
public class AssetsCache : IDisposable
Constructors
AssetsCache(ExportContext)
Initializes a new instance of the Assets
Declaration
public AssetsCache(ExportContext exportContext)
Parameters
Type | Name | Description |
---|---|---|
Export |
exportContext | The export context. |
Properties
CacheFilePath
Gets the cache file path.
Declaration
public string CacheFilePath { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Add(AssetItem, ExportResult)
Adds the specified asset item.
Declaration
public void Add(AssetItem assetItem, ExportResult exportResult)
Parameters
Type | Name | Description |
---|---|---|
Asset |
assetItem | The asset item. |
Export |
exportResult | The asset export result. |
Dispose()
Declaration
public void Dispose()
Exists(AssetItem, out string)
Checks if the asset export exists in the output directory and the hash is valid.
Declaration
public bool Exists(AssetItem assetItem, out string exportOutput)
Parameters
Type | Name | Description |
---|---|---|
Asset |
assetItem | The asset item. |
string | exportOutput | The export output file. |
Returns
Type | Description |
---|---|
bool |
|
Invalidate(AssetItem)
Invalidates the cache information of the specified asset.
Declaration
public bool Invalidate(AssetItem assetItem)
Parameters
Type | Name | Description |
---|---|---|
Asset |
assetItem | The asset item. |
Returns
Type | Description |
---|---|
bool |
|
Save()
Saves this instance.
Declaration
public void Save()