docs.rs failed to build ron_asset_manager-0.8.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ron_asset_manager-0.6.0
ron asset manager
A dead simple crate to manage Ron based assets which depend on other assets.
Assets can hot reload into a running game state. Use it to your advantage!
Any asset, that can be loaded from an asset path is supported!
| bevy | ron asset manager |
|---|---|
| 0.18 | 0.8 |
| 0.17 | 0.7 |
| 0.16 | 0.6 |
| 0.15 | 0.5 |
| 0.14 | 0.4 |
Harness the power of external configuration.
Shandle<T> is a thin wrapper around Handle<T> that can be serialized by
behaving like a asset path in serialized form.
This crates provides the RonAsset derive macro, RonAssetPlugin and the Shandle.
The idea is to mark asset dependencies via attribute.
Any field, implementing the RonAsset trait can be nested and will automatic load.
There are defaults for Option, Vec and HashMap. You can also implement your own, if you need to.
cargo run --example simple
Example
Checkout the simple example. It loads a multi-sprite car with multiple tires each holding unique information
and assets.
// add the provided plugin for your asset struct.
// this steps also initializes the asset for bevy.
// that's all, time to use it
gandalf.ron:
(
name: "Gandalf",
health: 42069,
sprite: "sprite/gandalf.png",
sounds: {
"death" : "audio/gandalf_rebirth.ogg",
"hit" : "audio/gandalf_hurt.ogg",
"angry" : "audio/gandalf_calm.ogg",
},
spells: [
"spells/light.ron",
"spells/cloth_swap.ron",
],
staff : (
damage: 99,
cooldown: 1,
sprite: "staff.png"
),
birth_effect: Some("fx/common_death.fx.ron")
)