the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 31 lines 792 B view raw
1#pragma once 2 3// 4J ADDED THIS PACKET 4 5using namespace std; 6 7#include "Packet.h" 8 9class ServerSettingsChangedPacket : public Packet, public enable_shared_from_this<ServerSettingsChangedPacket> 10{ 11public: 12 static const int HOST_DIFFICULTY; 13 static const int HOST_OPTIONS; 14 static const int HOST_IN_GAME_SETTINGS; 15 16 char action; 17 unsigned int data; 18 19 ServerSettingsChangedPacket(); 20 ~ServerSettingsChangedPacket(); 21 ServerSettingsChangedPacket(char action, unsigned int data); 22 23 virtual void handle(PacketListener *listener); 24 virtual void read(DataInputStream *dis); 25 virtual void write(DataOutputStream *dos); 26 virtual int getEstimatedSize(); 27 28public: 29 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new ServerSettingsChangedPacket()); } 30 virtual int getId() { return 153; } 31};