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 SetRidingPacket : public Packet, public enable_shared_from_this<SetRidingPacket>
7{
8public:
9 int riderId, riddenId;
10
11 SetRidingPacket();
12 SetRidingPacket(shared_ptr<Entity> rider, shared_ptr<Entity> riding);
13
14 virtual int getEstimatedSize();
15 virtual void read(DataInputStream *dis);
16 virtual void write(DataOutputStream *dos);
17 virtual void handle(PacketListener *listener);
18 virtual bool canBeInvalidated();
19 virtual bool isInvalidatedBy(shared_ptr<Packet> packet);
20
21public:
22 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetRidingPacket()); }
23 virtual int getId() { return 39; }
24
25};