Class CommonAssetStore
Loads and indexes the common assets under a pack's Common/ folder, by name and by hash. If a
pre-packed CommonAssetsIndex.hashes sidecar is present it's used directly (no hashing);
otherwise every file is SHA-256'd in parallel.
public sealed class CommonAssetStore : ICommonAssetStore
- Inheritance
-
CommonAssetStore
- Implements
- Inherited Members
Properties
All
public IReadOnlyCollection<CommonAsset> All { get; }
Property Value
Methods
Load(string)
public void Load(string commonRoot)
Parameters
commonRootstring
Load(string, IAssetSource)
public void Load(string commonRoot, IAssetSource assetSource)
Parameters
commonRootstringassetSourceIAssetSource
TryGetByHash(string, out CommonAsset?)
public bool TryGetByHash(string hash, out CommonAsset? asset)
Parameters
hashstringassetCommonAsset
Returns
TryGetByName(string, out CommonAsset?)
public bool TryGetByName(string name, out CommonAsset? asset)
Parameters
namestringassetCommonAsset