From ce955f37ba9f431122ca3c46e5a7dac63ffd65ea Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 8 Jul 2013 15:19:22 -0400 Subject: Decoration: Handle facedir and wallmounted param2types with schematic rotation --- 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 1c8c5c49c..60211b87c 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -61,6 +61,17 @@ enum LightBank LIGHTBANK_NIGHT }; +/* + Simple rotation enum. +*/ +enum Rotation { + ROTATE_0, + ROTATE_90, + ROTATE_180, + ROTATE_270, + ROTATE_RAND, +}; + /* Masks for MapNode.param2 of flowing liquids */ @@ -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) -- cgit v1.2.3