diff options
Diffstat (limited to 'tiled2c.h')
-rw-r--r-- | tiled2c.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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 |