the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 24 lines 580 B view raw
1#pragma once 2 3#include "Packet.h" 4 5class Objective; 6 7class SetDisplayObjectivePacket : public Packet, public enable_shared_from_this<SetDisplayObjectivePacket> 8{ 9public: 10 int slot; 11 wstring objectiveName; 12 13 SetDisplayObjectivePacket(); 14 SetDisplayObjectivePacket(int slot, Objective *objective); 15 16 void read(DataInputStream *dis); 17 void write(DataOutputStream *dos); 18 void handle(PacketListener *listener); 19 int getEstimatedSize(); 20 21public: 22 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetDisplayObjectivePacket()); } 23 virtual int getId() { return 208; } 24};