Crate veloren_common_assets

Crate veloren_common_assets 

Source
Expand description

Load assets (images or voxel data) from files

Modules§

fs 🔒
plugin_cache 🔒
source
Bytes sources to load assets from.
walk 🔒

Structs§

ASSETS 🔒
The HashMap where all loaded assets are stored in.
ASSETS_PATH
Lazy static to find and cache where the asset directory is. Cases we need to account for:
AssetCache
The main structure of this crate, used to load and store assets.
DotVox
Error
The error type which is used when loading an asset.
Image
MultiRon
This wrapper combines several RON files from multiple sources
Obj
Ron
Loads a value from a JSON file.
SharedString
A string that can easily be shared.

Enums§

Walk
Represent tree of directory, result of Walk::generate.

Traits§

Asset
An asset type that can load other kinds of assets.
AssetCombined
Extension to AssetExt to combine Ron files from filesystem and plugins
AssetExt
The Asset trait, which is implemented by all structures that have their data stored in the filesystem.
CacheCombined
Extension to AssetCache to combine Ron files from filesystem and plugins
Concatenate
DirLoadable
Assets that are loadable from directories
FileAsset
An asset that can be loaded from a single file.
Source
Bytes sources to load assets from.

Functions§

find_root
Return path to repository root by searching 10 directories back
load_bincode_legacy
Deserializes a value from a bincode-encoded file.
load_rec_dir
Loads directory and all files in it.
load_ron
Deserializes a value from a RON file.
register_tar
walk_tree
Helper function to Walk::generate(), prefer using it instead.

Type Aliases§

AssetDirHandle
AssetHandle
AssetReadGuard
BoxedError
A boxed error
ReloadWatcher