From 3e8e99394c5f3600c48f3e043b17e8f9adc2df28 Mon Sep 17 00:00:00 2001 From: kdx Date: Wed, 31 May 2023 11:14:04 +0200 Subject: i think this should go --- map/tmj2c.h | 16 +++++++++++++++- src/map.c | 1 - 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/map/tmj2c.h b/map/tmj2c.h index e5a1ea5..ff5baba 100644 --- a/map/tmj2c.h +++ b/map/tmj2c.h @@ -2,11 +2,23 @@ typedef struct { const char *name; - float opacity; + double opacity; unsigned int visible; const unsigned int *data; } Tmj2cLayer; +typedef struct { + const char *name; + const char *type; + unsigned int id; + double x; + double y; + double width; + double height; + double rotation; + unsigned int visible; +} Tmj2cObject; + typedef struct { const char *path; unsigned int width; @@ -15,4 +27,6 @@ typedef struct { unsigned int tileheight; unsigned int numlayers; const Tmj2cLayer *layers; + unsigned int numobjects; + const Tmj2cObject *objects; } Tmj2cMap; diff --git a/src/map.c b/src/map.c index ee432e9..3c894fe 100644 --- a/src/map.c +++ b/src/map.c @@ -5,7 +5,6 @@ #include #include -#define LOL(x) (unsigned char *)(x) struct { const Tmj2cMap *map; const char *name; -- cgit v1.2.3