From dc88b13a0b1492a70cb669b0d5a04166aeac6100 Mon Sep 17 00:00:00 2001 From: InnocentusLime Date: Tue, 10 Sep 2024 13:12:18 +0300 Subject: [PATCH] Use the correct type for properties --- tiled/src/tiled/layer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,