diff --git a/src/Types.h b/src/Types.h index def64f6..f55b7e7 100644 --- a/src/Types.h +++ b/src/Types.h @@ -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; diff --git a/src/protocol/protocol.hjson b/src/protocol/protocol.hjson index 7bbfc35..98b32a6 100644 --- a/src/protocol/protocol.hjson +++ b/src/protocol/protocol.hjson @@ -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}