mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 02:43:43 +00:00
29 lines
635 B
C++
29 lines
635 B
C++
#pragma once
|
|
|
|
// 4J ADDED THIS PACKET
|
|
|
|
#include "Packet.h"
|
|
|
|
class XZPacket : public Packet, public std::enable_shared_from_this<XZPacket> {
|
|
public:
|
|
static const int STRONGHOLD;
|
|
|
|
char action;
|
|
int x;
|
|
int z;
|
|
|
|
XZPacket();
|
|
~XZPacket();
|
|
XZPacket(char action, int x, int z);
|
|
|
|
virtual void handle(PacketListener* listener);
|
|
virtual void read(DataInputStream* dis);
|
|
virtual void write(DataOutputStream* dos);
|
|
virtual int getEstimatedSize();
|
|
|
|
public:
|
|
static std::shared_ptr<Packet> create() {
|
|
return std::shared_ptr<Packet>(new XZPacket());
|
|
}
|
|
virtual int getId() { return 166; }
|
|
}; |