mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
23 lines
667 B
C++
23 lines
667 B
C++
#pragma once
|
|
#include "Packet.h"
|
|
using namespace std;
|
|
|
|
class AuthSchemePacket : public Packet, public enable_shared_from_this<AuthSchemePacket>
|
|
{
|
|
public:
|
|
// "mojang", "offline" etc
|
|
vector<wstring> schemes;
|
|
wstring serverId; // hex challenge (20 chars), empty for offline
|
|
|
|
AuthSchemePacket();
|
|
AuthSchemePacket(const vector<wstring>& schemes, const wstring& serverId);
|
|
|
|
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<AuthSchemePacket>(); }
|
|
virtual int getId() { return 170; }
|
|
};
|