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 "Packet.h"
5
6// 4J Added packet to update clients on the time for the host to finish doing something
7
8class UpdateProgressPacket : public Packet, public enable_shared_from_this<UpdateProgressPacket>
9{
10
11public:
12 int m_percentage;
13
14 UpdateProgressPacket();
15 UpdateProgressPacket(int percentage);
16
17 virtual void read(DataInputStream *dis);
18 virtual void write(DataOutputStream *dos);
19 virtual void handle(PacketListener *listener);
20 virtual int getEstimatedSize();
21
22public:
23 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new UpdateProgressPacket()); }
24 virtual int getId() { return 156; }
25};