the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "Packet.h"
5
6class InteractPacket : public Packet, public enable_shared_from_this<InteractPacket>
7{
8public:
9 static const int INTERACT;
10 static const int ATTACK;
11
12 int source, target, action;
13
14 InteractPacket();
15 InteractPacket(int source, int target, int action);
16
17 virtual void read(DataInputStream *dis);
18 virtual void write(DataOutputStream *dos);
19 virtual void handle(PacketListener *listener);
20 virtual int getEstimatedSize();
21
22public:
23 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new InteractPacket()); }
24 virtual int getId() { return 7; }
25};