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