]> git.lizzy.rs Git - minetest.git/blobdiff - src/mapnode.h
Add (optional) client-side saving of server map to disk
[minetest.git] / src / mapnode.h
index 3c6208436e584f743db816f79c9fa697706d0ca0..d0b949e6ff60b257f838e107a4fd56db8383fbfc 100644 (file)
@@ -43,7 +43,7 @@ typedef u16 content_t;
        there is enough room for dummy node IDs, which are created when
        a MapBlock containing unknown node names is loaded from disk.
 */
-#define MAX_REGISTERED_CONTENT 0xfffU
+#define MAX_REGISTERED_CONTENT 0x7fffU
 
 /*
        A solid walkable node with the texture unknown_node.png.
@@ -217,8 +217,7 @@ struct MapNode
        void rotateAlongYAxis(INodeDefManager *nodemgr, Rotation rot);
 
        /*
-               Gets list of node boxes (used for rendering (NDT_NODEBOX)
-               and collision)
+               Gets list of node boxes (used for rendering (NDT_NODEBOX))
        */
        std::vector<aabb3f> getNodeBoxes(INodeDefManager *nodemgr) const;
 
@@ -227,6 +226,11 @@ struct MapNode
        */
        std::vector<aabb3f> getSelectionBoxes(INodeDefManager *nodemgr) const;
 
+       /*
+               Gets list of collision boxes
+       */
+       std::vector<aabb3f> getCollisionBoxes(INodeDefManager *nodemgr) const;
+
        /* Liquid helpers */
        u8 getMaxLevel(INodeDefManager *nodemgr) const;
        u8 getLevel(INodeDefManager *nodemgr) const;