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 SetEntityLinkPacket : public Packet, public enable_shared_from_this<SetEntityLinkPacket>
7{
8public:
9 static const int RIDING = 0;
10 static const int LEASH = 1;
11
12 int type;
13 int sourceId, destId;
14
15 SetEntityLinkPacket();
16 SetEntityLinkPacket(int linkType, shared_ptr<Entity> sourceEntity, shared_ptr<Entity> destEntity);
17
18 virtual int getEstimatedSize();
19 virtual void read(DataInputStream *dis);
20 virtual void write(DataOutputStream *dos);
21 virtual void handle(PacketListener *listener);
22 virtual bool canBeInvalidated();
23 virtual bool isInvalidatedBy(shared_ptr<Packet> packet);
24
25public:
26 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetEntityLinkPacket()); }
27 virtual int getId() { return 39; }
28
29};