Skip to content

API reference

Interface IAssetStore

Namespace: MicroEngine.Content
Assembly: MicroEngine.Content.dll
Guide: Assets

A game’s assets: where content comes from, the loaders that read it, and the scopes that hold what was loaded.

C#
public interface IAssetStore

Properties

Loaders

The loaders, one per kind of asset.

C#
AssetLoaderRegistry Loaders { get; }

Property Value

AssetLoaderRegistry

Root

The scope that lives as long as the store; create child scopes from it for levels and scenes.

C#
AssetScope Root { get; }

Property Value

AssetScope

Source

Where content files are read from.

C#
IContentSource Source { get; }

Property Value

IContentSource

Methods

Get<T>(Asset<T>)

The asset of asset.

C#
T Get<T>(Asset<T> asset) where T : class

Parameters

asset Asset<T>

Returns

T

Type Parameters

T

Exceptions

InvalidOperationException

The handle is None, stale (every scope released it) or of another store.