diff options
author | LawnCable <git@lawncable.net> | 2022-04-15 08:37:02 +0200 |
---|---|---|
committer | LawnCable <git@lawncable.net> | 2022-04-15 08:37:02 +0200 |
commit | 3e3f9d016e09493a37ae5935cecddb5a315350a6 (patch) | |
tree | b4627f1a0b530fbf781f61a74239ef0ac3e28730 /src/lowlevel/data.rs | |
parent | ec09c0ae43799846a68a4e100a68353730edfed1 (diff) | |
download | fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.tar.gz fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.tar.bz2 fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.tar.xz fast-tiled.rs-3e3f9d016e09493a37ae5935cecddb5a315350a6.zip |
more progress
Diffstat (limited to 'src/lowlevel/data.rs')
-rw-r--r-- | src/lowlevel/data.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lowlevel/data.rs b/src/lowlevel/data.rs new file mode 100644 index 0000000..7b64a12 --- /dev/null +++ b/src/lowlevel/data.rs @@ -0,0 +1,28 @@ +struct LayerData {} + +/// The encoding used to encode the tile layer data. When used, it can be “base64” and “csv” at the moment. +pub enum Encoding { + Base64, + CSV, +} + +/// 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 { + None, + Gzip, + Zlib, + Zstd, +} + +pub struct EncodedData { + pub encoding: Encoding, + pub compression: Compression, + pub data: String, +} + +impl EncodedData { + // fn decode(self) -> &[u8] { + + // } +} |