mini_asset_loader
mini_asset_loader
provides an extensible asset loading system, intended to load assets from
various sources for use in a game.
The asset types, loaded sources, caching behaviour, etc. is entirely customizable. Assets are reference-counted and thread-safe.
A simple asset type based on serde_json
and type tags is provided in the asset
module.
Example
This example makes use of the asset
feature, which only works on nightly rust. However, substituting this
for a custom asset type will work in stable rust.
use ;
use ;
use TypedAssetLoader;
// Creating an asset type is as easy as making a Serializable/Deserializable struct...
// ...and then tagging it with these two lines:
// ...Then, when we want to *load* assets...