summaryrefslogtreecommitdiffstats
path: root/code/PacketParser.hpp
blob: 8ca6195c8183202b3fe2cd5e8e8bd417fb35c094 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
};