Skip to content
Snippets Groups Projects
Verified Commit 590b48a6 authored by Louis's avatar Louis :fire:
Browse files

Update bevy to 0.15

parent 46ed4a2a
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
[package] [package]
name = "micro_ldtk" name = "micro_ldtk"
version = "0.12.0" version = "0.13.0"
edition = "2021" edition = "2021"
authors = [ authors = [
...@@ -35,7 +35,7 @@ _optional_tile_list = [] ...@@ -35,7 +35,7 @@ _optional_tile_list = []
no_panic = [] no_panic = []
[dependencies] [dependencies]
bevy = { optional = true, version = "0.14", default-features = false, features = ["bevy_render", "bevy_sprite", "bevy_asset", "serialize"] } bevy = { optional = true, version = "0.15", default-features = false, features = ["bevy_render", "bevy_sprite", "bevy_asset", "serialize"] }
anyhow = "1.0" anyhow = "1.0"
thiserror = "2.0" thiserror = "2.0"
...@@ -45,5 +45,5 @@ serde_json = "1.0" ...@@ -45,5 +45,5 @@ serde_json = "1.0"
num-traits = "0.2" num-traits = "0.2"
quadtree_rs = "0.1" quadtree_rs = "0.1"
micro_autotile = { version = "0.2", optional = true } micro_autotile = { version = "0.2", optional = true }
glam = { version = "0.27", features = ["serde"] } glam = { version = "0.29", features = ["serde"] }
...@@ -17,7 +17,7 @@ select the schema version you need: ...@@ -17,7 +17,7 @@ select the schema version you need:
```toml ```toml
[dependencies] [dependencies]
micro_ldtk = { version = "0.8.0", default-features = false, features = ["ldtk_1_4_1", "autotile"] } micro_ldtk = { version = "0.13", default-features = false, features = ["ldtk_1_5_3", "autotile", "bevy"] }
``` ```
### Features ### Features
......
...@@ -98,7 +98,6 @@ mod _bevy_impl { ...@@ -98,7 +98,6 @@ mod _bevy_impl {
fn type_path() -> &'static str { fn type_path() -> &'static str {
"micro_ldtk::ldtk::Project" "micro_ldtk::ldtk::Project"
} }
fn short_type_path() -> &'static str { fn short_type_path() -> &'static str {
"Project" "Project"
} }
...@@ -112,9 +111,8 @@ mod _bevy_impl { ...@@ -112,9 +111,8 @@ mod _bevy_impl {
impl TypePath for Level { impl TypePath for Level {
fn type_path() -> &'static str { fn type_path() -> &'static str {
"micro_ld0tk::ldtk::Level" "micro_ldtk::ldtk::Level"
} }
fn short_type_path() -> &'static str { fn short_type_path() -> &'static str {
"Level" "Level"
} }
...@@ -137,11 +135,11 @@ mod _bevy_impl { ...@@ -137,11 +135,11 @@ mod _bevy_impl {
type Settings = (); type Settings = ();
type Error = LdtkLoadError; type Error = LdtkLoadError;
async fn load<'a>( async fn load(
&'a self, &self,
reader: &'a mut Reader<'_>, reader: &mut dyn Reader,
_settings: &'a Self::Settings, _settings: &Self::Settings,
load_context: &'a mut LoadContext<'_>, load_context: &mut LoadContext<'_>,
) -> Result<Self::Asset, Self::Error> { ) -> Result<Self::Asset, Self::Error> {
let mut bytes = Vec::new(); let mut bytes = Vec::new();
reader.read_to_end(&mut bytes).await?; reader.read_to_end(&mut bytes).await?;
...@@ -194,11 +192,11 @@ mod _bevy_impl { ...@@ -194,11 +192,11 @@ mod _bevy_impl {
type Settings = (); type Settings = ();
type Error = LdtkLoadError; type Error = LdtkLoadError;
async fn load<'a>( async fn load(
&'a self, &self,
reader: &'a mut Reader<'_>, reader: &mut dyn Reader,
_settings: &'a Self::Settings, _settings: &Self::Settings,
_load_context: &'a mut LoadContext<'_>, _load_context: &mut LoadContext<'_>,
) -> Result<Self::Asset, Self::Error> { ) -> Result<Self::Asset, Self::Error> {
let mut bytes = Vec::new(); let mut bytes = Vec::new();
reader.read_to_end(&mut bytes).await?; reader.read_to_end(&mut bytes).await?;
......
use bevy::prelude::{Image, TextureAtlas}; use bevy::prelude::{Image, TextureAtlas};
use bevy::render::render_resource::TextureFormat; use bevy::render::render_resource::TextureFormat;
use bevy::render::texture::TextureFormatPixelInfo; use bevy::image::TextureFormatPixelInfo;
use bevy::sprite::TextureAtlasLayout; use bevy::sprite::TextureAtlasLayout;
use crate::{ use crate::{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment