mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-04 11:24:27 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,26 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "../../Commands/CommandsEnum.h"
|
||||
#include "Packet.h"
|
||||
|
||||
class GameCommandPacket : public Packet, public std::enable_shared_from_this<GameCommandPacket>
|
||||
{
|
||||
class GameCommandPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<GameCommandPacket> {
|
||||
public:
|
||||
EGameCommand command;
|
||||
int length;
|
||||
byteArray data;
|
||||
EGameCommand command;
|
||||
int length;
|
||||
byteArray data;
|
||||
|
||||
GameCommandPacket();
|
||||
GameCommandPacket(EGameCommand command, byteArray data);
|
||||
~GameCommandPacket();
|
||||
GameCommandPacket();
|
||||
GameCommandPacket(EGameCommand command, byteArray data);
|
||||
~GameCommandPacket();
|
||||
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual int getEstimatedSize();
|
||||
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 GameCommandPacket()); }
|
||||
virtual int getId() { return 167; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new GameCommandPacket());
|
||||
}
|
||||
virtual int getId() { return 167; }
|
||||
};
|
||||
Reference in New Issue
Block a user