pip install twmap
and using help
on the module and the different types. Currently you can only use it on linux, but I'm trying to figure out how to get them to windows as well#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
// for holding compressed data, since decompression is expensive
pub enum CompressedData<T, U> {
Compressed(Vec<u8>, usize, U),
Loaded(T),
}
.load()
)Vec<u8>
is the compressed data, usize
is the expected decompressed size, U
is the generic type which has the load info (for example width + height of image)load
method, which will go through the decompression and give you the CompressedData::Loaded(Tiles)T
^^