summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-05-31 11:14:04 +0200
committerkdx <kikoodx@paranoici.org>2023-05-31 11:14:04 +0200
commit3e8e99394c5f3600c48f3e043b17e8f9adc2df28 (patch)
tree3d753d77ba7840cf2530de81f57a4c678dd14b2d
parent09438266c3987c89a1e7f0abf9042dd3528ac343 (diff)
downloadhyperultra-3e8e99394c5f3600c48f3e043b17e8f9adc2df28.tar.gz
i think this should go
-rw-r--r--map/tmj2c.h16
-rw-r--r--src/map.c1
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,12 +2,24 @@
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;
unsigned int height;
@@ -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 <stddef.h>
#include <string.h>
-#define LOL(x) (unsigned char *)(x)
struct {
const Tmj2cMap *map;
const char *name;