summaryrefslogtreecommitdiff
path: root/src/lowlevel/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lowlevel/data.rs')
-rw-r--r--src/lowlevel/data.rs7
1 files changed, 5 insertions, 2 deletions
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 <tile> 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,