Add Direction enum

This commit is contained in:
Alpyne 2020-10-31 01:19:41 -07:00
parent f8e86ab9ba
commit b370853c2a
2 changed files with 16 additions and 0 deletions

View File

@ -21,6 +21,16 @@ namespace Feather
};
}
enum class Direction : uint8
{
DOWN, // -Y
UP, // +Y
NORTH, // -Z
SOUTH, // +Z
WEST, // -X
EAST // +X
};
struct BlockPos
{
int32_t x, y, z;

View File

@ -38,6 +38,12 @@
method: Position
}
direction: {
type: Direction
size: 1
alias: varint
}
uint64: {type: 'uint64_t', size: 8}
int64: {type: 'int64_t', size: 8}