aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/TextureAndGeometryChangePacket.h
blob: e13b547e846c3e975447e3af54e1ac756bd59b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
using namespace std;

#include "Packet.h"

class TextureAndGeometryChangePacket : public Packet, public enable_shared_from_this<TextureAndGeometryChangePacket>
{
public:

    int id;
	wstring path;
	DWORD dwSkinID;

	TextureAndGeometryChangePacket();
	TextureAndGeometryChangePacket(std::shared_ptr<Entity> e, const wstring &path);

	virtual void read(DataInputStream *dis);
	virtual void write(DataOutputStream *dos);
	virtual void handle(PacketListener *listener);
	virtual int getEstimatedSize();

public:
	static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new TextureAndGeometryChangePacket()); }
	virtual int getId() { return 161; }
};