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#include "..\Minecraft.Client\Model.h"
6#include "..\Minecraft.Client\SkinBox.h"
7
8class DLCSkinFile;
9
10class TextureAndGeometryPacket : public Packet, public enable_shared_from_this<TextureAndGeometryPacket>
11{
12public:
13 wstring textureName;
14 DWORD dwSkinID;
15 PBYTE pbData;
16 DWORD dwTextureBytes;
17 SKIN_BOX *BoxDataA;
18 DWORD dwBoxC;
19 unsigned int uiAnimOverrideBitmask;
20
21 TextureAndGeometryPacket();
22 ~TextureAndGeometryPacket();
23 TextureAndGeometryPacket(const wstring &textureName, PBYTE pbData, DWORD dwBytes);
24 TextureAndGeometryPacket(const wstring &textureName, PBYTE pbData, DWORD dwBytes, DLCSkinFile *pDLCSkinFile);
25 TextureAndGeometryPacket(const wstring &textureName, PBYTE pbData, DWORD dwBytes, vector<SKIN_BOX *> *pvSkinBoxes, unsigned int uiAnimOverrideBitmask);
26
27 virtual void handle(PacketListener *listener);
28 virtual void read(DataInputStream *dis);
29 virtual void write(DataOutputStream *dos);
30 virtual int getEstimatedSize();
31
32public:
33 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new TextureAndGeometryPacket()); }
34 virtual int getId() { return 160; }
35};