From d775eb1e9c6be67e5c07cabde79145b4ed3136e1 Mon Sep 17 00:00:00 2001 From: LawnCable Date: Fri, 15 Apr 2022 08:37:04 +0200 Subject: improvements, wangset and images alse parsing for may tileset related types --- src/lowlevel/data.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lowlevel/data.rs') diff --git a/src/lowlevel/data.rs b/src/lowlevel/data.rs index 7b64a12..e2833b5 100644 --- a/src/lowlevel/data.rs +++ b/src/lowlevel/data.rs @@ -1,11 +1,13 @@ struct LayerData {} - +#[derive(Debug, PartialEq)] /// The encoding used to encode the tile layer data. When used, it can be “base64” and “csv” at the moment. pub enum Encoding { + /// Plain XML based, in tags + XML, Base64, CSV, } - +#[derive(Debug, PartialEq)] /// The compression used to compress the tile layer data. /// Tiled supports “gzip”, “zlib” and (as a compile-time option since Tiled 1.3) “zstd”. pub enum Compression { @@ -15,6 +17,7 @@ pub enum Compression { Zstd, } +#[derive(Debug, PartialEq)] pub struct EncodedData { pub encoding: Encoding, pub compression: Compression, -- cgit v1.2.3-60-g2f50