summaryrefslogtreecommitdiffstats
path: root/src/Packet.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-23 17:23:22 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-23 17:23:22 +0200
commitbdf73a67ffd964c37db5a9694424380bfd685c95 (patch)
tree3d313b318623eb7e7c46aed80c10e7fe896a5587 /src/Packet.hpp
parent2017-08-20 (diff)
downloadAltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.gz
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.bz2
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.lz
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.xz
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.zst
AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.zip
Diffstat (limited to '')
-rw-r--r--src/Packet.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Packet.hpp b/src/Packet.hpp
index e3d09fd..d1d80e6 100644
--- a/src/Packet.hpp
+++ b/src/Packet.hpp
@@ -819,4 +819,22 @@ struct PacketTimeUpdate : Packet {
long long WorldAge;
long long TimeOfDay;
+};
+
+struct PacketUnloadChunk : Packet {
+ void ToStream(StreamOutput *stream) override {
+
+ }
+
+ void FromStream(StreamInput *stream) override {
+ ChunkX = stream->ReadInt();
+ ChunkZ = stream->ReadInt();
+ }
+
+ int GetPacketId() override {
+ return PacketNamePlayCB::UnloadChunk;
+ }
+
+ int ChunkX;
+ int ChunkZ;
}; \ No newline at end of file