From 1575448b1a71dd029a8d135d2aff9096483a9953 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 19 Mar 2012 04:25:09 +0100 Subject: Custom boxy nodes (stairs, slabs) and collision changes --- src/mapnode.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mapnode.h') diff --git a/src/mapnode.h b/src/mapnode.h index 32e46b63f..751563135 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -22,7 +22,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes.h" #include "irr_v3d.h" +#include "irr_aabb3d.h" #include "light.h" +#include class INodeDefManager; @@ -196,6 +198,17 @@ struct MapNode u8 getWallMounted(INodeDefManager *nodemgr) const; v3s16 getWallMountedDir(INodeDefManager *nodemgr) const; + /* + Gets list of node boxes (used for rendering (NDT_NODEBOX) + and collision) + */ + std::vector getNodeBoxes(INodeDefManager *nodemgr) const; + + /* + Gets list of selection boxes + */ + std::vector getSelectionBoxes(INodeDefManager *nodemgr) const; + /* Serialization functions */ -- cgit v1.2.3