the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 26 lines 691 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class ContainerSetContentPacket : public Packet, public enable_shared_from_this<ContainerSetContentPacket> 7{ 8public: 9 int containerId; 10 ItemInstanceArray items; 11 12 ContainerSetContentPacket(); 13 ~ContainerSetContentPacket(); 14 ContainerSetContentPacket(int containerId, vector<shared_ptr<ItemInstance> > *newItems); 15 16 virtual void read(DataInputStream *dis); 17 virtual void write(DataOutputStream *dos); 18 virtual void handle(PacketListener *listener); 19 virtual int getEstimatedSize(); 20 21public: 22 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new ContainerSetContentPacket()); } 23 virtual int getId() { return 104; } 24}; 25 26