mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
29 lines
848 B
C++
29 lines
848 B
C++
#pragma once
|
|
#include "Packet.h"
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
class AuthResultPacket : public Packet, public enable_shared_from_this<AuthResultPacket>
|
|
{
|
|
public:
|
|
bool success;
|
|
wstring assignedUuid;
|
|
wstring assignedUsername;
|
|
wstring errorMessage;
|
|
wstring skinKey;
|
|
std::vector<uint8_t> skinData;
|
|
|
|
AuthResultPacket();
|
|
AuthResultPacket(bool success, const wstring& assignedUuid, const wstring& assignedUsername,
|
|
const wstring& errorMessage, const wstring& skinKey = L"",
|
|
std::vector<uint8_t> skinData = {});
|
|
|
|
virtual void read(DataInputStream *dis);
|
|
virtual void write(DataOutputStream *dos);
|
|
virtual void handle(PacketListener *listener);
|
|
virtual int getEstimatedSize();
|
|
|
|
static shared_ptr<Packet> create() { return make_shared<AuthResultPacket>(); }
|
|
virtual int getId() { return 172; }
|
|
};
|