summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h13
1 files changed, 13 insertions, 0 deletions
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 <vector>
class INodeDefManager;
@@ -197,6 +199,17 @@ struct MapNode
v3s16 getWallMountedDir(INodeDefManager *nodemgr) const;
/*
+ Gets list of node boxes (used for rendering (NDT_NODEBOX)
+ and collision)
+ */
+ std::vector<aabb3f> getNodeBoxes(INodeDefManager *nodemgr) const;
+
+ /*
+ Gets list of selection boxes
+ */
+ std::vector<aabb3f> getSelectionBoxes(INodeDefManager *nodemgr) const;
+
+ /*
Serialization functions
*/