diff options
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 7 |
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 */ |