summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-04-09 16:34:06 +0200
committerkdx <kikoodx@paranoici.org>2023-04-09 16:34:06 +0200
commit13b7580a46e8e6ae3e94aa60b60a8d3813a5db37 (patch)
tree3c4af51a1de9e99fcd377f136432a5192b6db37a
parent40e2178f66f7689fd48fba6f94f330afbe7d3bb7 (diff)
downloadtiled2c-13b7580a46e8e6ae3e94aa60b60a8d3813a5db37.tar.gz
header
-rw-r--r--tiled2c.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/tiled2c.h b/tiled2c.h
new file mode 100644
index 0000000..f9602a9
--- /dev/null
+++ b/tiled2c.h
@@ -0,0 +1,59 @@
+#pragma once
+
+typedef struct {
+ double duration;
+ double tileid;
+} Tiled2cFrame;
+
+typedef struct {
+ unsigned int id;
+ const char *type;
+ double probability;
+ const int numframes;
+ const Tiled2cFrame *frames;
+} Tiled2cTile;
+
+typedef struct {
+ const char *name;
+ const char *path;
+ unsigned int imagewidth;
+ unsigned int imageheight;
+ unsigned int tilewidth;
+ unsigned int tileheight;
+ unsigned int margin;
+ unsigned int columns;
+ unsigned int tilecount;
+ unsigned int numtiles;
+ const Tiled2cTile *tiles;
+} Tiled2cSet;
+
+typedef struct {
+ const char *name;
+ double opacity;
+ unsigned int visible;
+ const unsigned int *data;
+} Tiled2cLayer;
+
+typedef struct {
+ const char *name;
+ const char *type;
+ unsigned int id;
+ double x;
+ double y;
+ double width;
+ double height;
+ double rotation;
+ unsigned int visible;
+} Tiled2cObject;
+
+typedef struct {
+ const char *path;
+ unsigned int width;
+ unsigned int height;
+ unsigned int tilewidth;
+ unsigned int tileheight;
+ unsigned int numlayers;
+ const Tiled2cLayer *layers;
+ const Tiled2cObject *objects;
+ unsigned int numobjects;
+} Tiled2cMap;