aboutsummaryrefslogtreecommitdiff
path: root/src/sandbox.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2025-05-17 23:12:46 -0700
committerrtk0c <[email protected]>2025-05-18 10:26:52 -0700
commitf7455f44518d36cc688f915e5d6cc046eaa65896 (patch)
tree4b3e902e624b0f971b10906052ab0552308b4429 /src/sandbox.hpp
parent82d363cc2c4c1ce2d54802b59fc0e20dbdb438a4 (diff)
X-macro and palette editing menu
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 = {};