Table of Contents

Interface IAssetLoader<TAsset>

Namespace
Axolotl2D.Assets
Assembly
Axolotl2D.dll

Converts an asset stream into an engine asset.

public interface IAssetLoader<TAsset> where TAsset : class

Type Parameters

TAsset

Methods

LoadAsync(Stream, CancellationToken)

Loads the complete stream. The caller retains ownership of the stream.

ValueTask<TAsset> LoadAsync(Stream stream, CancellationToken cancellationToken = default)

Parameters

stream Stream
cancellationToken CancellationToken

Returns

ValueTask<TAsset>