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

Add ldtk 1.5.3 support

parent 58556d2b
No related branches found
No related tags found
No related merge requests found
...@@ -1701,7 +1701,7 @@ dependencies = [ ...@@ -1701,7 +1701,7 @@ dependencies = [
[[package]] [[package]]
name = "micro_ldtk" name = "micro_ldtk"
version = "0.8.0" version = "0.9.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bevy", "bevy",
......
[package] [package]
name = "micro_ldtk" name = "micro_ldtk"
version = "0.8.0" version = "0.9.0"
edition = "2021" edition = "2021"
authors = [ authors = [
...@@ -11,9 +11,10 @@ description = "Load data from LDTK, index it and make it accessible through Bevy ...@@ -11,9 +11,10 @@ description = "Load data from LDTK, index it and make it accessible through Bevy
license = "Apache-2.0" license = "Apache-2.0"
[features] [features]
default = ["ldtk_1_4_1", "autotile"] default = ["ldtk_1_5_3", "autotile"]
ldtk_1_4_1 = [] ldtk_1_5_3 = ["_supports_intgridgroup"]
ldtk_1_4_0 = [] ldtk_1_4_1 = ["_supports_intgridgroup"]
ldtk_1_4_0 = ["_supports_intgridgroup"]
ldtk_1_3_0 = [] ldtk_1_3_0 = []
ldtk_1_2_5 = [] ldtk_1_2_5 = []
ldtk_1_2_4 = [] ldtk_1_2_4 = []
...@@ -27,6 +28,7 @@ ldtk_1_1_1 = [] ...@@ -27,6 +28,7 @@ ldtk_1_1_1 = []
ldtk_1_1_0 = [] ldtk_1_1_0 = []
ldtk_1_0_0 = [] ldtk_1_0_0 = []
autotile = ["micro_autotile"] autotile = ["micro_autotile"]
_supports_intgridgroup = []
no_panic = [] no_panic = []
[dependencies] [dependencies]
......
This diff is collapsed.
...@@ -16,6 +16,8 @@ mod data_1_2_5; ...@@ -16,6 +16,8 @@ mod data_1_2_5;
mod data_1_3_0; mod data_1_3_0;
#[cfg(any(feature = "ldtk_1_4_1", feature = "ldtk_1_4_0"))] #[cfg(any(feature = "ldtk_1_4_1", feature = "ldtk_1_4_0"))]
mod data_1_4_0; mod data_1_4_0;
#[cfg(any(feature = "ldtk_1_5_3"))]
mod data_1_5_3;
use bevy::asset::io::Reader; use bevy::asset::io::Reader;
use bevy::asset::{ use bevy::asset::{
......
...@@ -309,6 +309,14 @@ impl LdtkLayer { ...@@ -309,6 +309,14 @@ impl LdtkLayer {
.map(String::from) .map(String::from)
}) })
} }
pub fn layer_ref(&self) -> &LayerInstance {
&self.layer
}
pub fn layer_ref_mut(&mut self) -> &mut LayerInstance {
&mut self.layer
}
} }
impl AsRef<LayerInstance> for LdtkLayer { impl AsRef<LayerInstance> for LdtkLayer {
......
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