summaryrefslogtreecommitdiff
path: root/tiled2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'tiled2c.h')
-rw-r--r--tiled2c.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/tiled2c.h b/tiled2c.h
index 4f3ded0..a35971b 100644
--- a/tiled2c.h
+++ b/tiled2c.h
@@ -9,11 +9,20 @@ typedef struct {
} Tiled2cFrame;
typedef struct {
+ const char *name;
+ const char *type;
+ const char *valuestring;
+ double valuenumber;
+} Tiled2cProperty;
+
+typedef struct {
unsigned int id;
const char *type;
double probability;
- const int numframes;
+ int numframes;
const Tiled2cFrame *frames;
+ unsigned int numproperties;
+ const Tiled2cProperty *properties;
} Tiled2cTile;
typedef struct {
@@ -56,15 +65,6 @@ typedef struct {
typedef struct {
const char *name;
const char *type;
- union {
- const char *valuestring;
- double valuenumber;
- };
-} Tiled2cProperty;
-
-typedef struct {
- const char *name;
- const char *type;
unsigned int id;
double x;
double y;
@@ -72,8 +72,8 @@ typedef struct {
double height;
double rotation;
unsigned int visible;
- const Tiled2cProperty *properties;
unsigned int numproperties;
+ const Tiled2cProperty *properties;
} Tiled2cObject;
typedef struct {
@@ -84,8 +84,8 @@ typedef struct {
unsigned int tileheight;
unsigned int numlayers;
const Tiled2cLayer *layers;
- const Tiled2cObject *objects;
unsigned int numobjects;
+ const Tiled2cObject *objects;
} Tiled2cMap;
#ifdef __cplusplus