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