From 9733dd5b5e5516e18775665db132b2446492716c Mon Sep 17 00:00:00 2001 From: proller Date: Sat, 13 Jul 2013 21:48:14 +0400 Subject: Leveled nodebox --- src/nodedef.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/nodedef.h') 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. -- cgit v1.2.3