Interface IAssetCache
Definition
Namespace: StardewUI.Framework.Content
Assembly: StardewUI.dll
Cache used for asset-based view bindings.
Remarks
Similar to SMAPI's content helpers, but instead of providing just the current asset at the time of the request, returns entry objects with an expired flag for effective (and performant) use in Update(Boolean).
Members
Methods
Name | Description |
---|---|
Get<T>(string) | Retrieves the current entry for a given asset name. |
Details
Methods
Get<T>(string)
Retrieves the current entry for a given asset name.
Parameters
name
string
Name of the asset.
Returns
A cache entry object that contains the most current asset data, and an expired flag to detect if the asset is no longer valid in the future.
Remarks
If the asset was invalidated by SMAPI and has not yet been reloaded, then this will trigger a reload.