blob: e2833b5348df3e60c94a4b6d96760d99ba9b8677 (
plain) (
tree)
|
|
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 {
None,
Gzip,
Zlib,
Zstd,
}
#[derive(Debug, PartialEq)]
pub struct EncodedData {
pub encoding: Encoding,
pub compression: Compression,
pub data: String,
}
impl EncodedData {
// fn decode(self) -> &[u8] {
// }
}
|