Skip to content

Interface IAssetCacheEntry<T>

Definition

Namespace: StardewUI.Framework.Content
Assembly: StardewUI.dll

Entry retrieved from an IAssetCache.

public interface IAssetCacheEntry<T>

Type Parameters

T
Type of cached asset.

Members

Properties

Name Description
Asset The cached asset.
IsValid Whether or not the Asset is valid and can be accessed.

Details

Properties

Asset

The cached asset.

T Asset { get; }
Property Value

T


IsValid

Whether or not the Asset is valid and can be accessed.

bool IsValid { get; }
Property Value

Boolean

Remarks

Invalid assets either failed to load or have been invalidated at the source and may be disposed (if IDisposable) or otherwise unusable. Consumers of the cache entry must not attempt to read or use the Asset property of an invalid asset.