Skip to main content
Version: 1.0.0-preview.33

Velaptor.Content.ILoader<T>

Velaptor

Velaptor.Content

ILoader<T> Interface

Loads data of type T.

public interface ILoader<out T>
where T : Velaptor.Content.IContent

Type parameters

T

The type of data to load.

Derived
AtlasLoader
FontLoader
SoundLoader
TextureLoader

Methods

Load(string)

Loads data with the given contentPathOrName.

T Load(string contentPathOrName);

Parameters

contentPathOrName System.String

The name of the content of the data to load.

Returns

T
The data loaded from disk.

Unload(string)

Unloads the data with the given contentPathOrName.

void Unload(string contentPathOrName);

Parameters

contentPathOrName System.String

The name of the content item to unload.