summaryrefslogtreecommitdiff
path: root/map/tmj2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'map/tmj2c.h')
-rw-r--r--map/tmj2c.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/map/tmj2c.h b/map/tmj2c.h
index e5a1ea5..ff5baba 100644
--- a/map/tmj2c.h
+++ b/map/tmj2c.h
@@ -2,12 +2,24 @@
typedef struct {
const char *name;
- float opacity;
+ 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;
@@ -15,4 +27,6 @@ typedef struct {
unsigned int tileheight;
unsigned int numlayers;
const Tmj2cLayer *layers;
+ unsigned int numobjects;
+ const Tmj2cObject *objects;
} Tmj2cMap;