aboutsummaryrefslogtreecommitdiff
path: root/src/sandbox.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sandbox.hpp')
-rw-r--r--src/sandbox.hpp11
1 files changed, 6 insertions, 5 deletions
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 = {};