Module libre_pvz_resources::loader
source · Expand description
Loaders for bincode
, JSON, and YAML files. These files can decode into different data
structures, and therefore require customisation over bevy’s AssetLoader
. We do so by
requiring an additional “secondary extension” in asset file names. For example, a file named
“Peashooter.anim.bin
” is treated as encoded in bincode
, and has a resource type “anim
”.
Structs§
- File extensions for two-stage assets. See also
asset_ext
. bincode
format.- JSON format.
- Asset loader for
TwoStageAsset
s. - YAML format.
Traits§
- Extension to the
App
API for adding two-stage asset loaders. - Frontend asset format.
- A new trait for two-stage asset loading, in place of
AssetLoader
:
Type Aliases§
- List of
str
, with static lifetime all the way down.