/// <summary>
        /// Decompresses the given bytes using the given compression type
        /// </summary>
        /// <param name="type">The type of compression algorithm</param>
        /// <param name="data">The data to decompress</param>
        /// <returns>Decompressed tileset</returns>
        private byte[] Decompress(CompressionType type, byte[] data)
        {
            switch (type)
            {
            case CompressionType.Planar: return(ObjectID.DecompressPlanar(data));

            case CompressionType.Linear: return(ObjectID.DecompressLinear(data));

            default: return(data);
            }
        }