summaryrefslogtreecommitdiff
path: root/map/tmj2c.h
blob: ff5babaf50053bf21032dcf390d39e0c09b843dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

typedef struct {
	const char         *name;
	double             opacity;
	unsigned int       visible;
	const unsigned int *data;
} Tmj2cLayer;

typedef struct {
	const char         *name;
	const char         *type;
	unsigned int       id;
	double             x;
	double             y;
	double             width;
	double             height;
	double             rotation;
	unsigned int       visible;
} Tmj2cObject;

typedef struct {
	const char         *path;
	unsigned int       width;
	unsigned int       height;
	unsigned int       tilewidth;
	unsigned int       tileheight;
	unsigned int       numlayers;
	const Tmj2cLayer   *layers;
	unsigned int       numobjects;
	const Tmj2cObject  *objects;
} Tmj2cMap;