summaryrefslogtreecommitdiffstats
path: root/src/resources/tileset.h
blob: 45de2376018431da27dd0dbce48d9e5c1bd7afeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef RESOURCE_TILESET_H
#define RESOURCE_TILESET_H

#include <expat.h>
#include "resource.h"
#include "image.h"

struct tileset {
	struct resource res;
	int firstgid;
	char *name;
	int tilewidth;
	int tileheight;
	struct image *image;
	struct tileset *next;
};

struct tileset *tileset_get(const char *path);
void XMLCALL xml_tileset_start(void *data, const char *el,
		const char **attr);
void XMLCALL xml_tileset_end(void *data, const char *el);

#endif