Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
DisconnectLogin Class Reference

Disconnect Packet for Login state. More...

#include <disconnect.h>

Inheritance diagram for DisconnectLogin:
IPacket

Public Member Functions

 DisconnectLogin (const ChatMessage &reason)
 Construct a new Disconnect Login object.
 
void read (IMCStream *stream) override
 Reads the packet from the stream.
 
- Public Member Functions inherited from IPacket
virtual ~IPacket ()=default
 Destroy the IPacket object.
 
void send (IMCStream *stream)
 Sends a Packet in Minecraft format.
 

Static Public Member Functions

static void loadLua (lua_State *state, const char *baseNamespaceName)
 Loads packet as lua class.
 

Public Attributes

ChatMessage reason
 the reason for the disconnection
 
- Public Attributes inherited from IPacket
int id
 Packet Id.
 

Additional Inherited Members

- Protected Member Functions inherited from IPacket
 IPacket (int id)
 Construct a new IPacket object.
 

Detailed Description

Disconnect Packet for Login state.

Packet that should be sent to disconnect a client when being in ClientState::LOGIN state.

Constructor & Destructor Documentation

◆ DisconnectLogin()

DisconnectLogin::DisconnectLogin ( const ChatMessage & reason)
inline

Construct a new Disconnect Login object.

Parameters
reasonthe reason for the disconnection

Member Function Documentation

◆ loadLua()

void DisconnectLogin::loadLua ( lua_State * state,
const char * baseNamespaceName )
static

Loads packet as lua class.

Parameters
statelua state to load to
baseNamespaceNamethe base namespace name to load to

◆ read()

void DisconnectLogin::read ( IMCStream * stream)
overridevirtual

Reads the packet from the stream.

Parameters
streamthe stream to read from
Deprecated
should not be used, useless

Implements IPacket.


The documentation for this class was generated from the following files: