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