From 4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Thu, 18 May 2017 19:03:05 +0500 Subject: 2017-05-18 --- src/packet/PacketParser.hpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/packet/PacketParser.hpp (limited to 'src/packet/PacketParser.hpp') diff --git a/src/packet/PacketParser.hpp b/src/packet/PacketParser.hpp new file mode 100644 index 0000000..8ca6195 --- /dev/null +++ b/src/packet/PacketParser.hpp @@ -0,0 +1,38 @@ +#pragma once + + +#include "Packet.hpp" + +class PacketParser { +public: + static void Parse(Packet &packet, ConnectionState state = Play, bool ClientBound = true); + + static void ParseServerBound(Packet &packet, ConnectionState state); + + static void ParseLogin(Packet &packet); + + static void ParsePlay(Packet &packet); + + static void ParseLogin0x00(Packet &packet); + + static void ParseLogin0x02(Packet &packet); + + static void ParsePlay0x23(Packet &packet); + + static void ParsePlay0x1F(Packet &packet); + + static void ParsePlay0x0D(Packet &packet); + + static void ParsePlay0x2B(Packet &packet); + + static void ParsePlay0x43(Packet &packet); + + static void ParsePlay0x2E(Packet &packet); + + static void ParsePlay0x1A(Packet &packet); + + static void ParsePlay0x20(Packet &packet); + + static void ParsePlay0x07(Packet &packet); +}; + -- cgit v1.2.3