summaryrefslogtreecommitdiff
path: root/src/mapnode.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/mapnode.h
parenta70993d6d20b4668556a8792ecd952d84a7e6939 (diff)
downloadminetest-9733dd5b5e5516e18775665db132b2446492716c.tar.gz
minetest-9733dd5b5e5516e18775665db132b2446492716c.tar.bz2
minetest-9733dd5b5e5516e18775665db132b2446492716c.zip
Leveled nodebox
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 60211b87c..53e36b670 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -87,6 +87,10 @@ enum Rotation {
#define LIQUID_INFINITY_MASK 0x80 //0b10000000
+// mask for param2, now as for liquid
+#define LEVELED_MASK 0x07
+#define LEVELED_MAX LEVELED_MASK
+
/*
This is the stuff what the whole world consists of.
*/
@@ -206,6 +210,9 @@ struct MapNode
*/
std::vector<aabb3f> getSelectionBoxes(INodeDefManager *nodemgr) const;
+ /* Liquid helpers */
+ u8 getLevel(INodeDefManager *nodemgr) const;
+
/*
Serialization functions
*/