Crate libre_pvz_resources

source ·
Expand description

librePvZ-resources: resource loading logics for librePvZ.

Re-exports§

Modules§

  • Sprite and animation API.
  • Serialize and deserialize as some kind of raw form (a String or a PathBuf usually), used as a key indexing into some collection (a boxed slice, or the asset collection). Keep also a cached handle to speed up subsequent access (an integer index, or a Handle).
  • 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’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”.
  • Models incorporating animations.

Macros§

Structs§