[−][src]Crate amethyst_assets
amethyst_assets
Asset management crate. Designed with the following goals in mind:
- Extensibility
- Asynchronous & Parallel using Rayon
- Allow different sources
Macros
register_format | Register a dynamically deserializable format for given asset data type.
Note that provided asset data type must also be registered using |
register_format_type | Register specific asset data types that can be deserialized with dynamic formats. This is very useful for all assets that have any format types explicitly implemented. Registered assets are used during loading of nested assets to determine format type which will be used to deserialize that asset. |
Structs
AssetLoaderSystemData | Helper type for loading assets |
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. |
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 |
Prefab | Main |
PrefabLoader | Helper structure for loading prefabs. |
PrefabLoaderSystem | System that load |
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 |
RonFormat | Format for loading from Ron files. Mostly useful for prefabs. This type cannot be used for tagged deserialization. It is meant to be used at top-level loading, manually specified to the loader. |
SingleFile | An implementation of |
ThreadPool | Represents a user created thread-pool. |
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
AssetPrefab | Convenience |
Completion | Completion status, returned by |
ProcessingState | Returned by processor systems, describes the loading state of the asset. |
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 |
FormatRegisteredData | A trait for all asset types that have their format types.
Use this as a bound for asset data types when used inside boxed format types intended for deserialization.
registered with |
PrefabData | Trait for loading a prefabs data for a single entity |
ProcessableAsset | Defines a way to process asset's data into the asset. This allows
using default |
Progress | The |
Reload | The |
Source | A trait for asset sources, which provides methods for loading bytes. |
Tracker | The |