mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-21 18:24:34 +00:00
26 lines
566 B
C++
26 lines
566 B
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "Packet.h"
|
|
|
|
class EntityEventPacket : public Packet, public enable_shared_from_this<EntityEventPacket>
|
|
{
|
|
public:
|
|
int entityId;
|
|
BYTE eventId;
|
|
|
|
EntityEventPacket();
|
|
EntityEventPacket(int entityId, BYTE eventId);
|
|
|
|
virtual void read(DataInputStream *dis);
|
|
virtual void write(DataOutputStream *dos);
|
|
virtual void handle(PacketListener *listener) ;
|
|
virtual int getEstimatedSize();
|
|
|
|
public:
|
|
static shared_ptr<Packet> create() { return std::make_shared<EntityEventPacket>(); }
|
|
virtual int getId() { return 38; }
|
|
};
|
|
|
|
|