Skip to content

Commit

Permalink
Bump version to 0.6 and add xml plugin in readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Mar 18, 2023
1 parent eb7f91c commit 24c55be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_common_assets"
version = "0.6.0-dev"
version = "0.6.0"
authors = ["Niklas Eicker <git@nikl.me>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@ use bevy_common_assets::json::JsonAssetPlugin;
use bevy_common_assets::msgpack::MsgPackAssetPlugin;
use bevy_common_assets::ron::RonAssetPlugin;
use bevy_common_assets::toml::TomlAssetPlugin;
use bevy_common_assets::xml::XmlAssetPlugin;
use bevy_common_assets::yaml::YamlAssetPlugin;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(JsonAssetPlugin::<Level>::new(&["json.level", "custom"]))
.add_plugin(RonAssetPlugin::<Level>::new(&["ron.level"]))
.add_plugin(MsgPackAssetPlugin::<Level>::new(&["msgpack.level"]))
.add_plugin(TomlAssetPlugin::<Level>::new(&["toml.level"]))
.add_plugin(YamlAssetPlugin::<Level>::new(&["yaml.level"]))
.add_plugin(JsonAssetPlugin::<Level>::new(&["level.json", "custom.json"]))
.add_plugin(RonAssetPlugin::<Level>::new(&["level.ron"]))
.add_plugin(MsgPackAssetPlugin::<Level>::new(&["level.msgpack"]))
.add_plugin(TomlAssetPlugin::<Level>::new(&["level.toml"]))
.add_plugin(XmlAssetPlugin::<Level>::new(&["level.xml"]))
.add_plugin(YamlAssetPlugin::<Level>::new(&["level.yaml"]))
// ...
.run();
}
Expand All @@ -73,7 +75,7 @@ Compatibility of `bevy_common_assets` versions:

| `bevy_common_assets` | `bevy` |
|:---------------------|:-------|
| `0.5` | `0.10` |
| `0.5` - `0.6` | `0.10` |
| `0.4` | `0.9` |
| `0.3` | `0.8` |
| `0.1` - `0.2` | `0.7` |
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
//! .add_plugins(DefaultPlugins)
//! # */
//! # .add_plugins(MinimalPlugins)
//! # .add_plugin(bevy::asset::AssetPlugin::default())
//! # .add_plugin(AssetPlugin::default())
//! # /*
//! .add_plugin(JsonAssetPlugin::<Level>::new(&["level"]))
//! .add_plugin(JsonAssetPlugin::<Level>::new(&["level.json"]))
//! # */
//! .add_startup_system(load_level)
//! # .add_system(stop)
//! .run()
//! }
//!
//! fn load_level(mut commands: Commands, asset_server: Res<AssetServer>) {
//! let handle = LevelAsset(asset_server.load("trees.level"));
//! let handle = LevelAsset(asset_server.load("trees.level.json"));
//! commands.insert_resource(handle);
//! }
//!
Expand Down

0 comments on commit 24c55be

Please sign in to comment.