From 4c9fafc4c126af2466dc6c56b9c952f901a1c726 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 22 Dec 2022 14:53:44 +0200 Subject: better tileset configuration --- src/gen_tiles.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gen_tiles.c') diff --git a/src/gen_tiles.c b/src/gen_tiles.c index c29bc29..5d6cba3 100644 --- a/src/gen_tiles.c +++ b/src/gen_tiles.c @@ -8,11 +8,16 @@ typedef struct tile { char name[64]; char symetry; small_t connections[SIDES_MAX]; - // small_t neighbours[TILES_CAP]; -// size_t neigbours_sz; } tile; #include "config.h" +#define STR_AUX(a) #a +#define STR(a) STR_AUX(a) +#define TILESET_PATH(name) STR(../PATH/name/tileset.h) +// include the tileset header configuration +#include TILESET_PATH(TILESET) + +#define TILESET_NAME STR(TILESET) void copy(char *tile_set, char *name, int n) { -- cgit v1.2.3