Files
MinecraftConsoles/Minecraft.World/ClientCommandPacket.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

24 lines
578 B
C++

#pragma once
#include "Packet.h"
class ClientCommandPacket : public Packet, public enable_shared_from_this<ClientCommandPacket>
{
public:
static const int LOGIN_COMPLETE = 0;
static const int PERFORM_RESPAWN = 1;
int action;
ClientCommandPacket();
ClientCommandPacket(int action);
void read(DataInputStream *dis);
void write(DataOutputStream *dos);
void handle(PacketListener *listener);
int getEstimatedSize();
public:
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new ClientCommandPacket()); }
virtual int getId() { return 205; }
};