diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
commit | bdf73a67ffd964c37db5a9694424380bfd685c95 (patch) | |
tree | 3d313b318623eb7e7c46aed80c10e7fe896a5587 /src/Packet.hpp | |
parent | 2017-08-20 (diff) | |
download | AltCraft-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.hpp | 18 |
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 |