From 63a175d23255dbd920b8ea0d8323e9269b008b24 Mon Sep 17 00:00:00 2001 From: nerdachse Date: Fri, 14 Jul 2023 14:14:19 +0200 Subject: [PATCH] Update to 0.11 --- Cargo.toml | 18 +++++++++--------- README.md | 5 +++-- examples/atlas.rs | 6 +++--- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5825236..5548ecd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_tile_atlas" -version = "0.6.0" +version = "0.7.0" edition = "2021" authors = ["Gino Valente "] description = "A TextureAtlas builder for ordered tilesets" @@ -11,17 +11,17 @@ readme = "README.md" exclude = ["assets/**/*", ".github/**/*"] [dependencies] -bevy_asset = { version = "0.10", default-features = false } -bevy_ecs = { version = "0.10", default-features = false } -bevy_log = { version = "0.10", default-features = false, optional = true } -bevy_math = { version = "0.10", default-features = false } -bevy_render = { version = "0.10", default-features = false } -bevy_sprite = { version = "0.10", default-features = false } -bevy_utils = { version = "0.10", default-features = false } +bevy_asset = { version = "0.11", default-features = false } +bevy_ecs = { version = "0.11", default-features = false } +bevy_log = { version = "0.11", default-features = false, optional = true } +bevy_math = { version = "0.11", default-features = false } +bevy_render = { version = "0.11", default-features = false } +bevy_sprite = { version = "0.11", default-features = false } +bevy_utils = { version = "0.11", default-features = false } thiserror = "1.0.30" [dev-dependencies] -bevy = "0.10" +bevy = "0.11" [features] default = ["debug"] diff --git a/README.md b/README.md index de6ea97..44377c7 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ This crate is essentially an augmentation of Bevy's own `TextureAtlasBuilder`. Add to your `[dependencies]` list in `Cargo.toml`: ```toml -bevy_tile_atlas = "0.6.0" +bevy_tile_atlas = "0.7.0" ``` ## Usage @@ -58,6 +58,7 @@ fn build_tileset(handles: Vec>, textures: &mut Assets) -> T | bevy | bevy_tile_atlas | |------|-----------------| +| 0.11 | 0.7.0 | | 0.10 | 0.6.0 | | 0.9 | 0.5.0 | | 0.8 | 0.4.0 | @@ -77,4 +78,4 @@ I didn't have to enforce the tile restriction, but I didn't see this being used **Is the order guaranteed for whole folders of textures?** -If you load from a whole folder, the order of insertion will depend on how Bevy chooses to load the files (which I think can vary, though I'm not sure). Therefore, it's recommended to either manually place the tile handles into a `Vec` or array, or use some other mechanism to automatically order them (i.e. a [config file).](https://github.com/MrGVSV/bevy_tileset) \ No newline at end of file +If you load from a whole folder, the order of insertion will depend on how Bevy chooses to load the files (which I think can vary, though I'm not sure). Therefore, it's recommended to either manually place the tile handles into a `Vec` or array, or use some other mechanism to automatically order them (i.e. a [config file).](https://github.com/MrGVSV/bevy_tileset) diff --git a/examples/atlas.rs b/examples/atlas.rs index a13371c..998d9e4 100644 --- a/examples/atlas.rs +++ b/examples/atlas.rs @@ -20,9 +20,9 @@ fn main() { .init_resource::() .init_resource::() .add_state::() - .add_system(load_tiles.in_schedule(OnEnter(AppState::LoadTileset))) - .add_system(display_atlas.in_schedule(OnEnter(AppState::DisplayTileset))) - .add_system(create_atlas.in_set(OnUpdate(AppState::CreateTileset))) + .add_systems(OnEnter(AppState::LoadTileset), load_tiles) + .add_systems(OnEnter(AppState::DisplayTileset), display_atlas) + .add_systems(Update, create_atlas.run_if(in_state(AppState::CreateTileset))) .run(); }