summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-07-13 21:48:14 +0400
committerproller <proller@github.com>2013-07-13 22:13:24 +0400
commit9733dd5b5e5516e18775665db132b2446492716c (patch)
treecb665ab99ebab101c563076a9e31a94a2ce293d4 /src/nodedef.h
parenta70993d6d20b4668556a8792ecd952d84a7e6939 (diff)
downloadminetest-9733dd5b5e5516e18775665db132b2446492716c.tar.gz
minetest-9733dd5b5e5516e18775665db132b2446492716c.tar.bz2
minetest-9733dd5b5e5516e18775665db132b2446492716c.zip
Leveled nodebox
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 665a5ddc2..7505cc12d 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -56,13 +56,15 @@ enum ContentParamType2
CPT2_FACEDIR,
// Direction for signs, torches and such
CPT2_WALLMOUNTED,
+ // Block level like FLOWINGLIQUID
+ CPT2_LEVELED,
};
enum LiquidType
{
LIQUID_NONE,
LIQUID_FLOWING,
- LIQUID_SOURCE
+ LIQUID_SOURCE,
};
enum NodeBoxType
@@ -70,6 +72,7 @@ enum NodeBoxType
NODEBOX_REGULAR, // Regular block; allows buildable_to
NODEBOX_FIXED, // Static separately defined box(es)
NODEBOX_WALLMOUNTED, // Box for wall mounted nodes; (top, bottom, side)
+ NODEBOX_LEVELED, // Same as fixed, but with dynamic height from param2. for snow, ...
};
struct NodeBox
@@ -207,6 +210,8 @@ struct ContentFeatures
bool buildable_to;
// Player cannot build to these (placement prediction disabled)
bool rightclickable;
+ // Flowing liquid or snow, value = default level
+ u8 leveled;
// Whether the node is non-liquid, source liquid or flowing liquid
enum LiquidType liquid_type;
// If the content is liquid, this is the flowing version of the liquid.