From 9733dd5b5e5516e18775665db132b2446492716c Mon Sep 17 00:00:00 2001 From: proller Date: Sat, 13 Jul 2013 21:48:14 +0400 Subject: Leveled nodebox --- src/mapnode.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mapnode.h') 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 getSelectionBoxes(INodeDefManager *nodemgr) const; + /* Liquid helpers */ + u8 getLevel(INodeDefManager *nodemgr) const; + /* Serialization functions */ -- cgit v1.2.3