summaryrefslogtreecommitdiffstats
path: root/code/PacketBuilder.hpp
blob: 2fcb7371232e7f2a062043cb91c498152a4ada71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once


#include "Packet.hpp"

class PacketBuilder {
public:
    static Packet CHandshaking0x00(int protocolVerison, std::string address, unsigned short port, int nextState);
    static Packet CPlay0x0B(int keepAliveId);

    static Packet CPlay0x03(int actionId);

    static Packet CPlay0x00(int teleportId);

    static Packet CPlay0x0D(double x, double y, double z, float yaw, float pitch, bool onGround);
};