From f7455f44518d36cc688f915e5d6cc046eaa65896 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 17 May 2025 23:12:46 -0700 Subject: X-macro and palette editing menu --- src/sandbox.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/sandbox.hpp') diff --git a/src/sandbox.hpp b/src/sandbox.hpp index 03a6a85..400f8ec 100644 --- a/src/sandbox.hpp +++ b/src/sandbox.hpp @@ -9,14 +9,15 @@ const int MBIT_DISPLACABLE = 1; struct Tile { enum Solid : unsigned char { - AIR = 0, - ROCK, - SAND, +#define X(name, _1, _2) Ti_##name, +#include "x/tile_types.inc" +#undef X }; enum Fluid : unsigned char { - NOTHING = 0, - WATER, +#define X(name, _1, _2) Fl_##name, +#include "x/fluid_types.inc" +#undef X }; Solid so = {}; -- cgit v1.2.3-70-g09d2