2013-03-15 16:18:11 -04:00
|
|
|
|
2012-06-15 11:55:53 -04:00
|
|
|
#pragma once
|
|
|
|
|
2013-03-15 16:18:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// tolua_begin
|
|
|
|
class cVine
|
|
|
|
{
|
2012-06-15 11:55:53 -04:00
|
|
|
public:
|
|
|
|
|
2013-03-15 16:18:11 -04:00
|
|
|
static NIBBLETYPE DirectionToMetaData(char a_BlockFace)
|
|
|
|
{
|
|
|
|
switch (a_BlockFace)
|
2012-06-15 11:55:53 -04:00
|
|
|
{
|
2013-03-15 16:18:11 -04:00
|
|
|
case BLOCK_FACE_NORTH: return 0x1;
|
|
|
|
case BLOCK_FACE_SOUTH: return 0x4;
|
|
|
|
case BLOCK_FACE_WEST: return 0x8;
|
|
|
|
case BLOCK_FACE_EAST: return 0x2;
|
|
|
|
default: return 0x0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static char MetaDataToDirection(NIBBLETYPE a_MetaData)
|
|
|
|
{
|
2012-10-22 14:00:05 -04:00
|
|
|
switch(a_MetaData)
|
|
|
|
{
|
2013-03-15 16:18:11 -04:00
|
|
|
case 0x1: return BLOCK_FACE_NORTH;
|
|
|
|
case 0x4: return BLOCK_FACE_SOUTH;
|
|
|
|
case 0x8: return BLOCK_FACE_WEST;
|
|
|
|
case 0x2: return BLOCK_FACE_EAST;
|
|
|
|
default: return BLOCK_FACE_TOP;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} ;
|
|
|
|
// tolua_end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|