summaryrefslogtreecommitdiffstats
path: root/src/Stream.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-03 17:47:11 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:33 +0100
commitbdc3f4a198c3f047389b159e67f7e6131e053ea6 (patch)
treec0f473147116e4ba0fed8cfb5f9780982b5a3c8c /src/Stream.hpp
parentFixed CMake error (diff)
downloadAltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.tar
AltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.tar.gz
AltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.tar.bz2
AltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.tar.lz
AltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.tar.xz
AltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.tar.zst
AltCraft-bdc3f4a198c3f047389b159e67f7e6131e053ea6.zip
Diffstat (limited to '')
-rw-r--r--src/Stream.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Stream.hpp b/src/Stream.hpp
index b733d3b..8269300 100644
--- a/src/Stream.hpp
+++ b/src/Stream.hpp
@@ -8,7 +8,7 @@
class Socket;
-struct SlotData {
+struct SlotDataType {
short BlockId = -1;
signed char ItemCount = 1;
short ItemDamage = 0;
@@ -38,7 +38,7 @@ public:
int ReadVarInt();
long long ReadVarLong();
std::vector<unsigned char> ReadEntityMetadata();
- SlotData ReadSlot();
+ SlotDataType ReadSlot();
std::vector<unsigned char> ReadNbtTag();
Vector ReadPosition();
unsigned char ReadAngle();
@@ -64,7 +64,7 @@ public:
void WriteVarInt(int value);
void WriteVarLong(long long value);
void WriteEntityMetadata(const std::vector<unsigned char> &value);
- void WriteSlot(const SlotData &value);
+ void WriteSlot(const SlotDataType &value);
void WriteNbtTag(const std::vector<unsigned char> &value);
void WritePosition(const Vector &value);
void WriteAngle(unsigned char value);