#define CDXINCLUDEALL
#include "cdx.h"

struct sMapHeader
{	int FutureOffset[3];
	int BitsDir; //Mike now you can add your bits stuff ;)
	int WalkBitsOffset;
	int objOffset;
	int LayerInfoOffset;
	char Name[21];
	int gfxLayers;
	char Id[3];
};

struct sLayerInfo
{
	int offset;
	char TileSet[21];
};

BOOL LoadMap( char *str, CDXMap **&Map, CDXTile **&Tile, int *&WalkBits, char TileSet[2][21], int ctr, CDXScreen *Screen);
BOOL SaveMap( char *str, CDXMap **Map, CDXTile **Tile, int *&WalkBits, char TileSet[2][21], int ctr );