Added MetaRotate/Mirror Support for a number of classes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user