mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Leveled nodebox
This commit is contained in:
parent
a70993d6d2
commit
9733dd5b5e
6 changed files with 46 additions and 4 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue