#ifndef __DBPARSER_H
#define __DBPARSER_H

#include "map.h"

#define DB_TILE_NUMBER 248
#define DB_FRINGE_NUMBER 15
#define DB_OBJECT_NUMBER 2

int db_readtiles();
int db_readfringe();

typedef struct TileInfo {
	int icon;
	int passable;
	char *name;
	char *prefix;
} TileInfo;

typedef struct FringeInfo {
	int icon;
	int passable;
	char *name;
	char *prefix;
} FringeInfo;

extern TileInfo tiledb[DB_TILE_NUMBER];
extern FringeInfo fringedb[DB_FRINGE_NUMBER];

#endif
