Crate libre_pvz_resources
source ·Expand description
librePvZ-resources: resource loading logics for librePvZ.
Re-exports§
pub use once_cell;
Modules§
- Sprite and animation API.
- Dynamic resource support. For simplicity, we use shared global state for registry.
- Loaders for
bincode
, JSON, and YAML files. These files can decode into different data structures, and therefore require customisation over bevy’sAssetLoader
. 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 inbincode
, and has a resource type “anim
”. - Models incorporating animations.
Macros§
- Generate proper values for
AssetExtensions
. Always prefer this macro instead of manually constructingAssetExtensions
values so that the program behaviour is consistent. - Generate
StateIndex
andStateIndex::cache
for cached known states. - Mark a trait available for dynamic (de)serialization.
Structs§
- Resources plugin group.