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