Crate amethyst_assets [−] [src]
amethyst_assets
Asset management crate. Designed with the following goals in mind:
- extensibility
- asynchronous & parallel using rayon
- allow different sources
Structs
AssetStorage |
An asset storage, storing the actual assets and allocating handles to them. |
Cache |
A simple cache for asset handles of type |
Directory |
Directory source. |
Error |
The Error type. |
FormatValue |
The |
Handle |
A handle to an asset. This is usually what the
user deals with, the actual asset ( |
HotReloadBundle |
This bundle activates hot reload for the |
HotReloadStrategy |
An ECS resource which allows to configure hot reloading. |
HotReloadSystem |
System for updating |
Loader |
The asset loader, holding the sources and a reference to the |
Processor |
A default implementation for an asset processing system
which converts data to assets and maintains the asset storage
for |
ProgressCounter |
A progress tracker which is passed to the |
SingleFile |
An implementation of |
WeakHandle |
A weak handle, which is useful if you don't directly need the asset like in caches. This way, the asset can still get dropped (if you want that). |
Enums
Completion |
Completion status, returned by |
ErrorKind |
The kind of an error. |
Traits
Asset |
One of the three core traits of this crate. |
Format |
A format, providing a conversion from bytes to asset data, which is then
in turn accepted by |
Progress |
The |
Reload |
The |
ResultExt |
Additional methods for |
SimpleFormat |
This is a simplified version of |
Source |
A trait for asset sources, which provides methods for loading bytes. |
Tracker |
The |
Type Definitions
Result |
Convenient wrapper around |