Interface IDalamudAssetManager
Holds Dalamud Assets' handles hostage, so that they do not get closed while Dalamud is running.
Also, attempts to load optional assets.
Note on System.Diagnostics.Contracts.PureAttribute
It will help you get notified if you discard the result of functions, mostly likely because of a mistake. Think of C++ [[nodiscard]]. Also, like the intended meaning of the attribute, such methods will not have externally visible state changes.
Assembly: Dalamud.dll
public interface IDalamudAssetManager : IDalamudService
Properties
Empty4X4
Gets the shared texture wrap for Dalamud.DalamudAsset.Empty4X4.
IDalamudTextureWrap Empty4X4 { get; }
White4X4
Gets the shared texture wrap for Dalamud.DalamudAsset.White4X4.
IDalamudTextureWrap White4X4 { get; }
Methods
IsStreamImmediatelyAvailable(DalamudAsset)
Gets whether the stream for the asset is instantly available.
bool IsStreamImmediatelyAvailable(DalamudAsset asset)
Returns
System.Boolean: Whether the stream of an asset is immediately available.
Parameters
| Type | Name | Description |
|---|---|---|
| Dalamud.DalamudAsset | asset | The asset. |
CreateStream(DalamudAsset)
Creates a stream backed by the specified asset, waiting as necessary.
Call System.IDisposable.Dispose after use.
Stream CreateStream(DalamudAsset asset)
Returns
System.IO.Stream: The stream.
Parameters
| Type | Name | Description |
|---|---|---|
| Dalamud.DalamudAsset | asset | The asset. |
CreateStreamAsync(DalamudAsset)
Creates a stream backed by the specified asset.
Call System.IDisposable.Dispose after use.
Task<Stream> CreateStreamAsync(DalamudAsset asset)