From 6d1aef5ba39a7b16e8de7d5f25a6ecf53c97e71f Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 24 Sep 2017 20:58:06 +0500 Subject: 2017-09-24 --- src/Packet.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/Packet.hpp') diff --git a/src/Packet.hpp b/src/Packet.hpp index f71922f..0470015 100644 --- a/src/Packet.hpp +++ b/src/Packet.hpp @@ -1040,4 +1040,20 @@ struct PacketDisconnect : Packet { } std::string Reason; +}; + +struct PacketSetCompression : Packet { + void ToStream(StreamOutput *stream) override { + + } + + void FromStream(StreamInput *stream) override { + Threshold = stream->ReadVarInt(); + } + + int GetPacketId() override { + return PacketNameLoginCB::SetCompression; + } + + int Threshold; }; \ No newline at end of file -- cgit v1.2.3