summaryrefslogtreecommitdiff
path: root/map/tmj2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'map/tmj2c.h')
-rw-r--r--map/tmj2c.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/map/tmj2c.h b/map/tmj2c.h
new file mode 100644
index 0000000..ff5baba
--- /dev/null
+++ b/map/tmj2c.h
@@ -0,0 +1,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;