From ab8278e3b61e009253e34d13d6706da7702dbb6c Mon Sep 17 00:00:00 2001 From: Elisey Puzko Date: Fri, 23 Feb 2018 11:51:09 +0300 Subject: Bare-bones face detection for a block placement --- src/Block.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Block.hpp') diff --git a/src/Block.hpp b/src/Block.hpp index dfd6762..cd01f9a 100644 --- a/src/Block.hpp +++ b/src/Block.hpp @@ -19,6 +19,15 @@ struct BlockId { unsigned char state : 4; }; +enum BlockFacing { + Bottom = 0, + Top, + North, + South, + West, + East +}; + bool operator==(const BlockId& lhs, const BlockId &rhs); bool operator<(const BlockId& lhs, const BlockId &rhs); -- cgit v1.2.3