summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-07-08 15:19:22 -0400
committerkwolekr <kwolekr@minetest.net>2013-07-08 15:19:48 -0400
commitce955f37ba9f431122ca3c46e5a7dac63ffd65ea (patch)
tree59785622b4848501fd26d42ebb554ccec20d9a42 /src/mapnode.h
parentc813a3cc53f0ab4a39f07d0a017db7b7e3ef6fbc (diff)
downloadminetest-ce955f37ba9f431122ca3c46e5a7dac63ffd65ea.tar.gz
minetest-ce955f37ba9f431122ca3c46e5a7dac63ffd65ea.tar.bz2
minetest-ce955f37ba9f431122ca3c46e5a7dac63ffd65ea.zip
Decoration: Handle facedir and wallmounted param2types with schematic rotation
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 1c8c5c49c..60211b87c 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -62,6 +62,17 @@ enum LightBank
};
/*
+ Simple rotation enum.
+*/
+enum Rotation {
+ ROTATE_0,
+ ROTATE_90,
+ ROTATE_180,
+ ROTATE_270,
+ ROTATE_RAND,
+};
+
+/*
Masks for MapNode.param2 of flowing liquids
*/
#define LIQUID_LEVEL_MASK 0x07
@@ -181,6 +192,8 @@ struct MapNode
u8 getFaceDir(INodeDefManager *nodemgr) const;
u8 getWallMounted(INodeDefManager *nodemgr) const;
v3s16 getWallMountedDir(INodeDefManager *nodemgr) const;
+
+ void rotateAlongYAxis(INodeDefManager *nodemgr, Rotation rot);
/*
Gets list of node boxes (used for rendering (NDT_NODEBOX)