the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 24 lines 568 B view raw
1#pragma once 2 3#include "Packet.h" 4 5class ClientCommandPacket : public Packet, public enable_shared_from_this<ClientCommandPacket> 6{ 7public: 8 static const int LOGIN_COMPLETE = 0; 9 static const int PERFORM_RESPAWN = 1; 10 11 int action; 12 13 ClientCommandPacket(); 14 ClientCommandPacket(int action); 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 ClientCommandPacket()); } 23 virtual int getId() { return 205; } 24};