the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Packet.h"
4
5class Objective;
6
7class SetObjectivePacket : public Packet, public enable_shared_from_this<SetObjectivePacket>
8{
9public:
10 static const int METHOD_ADD = 0;
11 static const int METHOD_REMOVE = 1;
12 static const int METHOD_CHANGE = 2;
13
14 wstring objectiveName;
15 wstring displayName;
16 int method;
17
18 SetObjectivePacket();
19 SetObjectivePacket(Objective *objective, int method);
20 void read(DataInputStream *dis);
21 void write(DataOutputStream *dos);
22 void handle(PacketListener *listener);
23 int getEstimatedSize();
24
25public:
26 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetObjectivePacket()); }
27 virtual int getId() { return 206; }
28};