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