Normalized code style for both sign handlers.
This commit is contained in:
parent
44c944716b
commit
23037ce7ec
@ -12,9 +12,11 @@
|
|||||||
class cBlockSignPostHandler :
|
class cBlockSignPostHandler :
|
||||||
public cBlockHandler
|
public cBlockHandler
|
||||||
{
|
{
|
||||||
|
typedef cBlockHandler super;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cBlockSignPostHandler(BLOCKTYPE a_BlockType)
|
cBlockSignPostHandler(BLOCKTYPE a_BlockType) :
|
||||||
: cBlockHandler(a_BlockType)
|
super(a_BlockType)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,6 +80,7 @@ public:
|
|||||||
return (a_Meta + 12) & 0x0f;
|
return (a_Meta + 12) & 0x0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual NIBBLETYPE MetaMirrorXY(NIBBLETYPE a_Meta) override
|
virtual NIBBLETYPE MetaMirrorXY(NIBBLETYPE a_Meta) override
|
||||||
{
|
{
|
||||||
// Mirrors signs over the XY plane (North-South Mirroring)
|
// Mirrors signs over the XY plane (North-South Mirroring)
|
||||||
|
@ -13,9 +13,10 @@ class cBlockWallSignHandler :
|
|||||||
public cBlockHandler
|
public cBlockHandler
|
||||||
{
|
{
|
||||||
typedef cBlockHandler super;
|
typedef cBlockHandler super;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cBlockWallSignHandler(BLOCKTYPE a_BlockType)
|
cBlockWallSignHandler(BLOCKTYPE a_BlockType) :
|
||||||
: cBlockHandler(a_BlockType)
|
super(a_BlockType)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual void GetBlockCoordsBehindTheSign(NIBBLETYPE a_BlockMeta, int & a_BlockX, int & a_BlockZ)
|
static void GetBlockCoordsBehindTheSign(NIBBLETYPE a_BlockMeta, int & a_BlockX, int & a_BlockZ)
|
||||||
{
|
{
|
||||||
switch (a_BlockMeta)
|
switch (a_BlockMeta)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user