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 TextureChangePacket : public Packet, public enable_shared_from_this<TextureChangePacket>
7{
8public:
9 enum ETextureChangeType
10 {
11 e_TextureChange_Skin = 0,
12 e_TextureChange_Cape,
13 };
14
15 int id;
16 ETextureChangeType action;
17 wstring path;
18
19 TextureChangePacket();
20 TextureChangePacket(shared_ptr<Entity> e, ETextureChangeType action, const wstring &path);
21
22 virtual void read(DataInputStream *dis);
23 virtual void write(DataOutputStream *dos);
24 virtual void handle(PacketListener *listener);
25 virtual int getEstimatedSize();
26
27public:
28 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new TextureChangePacket()); }
29 virtual int getId() { return 157; }
30};