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/PacketBuilder.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/packet/PacketBuilder.hpp (limited to 'src/packet/PacketBuilder.hpp') diff --git a/src/packet/PacketBuilder.hpp b/src/packet/PacketBuilder.hpp new file mode 100644 index 0000000..2fcb737 --- /dev/null +++ b/src/packet/PacketBuilder.hpp @@ -0,0 +1,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); +}; + -- cgit v1.2.3