aboutsummaryrefslogtreecommitdiff
path: root/src/gen_tiles.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-12-22 14:53:44 +0200
committerkartofen <mladenovnasko0@gmail.com>2022-12-22 14:53:44 +0200
commit4c9fafc4c126af2466dc6c56b9c952f901a1c726 (patch)
tree16a7590ff005b1e49344836675731e86e2283bd7 /src/gen_tiles.c
parent407e1bdc46fc3b4983aa95b3b270a017d631dc42 (diff)
better tileset configuration
Diffstat (limited to 'src/gen_tiles.c')
-rw-r--r--src/gen_tiles.c9
1 files changed, 7 insertions, 2 deletions
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)
{