Add Direction enum
This commit is contained in:
parent
f8e86ab9ba
commit
b370853c2a
10
src/Types.h
10
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
|
struct BlockPos
|
||||||
{
|
{
|
||||||
int32_t x, y, z;
|
int32_t x, y, z;
|
||||||
|
|
|
@ -38,6 +38,12 @@
|
||||||
method: Position
|
method: Position
|
||||||
}
|
}
|
||||||
|
|
||||||
|
direction: {
|
||||||
|
type: Direction
|
||||||
|
size: 1
|
||||||
|
alias: varint
|
||||||
|
}
|
||||||
|
|
||||||
uint64: {type: 'uint64_t', size: 8}
|
uint64: {type: 'uint64_t', size: 8}
|
||||||
int64: {type: 'int64_t', size: 8}
|
int64: {type: 'int64_t', size: 8}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue