summaryrefslogtreecommitdiff
path: root/tiled2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'tiled2c.h')
-rw-r--r--tiled2c.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/tiled2c.h b/tiled2c.h
index 9ad79a8..e6fb692 100644
--- a/tiled2c.h
+++ b/tiled2c.h
@@ -16,6 +16,21 @@ typedef struct {
} Tiled2cProperty;
typedef struct {
+ const char *name;
+ const char *type;
+ unsigned int id;
+ unsigned int tile;
+ double x;
+ double y;
+ double width;
+ double height;
+ double rotation;
+ unsigned int visible;
+ unsigned int numproperties;
+ const Tiled2cProperty *properties;
+} Tiled2cObject;
+
+typedef struct {
unsigned int id;
const char *type;
double probability;
@@ -23,6 +38,8 @@ typedef struct {
const Tiled2cFrame *frames;
unsigned int numproperties;
const Tiled2cProperty *properties;
+ unsigned int numobjects;
+ const Tiled2cObject *objects;
} Tiled2cTile;
typedef struct {
@@ -64,21 +81,6 @@ typedef struct {
} Tiled2cLayer;
typedef struct {
- const char *name;
- const char *type;
- unsigned int id;
- unsigned int tile;
- double x;
- double y;
- double width;
- double height;
- double rotation;
- unsigned int visible;
- unsigned int numproperties;
- const Tiled2cProperty *properties;
-} Tiled2cObject;
-
-typedef struct {
const char *path;
unsigned int width;
unsigned int height;