diff --git a/tiled/src/tiled/layer.rs b/tiled/src/tiled/layer.rs index 925d9c4c..36ec7998 100644 --- a/tiled/src/tiled/layer.rs +++ b/tiled/src/tiled/layer.rs @@ -1,7 +1,5 @@ use nanoserde::DeJson; -use std::collections::HashMap; - /// https://doc.mapeditor.org/en/stable/reference/json-map-format/#json-chunk #[derive(Clone, Debug, Default, DeJson)] #[nserde(default)] @@ -18,6 +16,7 @@ pub struct Chunk { pub y: i32, } +/// https://doc.mapeditor.org/en/stable/reference/json-map-format/#json-layer #[derive(Clone, Debug, Default, DeJson)] #[nserde(default)] pub struct Layer { @@ -25,7 +24,7 @@ pub struct Layer { pub chunks: Option>, pub name: String, pub opacity: f32, - pub properties: Option>, + pub properties: Vec, pub visible: bool, pub width: u32, pub height: u32,