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