Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
680 B · 28 lines
C
at master
12345678910111213141516171819202122232425262728#pragma once
#include "Packet.h"
class Objective;
class SetObjectivePacket : public Packet, public enable_shared_from_this<SetObjectivePacket>{public: static const int METHOD_ADD = 0; static const int METHOD_REMOVE = 1; static const int METHOD_CHANGE = 2;
wstring objectiveName; wstring displayName; int method;
SetObjectivePacket(); SetObjectivePacket(Objective *objective, int method); void read(DataInputStream *dis); void write(DataOutputStream *dos); void handle(PacketListener *listener); int getEstimatedSize(); public: static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetObjectivePacket()); } virtual int getId() { return 206; }};