mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rework functionality of leveled nodes (#9852)
Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
parent
7d3972a504
commit
c94d37827d
8 changed files with 79 additions and 34 deletions
|
@ -268,12 +268,12 @@ struct MapNode
|
|||
std::vector<aabb3f> *boxes, u8 neighbors = 0) const;
|
||||
|
||||
/*
|
||||
Liquid helpers
|
||||
Liquid/leveled helpers
|
||||
*/
|
||||
u8 getMaxLevel(const NodeDefManager *nodemgr) const;
|
||||
u8 getLevel(const NodeDefManager *nodemgr) const;
|
||||
u8 setLevel(const NodeDefManager *nodemgr, s8 level = 1);
|
||||
u8 addLevel(const NodeDefManager *nodemgr, s8 add = 1);
|
||||
s8 setLevel(const NodeDefManager *nodemgr, s16 level = 1);
|
||||
s8 addLevel(const NodeDefManager *nodemgr, s16 add = 1);
|
||||
|
||||
/*
|
||||
Serialization functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue