the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 34 lines 823 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class AwardStatPacket : public Packet, public enable_shared_from_this<AwardStatPacket> 7{ 8public: 9 int statId; 10 11 // 4J-JEV: Changed to allow for Durango events. 12protected: 13 byteArray m_paramData; 14 15public: 16 AwardStatPacket(); 17 AwardStatPacket(int statId, int count); 18 AwardStatPacket(int statId, byteArray paramData); 19 ~AwardStatPacket(); 20 21 virtual void handle(PacketListener *listener); 22 virtual void read(DataInputStream *dis); 23 virtual void write(DataOutputStream *dos); 24 virtual int getEstimatedSize(); 25 virtual bool isAync(); 26 27 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new AwardStatPacket()); } 28 virtual int getId() { return 200; } 29 30public: 31 // 4J-JEV: New getters to help prevent unsafe access 32 int getCount(); 33 byteArray getParamData(); 34};