the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "CommandsEnum.h"
5#include "Packet.h"
6
7class GameCommandPacket : public Packet, public enable_shared_from_this<GameCommandPacket>
8{
9public:
10 EGameCommand command;
11 int length;
12 byteArray data;
13
14 GameCommandPacket();
15 GameCommandPacket(EGameCommand command, byteArray data);
16 ~GameCommandPacket();
17
18 virtual void read(DataInputStream *dis);
19 virtual void write(DataOutputStream *dos);
20 virtual void handle(PacketListener *listener);
21 virtual int getEstimatedSize();
22
23public:
24 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new GameCommandPacket()); }
25 virtual int getId() { return 167; }
26};