Added MetaRotate/Mirror Support for a number of classes.

This commit is contained in:
narroo
2014-03-23 22:11:01 -04:00
parent d545be9614
commit 2343b0dfbe
12 changed files with 295 additions and 84 deletions
+9 -2
View File
@@ -14,8 +14,6 @@
class cBlockSlabHandler :
public cBlockHandler
{
@@ -184,6 +182,15 @@ public:
ASSERT(!"Unhandled double slab type!");
return "";
}
virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override
{
NIBBLETYPE OtherMeta = a_Meta & 0x07; // Contains unrelate meta data.
// 8th bit is up/down. 1 right-side-up, 0 is up-side-down.
return (a_Meta & 0x08) ? 0x00 + OtherMeta : 0x01 + OtherMeta;
}
} ;