diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-18 11:56:28 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-18 11:56:28 +0200 |
commit | 2691e8daed826e944ca38f4787c77273edbf9404 (patch) | |
tree | 3f9fca349df2253c2c314abf2e0c22e8af7f9604 /source/Defines.h | |
parent | Added Core files to the VC2008 project (so that they can be opened from the IDE there, nothing more) (diff) | |
download | cuberite-2691e8daed826e944ca38f4787c77273edbf9404.tar cuberite-2691e8daed826e944ca38f4787c77273edbf9404.tar.gz cuberite-2691e8daed826e944ca38f4787c77273edbf9404.tar.bz2 cuberite-2691e8daed826e944ca38f4787c77273edbf9404.tar.lz cuberite-2691e8daed826e944ca38f4787c77273edbf9404.tar.xz cuberite-2691e8daed826e944ca38f4787c77273edbf9404.tar.zst cuberite-2691e8daed826e944ca38f4787c77273edbf9404.zip |
Diffstat (limited to 'source/Defines.h')
-rw-r--r-- | source/Defines.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source/Defines.h b/source/Defines.h index 6dde8cc8f..4f8473ac5 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -11,7 +11,6 @@ extern unsigned char g_BlockSpreadLightFalloff[]; extern bool g_BlockTransparent[]; // one hit break blocks extern bool g_BlockOneHitDig[]; -//tolua_end //--DO NOT DELETE THIS COMMENT-- //tolua_export @@ -19,15 +18,26 @@ extern bool g_BlockOneHitDig[]; +// Block face constants, used in PlayerDigging and PlayerBlockPlacement packets enum { BLOCK_FACE_BOTTOM = 0, // Interacting with the bottom face of the block BLOCK_FACE_TOP = 1, // Interacting with the top face of the block BLOCK_FACE_NORTH = 2, // Interacting with the northern face of the block BLOCK_FACE_SOUTH = 3, // Interacting with the southern face of the block - BLOCK_FACE_EAST = 5, // Interacting with the eastern face of the block BLOCK_FACE_WEST = 4, // Interacting with the western face of the block + BLOCK_FACE_EAST = 5, // Interacting with the eastern face of the block +} ; + +// PlayerDigging status constants: +enum +{ + DIG_STATUS_STARTED = 0, + DIG_STATUS_FINISHED = 2, + DIG_STATUS_DROP_HELD = 4, + DIG_STATUS_SHOOT_EAT = 5, } ; +//tolua_end |